Commit Graph

1129955 Commits

Author SHA1 Message Date
qctecmdr
67bd5a23c8 Merge "arm64: defconfig: Enable USB GSI function driver" 2022-11-04 13:53:10 -07:00
qctecmdr
7790ea68bd Merge "net: qrtr: log rx packet causing system wakeup" 2022-11-04 13:53:10 -07:00
qctecmdr
08b524823c Merge "dt-bindings: Added COMPUTE_L0 signals & broadcast client" 2022-11-04 09:00:38 -07:00
qctecmdr
ccc3244aaf Merge "phy: phy-qcom-ufs: Update min phy voltage limit per spec" 2022-11-04 09:00:38 -07:00
qctecmdr
ba9065b642 Merge "pinctrl: qcom: Allow setting wakeup enable bit" 2022-11-04 09:00:37 -07:00
qctecmdr
bede146f94 Merge "coresight-cti: Add gpio trigin and trigout support" 2022-11-04 09:00:37 -07:00
qctecmdr
f6668c1977 Merge "clk: qcom: gdsc-regulator: Increase default GDSC timeout to 1500us" 2022-11-04 09:00:35 -07:00
qctecmdr
4db4031c57 Merge "ANDROID: enable pineapple kleaf build" 2022-11-04 09:00:35 -07:00
qctecmdr
7b28f02de3 Merge "soc: qcom: Add tmecom, hwkm and ice driver" 2022-11-04 09:00:34 -07:00
qctecmdr
3b734dc9b5 Merge "defconfig: msm: enable remote debugger driver" 2022-11-04 09:00:33 -07:00
Devender Kaushik
d528d9ae43 defconfig: msm: enable remote debugger driver
Add remote debugger device configuration. The Remote Debugger driver
allows a debugger running on a host PC to communicate with a remote
stub running on peripheral subsystems.

Change-Id: Ib3faed59b8f54213341aa52248e33091fffea061
Signed-off-by: Devender Kaushik <quic_dkaushik@quicinc.com>
2022-11-02 23:29:08 -07:00
qctecmdr
0be12ba8de Merge "ion: Add ION UAPI headers" 2022-11-02 21:55:04 -07:00
qctecmdr
622df386b4 Merge "driver: thermal: qcom: Add snapshot of bcl driver" 2022-11-02 21:55:04 -07:00
qctecmdr
98d3d52740 Merge "coresight-tmc: Ignore USB write errors during disconnection" 2022-11-02 21:55:03 -07:00
qctecmdr
11f3d1bab4 Merge "defconfig: pineapple-gki: Enable QCOM_EUD driver" 2022-11-02 21:55:03 -07:00
qctecmdr
d4434ee0a3 Merge "soc: qcom: llcc: Introduce APIs to support staling mode" 2022-11-02 21:55:02 -07:00
qctecmdr
749d60cba7 Merge "sched/walt: append carriage return to not_preferred output" 2022-11-02 21:55:02 -07:00
qctecmdr
010a200ec4 Merge "sched/walt: expand cpu arrays" 2022-11-02 21:55:02 -07:00
qctecmdr
e618ed7298 Merge "clk: qcom: clk-debug: Fix accessing mux when it is NULL" 2022-11-02 21:55:01 -07:00
qctecmdr
c4eeb0bb7d Merge "build: Add support for custom userspace toolchain" 2022-11-02 21:55:01 -07:00
qctecmdr
0d93c59727 Merge "defconfig: Enable MHI bus driver for msm-pineapple" 2022-11-02 21:55:01 -07:00
qctecmdr
ebd3b76455 Merge "kernel/sched/walt: ensure em_pd creation before rebuild_sched_domains" 2022-11-02 21:55:01 -07:00
qctecmdr
0a87ecd6c9 Merge "clk: qcom: clk-rpmh: Fix overflow in BCM vote" 2022-11-02 21:55:00 -07:00
qctecmdr
60d2b5697e Merge "coresight: funnel: Fix the duplicate-funnel enable crash issue" 2022-11-02 21:54:59 -07:00
smaniar
e5641b8084 dt-bindings: Added COMPUTE_L0 signals & broadcast client
These changes enable IPCC_COMPUTE_L0 signals and
broadcast client. These will be used by the new IPCLite
communication protocol to communicate with
remote subsystems over compute_l0 interrupt line.

Change-Id: I7aac6f121c53136b8cc19f1d1e166ccc2d59caee
Signed-off-by: smaniar <smaniar@codeaurora.org>
2022-11-02 10:02:33 -07:00
Chris Lew
fe94f61475 net: qrtr: log rx packet causing system wakeup
Log qrtr rx packet in kernel logs which caused system wakeup.
This will help to easily identify wakeup packet.

The qrtr module is required to be in first stage init to support
the creation of qrtr sockets. The transport layers are often in second
stage init. The current wakeup prints depend on some information from
the second stage init. Rework the logic so the dependency is only
between the qrtr transport and transport drivers.

Change-Id: I4a6a35dd4d5449a671464c00f90712a79d6044fe
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-11-01 13:53:44 -07:00
Gaurav Kashyap
a8a29ed6e7 soc: qcom: Add tmecom, hwkm and ice driver
Add tmecom, hwkm and ice-crypto drivers for pineapple.
These are mainly used for supporting storage encryption
using HWKM (residing in TME).

Change-Id: I38c97654a643f8545bd56aa559ccba588aabbb90
Signed-off-by: Smita Ghosh <quic_smitag@quicinc.com>
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2022-10-31 16:41:56 -07:00
Wesley Cheng
93c15fa9ab arm64: defconfig: Enable USB GSI function driver
Enable the USB GSI driver to support tethering interfaces, such as RNDIS
and RmNET.

Change-Id: I0273e97f7656e1cca4a353b55e7254053352b2b9
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-10-31 15:50:38 -07:00
Wesley Cheng
afd52bd6ca abi_gki_aarch64_qcom: Add symbols used by USB GSI
Add symbols being used by the USB f_gsi function driver.

Change-Id: I5102ae04665e5eca291855f05157159c3e37d313
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-10-31 15:49:35 -07:00
Wesley Cheng
61be50ef9b usb: gadget: f_gsi: Introduce IPA callbacks for init and ops
The IPA framework will be moved outside of the kernel tree, which USB GSI
was referencing.  In order to call USB IPA operations, the IPA module will
call an exported ready callback from the USB GSI driver, and pass along the
function pointers for the IPA ops.

Add the ready callback API, and modify pre-existing IPA ops to reference
the function pointers received from the IPA module.

Change-Id: I8e766548fa76ee4d838d113bb5b61577b99c90dd
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-10-31 15:48:37 -07:00
John Moon
59ff6820c9 ANDROID: enable pineapple kleaf build
Kleaf replaces build.sh. Define pineapple target in Bazel
so it may be built with the following command:

tools/bazel run //msm-kernel:pineapple_gki

Change-Id: If78ea5482898f92b751cad8542401ba12d9663bf
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-10-31 11:09:02 -07:00
Devender Kaushik
846dcee445 msm: rdbg: Add snapshot of remote debugger driver
The Remote Debugger driver allows a debugger running
on a host PC to communicate with a remotestub running
on peripheral subsystems.
This snapshot was taken as of msm-5.15 'commit 095d029b5af0
("msm: rdbg: return correct error codes")'.

Change-Id: I4d0fb93fcb4fd0d7ffec8e900e4fd047f4579b5b
Signed-off-by: Devender Kaushik <quic_dkaushik@quicinc.com>
2022-10-31 10:36:11 -07:00
Xubin Bai
11a5ed89f0 clk: qcom: gdsc-regulator: Increase default GDSC timeout to 1500us
Increase default GDSC timeout to 1500us.

Change-Id: I1f4e7f362c8129ba4646485e09be2dd2616164d9
Signed-off-by: Xubin Bai <quic_xubibai@quicinc.com>
2022-10-31 10:19:54 -07:00
Bao D. Nguyen
9054ce0d55 phy: phy-qcom-ufs: Update min phy voltage limit per spec
Currently ufs phy driver is voting for .8V as min range for
phy regulator but spec says it should be .88V
Update phy min phy voltage limit per spec.

Change-Id: Ib1ce7830ec91ef388030ffc3358b26ae4ae6cea2
Signed-off-by: Ram Prakash Gupta <quic_rampraka@quicinc.com>
Signed-off-by: Ziqi Chen <quic_ziqichen@quicinc.com>
Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
2022-10-31 09:41:23 -07:00
Mao Jinlong
a58c6062c6 coresight-cti: Add gpio trigin and trigout support
Add support to trigger the gpio when config the trigin and trigout.

Change-Id: I85813c091c9d6d389192827f51acf48f0189cec1
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
2022-10-31 08:24:12 -07:00
Maulik Shah
f7447781a2 pinctrl: qcom: Allow setting wakeup enable bit
Wakeup enable bit controls the interrupt routing to parent PDC irqchip.
These gets set during interrupt allocation for the GPIOs which are used
as interrupt or via firmware.

However sometimes clients may want to set it without requesting interrupt
line for it. This was done via msm_gpio_mpm_wake_set() API.

On newer targets the bit position for wakeup enable bit is changed to
interrupt config register. Modify msm_gpio_mpm_wake_set() accordingly.

Change-Id: I7441595b49e35181831b1015a41b054b435e07a9
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-10-31 15:32:20 +05:30
Lazarus Motha
bce8246de0 defconfig: Enable MHI bus driver for msm-pineapple
Enable MHI bus,MISC and DEBUG drivers for msm-pineapple.

Change-Id: If909879b41f7e150358dcf32076d177b7f7a736a
Signed-off-by: Lazarus Motha <quic_lmotha@quicinc.com>
2022-10-29 14:40:28 -07:00
Veera Vegivada
4856d5b443 clk: qcom: clk-debug: Fix accessing mux when it is NULL
When debugcc did not register, measure/mux will be NULL.
Avoid accessing it.

Change-Id: I037151e258ae85c89c9db87254e5b8ea850157a0
Signed-off-by: Veera Vegivada <quic_vvegivad@quicinc.com>
2022-10-28 15:54:28 -07:00
qctecmdr
67fde14ade Merge "dma-heap: qcom: Add the UBWC-P heap" 2022-10-28 12:25:10 -07:00
qctecmdr
3e91d7e606 Merge "defconfig: pineapple-gki: enable sdcard driver" 2022-10-28 12:25:09 -07:00
qctecmdr
723e6ee54d Merge "net: qrtr: Handle error from skb_put_padto" 2022-10-28 12:25:09 -07:00
qctecmdr
c3dde5a97d Merge "phy: qualcomm: Add UFS PHY support for pineapple" 2022-10-28 12:25:09 -07:00
Rashid Zafar
bcca35bd56 driver: thermal: qcom: Add snapshot of bcl driver
Add bcl driver snapshot from msm-5.15 'commit e553fd32b4ec
("drivers: thermal: enable wakeup irq for bcl")'.

Updates:
    - Change GPL v2 to GPL

Change-Id: I51396e94cfb79524d89d20bc6d05ae130757a0c9
Signed-off-by: Rashid Zafar <quic_rzafar@quicinc.com>
2022-10-28 12:20:28 -07:00
qctecmdr
9b60653498 Merge "android: abi_gki_aarch64_qcom: Add thermal_cdev_update" 2022-10-28 10:17:39 -07:00
jianzhou
8262f51a91 Merge keystone/android-mainline-keystone-qcom-release.6.0 (11a22ea) into msm-pineapple
* refs/heads/tmp-11a22e:
  ANDROID: bazel: add GKI consolidate Bazel build
  ANDROID: arch_topology: Add android_rvh_update_thermal_stats
  ANDROID: kernel/sched: rebuild_sched_domains export
  ANDROID: sched: gki: add padding to some structs to support WALT

Change-Id: Ia38f0a4d97c585af50d246f9e1c20525448560d4
Upstream-Build:ks_qcom-android-mainline-keystone-qcom-release@9228327 SKQ4.221027.002
Signed-off-by: jianzhou <quic_jianzhou@quicinc.com>
2022-10-27 22:25:40 -07:00
Android Build Coastguard Worker
11a22ea195 Snap for 9228065 from e32903b9a6 to android-mainline-keystone-qcom-release
Change-Id: I6540c44f432fc77ffe1c366e1aa25f653ed5fbe7
2022-10-28 00:00:17 +00:00
Stephen Dickey
8327be044c kernel/sched/walt: ensure em_pd creation before rebuild_sched_domains
rebuild_sched_domains() is called during walt_init with the assumption
that cpufreq_online has actually completed before the execution of
walt_init. This is only partially true.

cpufreq_online() will notify update_topology_flags_workfn once the
policies have been created. However, the em creation is after this
point in time.

This creates a race condition between cpufreq_online's creation
of the energy model through it's call to register_em(policy), and
walt's execution of rebuild_sched_domains. If walt init completes
quickly, and rebuild_sched_domains() is executed quickly, it is
possible it will complete before the energy model is registered.
Thus, the perf domains will still be unpopulated, and the error
detection for perf domains will cause the system to crash.

Address this by ensuring that the energy model has run for each
cpu in the system by checking the same field that em_create_pd
must populate for build_perf_domains to work properly, the
em_pd field in the cpu device.

Additionally ensure that this is only attempted if the domains are
not yet setup properly and it is known that corrective action
must take place.

Change-Id: I8f5150fe4e2e37b3820e809232f26ff207723601
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
2022-10-27 15:28:47 -07:00
Shaleen Agrawal
c15a0101ac sched/walt: Update cpu capacity during thermal pressure
Ensure that all thermal pressure gets accounted in capacity_orig
as soon as it is set, rather than during the window rollover period.

Change-Id: Ia22cb87f0d1fcb23f1a932f9b70637861b56ae33
Signed-off-by: Shaleen Agrawal <quic_shalagra@quicinc.com>
2022-10-27 15:28:46 -07:00
Stephen Dickey
5ca19b7ae1 kernel/sched/walt: rd->pd not getting updated soon enough
If the energy model is not updated by the time rebalance_domains
is called for the first time, the root domain -> perf_domain
values will get erased completely, and will be invalid. The
responsibility for this race is outside of the walt module.

walt_find_energy_efficient_cpu() relies upon rd->pd being valid
and cannot function properly without it. This is critical to
proper walt functionality and it cannot move forward without it.

Decisvely catch the failure.

Change-Id: Iee8030afd487dcee1d9cc18c2d655ecc26938279
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
2022-10-27 15:28:46 -07:00
Stephen Dickey
427c7e27f6 kernel/sched/walt: start domain rebuilding and wait
There is a race condition in cpufreq.c in which the energy model
is not updated until after rebuild domains has completed. If
this is performed out of order, the rebuild domains will fail and
the perf domains will be freed, causing
walt_find_energy_efficient_cpu to fail to perform active migration.

After topology update is complete and walt initialization moves
forward, rebuild the domains waiting for the completion of the
rebuild before performing the walt update of the toplogy,
guranteeing that the perf domains are populated properly even if
cpufreq builds the domains the first time, out of order.

Change-Id: I28499c4318580da54735347be0ea00867e68d94b
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
2022-10-27 15:28:45 -07:00