Commit Graph

1130200 Commits

Author SHA1 Message Date
qctecmdr
bc131a4f9d Merge "dma: qcom: bam_dma: Add QCOM BAM DMA driver snapshot" 2022-11-25 08:51:11 -08:00
qctecmdr
35a81ef8ec Merge "cpuidle: governors: qcom-lpm: Misc Fixes" 2022-11-25 08:51:11 -08:00
qctecmdr
1ed8e955fd Merge "defconfig: pineapple-gki: Enable download mode driver" 2022-11-25 08:51:11 -08:00
qctecmdr
d8d5f72e35 Merge "ufs: host: data encryption support snapshot" 2022-11-25 08:51:10 -08:00
Wesley Cheng
ff382ccda5 usb: dwc3: dwc3-msm-core: Check for valid EXTCON connection source
During DWC3 MSM probe, if extcon and usb role switch are both undefined,
the mode will be set to peripheral.  However, in case EUD is defined, then
the extcon parameter will be non-null, and the probe routine will avoid
setting the default mode into peripheral, even though there is no valid
source for notifying cable events.

In case of when EUD is registered as the EXTCON device, continue to allow
setting the default mode as peripheral mode, as it does not send cable
events to DWC3 MSM.  This is useful bringup scenarios where UCSI role
switch is not ready, but EUD is enabled.

Change-Id: I82263a125f67560558236356ddc733301c586de3
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-11-24 01:44:19 -08:00
Chandana Kishori Chiluveru
e769fa2582 dma: qcom: bam_dma: Add QCOM BAM DMA driver snapshot
Qcom BAM DMA driver snapshot from msm-5.15 branch
'commit 559e4f28f215 ("Merge "soc: qcom:
Add v19 support for socinfo"")'.

Change-Id: I473f17371ebbd808d9fc662ad5b5826565b60b28
Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
Signed-off-by: Ajay Prathi <quic_aprathi@quicinc.com>
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
2022-11-23 16:58:34 -08:00
qctecmdr
88f0bf1775 Merge "usb: dwc3: msm: support usb3 linear redriver" 2022-11-23 09:47:54 -08:00
qctecmdr
03fbda6c39 Merge "defconfig: Enable glink pkt and probe for pineapple" 2022-11-23 09:47:54 -08:00
qctecmdr
171c467298 Merge "ufs-host: qcom: Fix clock scaling error" 2022-11-23 09:47:53 -08:00
qctecmdr
51b43785ff Merge "cpuidle: governors: qcom-lpm: Do not disable CPUidle during suspend" 2022-11-23 07:41:13 -08:00
qctecmdr
83c68fb8b6 Merge "defconfig: pinapple_tuivm: Enable mem_buf" 2022-11-23 07:41:11 -08:00
Chandana Kishori Chiluveru
1c9f4ac773 slimbus: qcom-ngd-ctrl: snapshot of slimbus ngd driver
slimbus driver snapshot from msm-5.15 branch
'commit 559e4f28f215 ("Merge "soc: qcom:
Add v19 support for socinfo"")'.

Change-Id: Ie26ee41da0e68f0265b26dc2a603771e8bd27ff6
Signed-off-by: Chandana Kishori Chiluveru <quic_cchiluve@quicinc.com>
2022-11-23 01:15:19 -08:00
Maulik Shah
35ce1503cf cpuidle: governors: qcom-lpm: Misc Fixes
This change fixes below items

  1. Update cluster governors's now time stamp if CPU is of same cluster
  2. Remove unnecessary condition from CPU idle state select
  3. Skip updating cpu prediction history when sleep is disabled

Change-Id: I3f2870adf0b4005ca8cd02f2d355647a9c4ecd1a
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-11-23 10:55:04 +05:30
Maulik Shah
7dcee2dc40 cpuidle: governors: qcom-lpm: Do not disable CPUidle during suspend
CPUidle was disabled during suspend to avoid runtime PM not updating
the cluster genpd sd counter post late suspend phase.

The issue is now fixed with commit a2bd7be12b ("PM: sleep: Fix runtime
PM based cpuidle support").

Remove the changes so CPU idle states can be allowed post late suspend
stage.

Change-Id: Ie9f01a49326a560e579f34b6412989c573ce6094
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-11-23 10:53:20 +05:30
Guru Das Srinagesh
0e406ae435 defconfig: pineapple-gki: Enable download mode driver
Enable the download mode driver and turn on the default flag to enable
dump collection in case of panic or error conditions.

Change-Id: I7d8f5ec0269062bb1875f2212f9252cc24dd2e4c
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-11-22 20:27:28 -08:00
Guru Das Srinagesh
2e8001a096 defconfig: pineapple-gki: Enable watchdog and related configs
Enable watchdog and related configs for pineapple SoC.

Change-Id: Iba6e12856f4c201a3f64a6773266c42645a58fb9
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-11-22 20:26:24 -08:00
Asutosh Das
b348b14d2f ufs-host: qcom: Fix clock scaling error
Following error is seen:
"devfreq 1d84000.ufshc: dvfs failed with (-22) error"

Following entries need to support 403Mhz, 201.5Mhz and 100Mhz:
- SYS1CLK_1US_REG
- DME_VS_CORE_CLK_CTRL.MAX_CORE_CLK_1US_CYCLES
- PA_VS_CORE_CLK_40NS_CYCLES.

Enable clock scaling.

Change-Id: I61d16f55d57d27e6884dc1e00eb8f70120082976
Signed-off-by: Asutosh Das <quic_asutoshd@quicinc.com>
2022-11-22 18:39:05 -08:00
qctecmdr
f47fcb8096 Merge "ANDROID: Update pineapple module output list" 2022-11-22 14:31:32 -08:00
qctecmdr
9a1d35ea74 Merge "usb: gadget: f_gsi: Do not re-initialize wait_for_ipa_ready" 2022-11-22 14:31:31 -08:00
qctecmdr
0bec87f184 Merge "defconfig: Enable qrtr over mhi transport for pineapple" 2022-11-22 14:31:31 -08:00
qctecmdr
1df00e4f0e Merge "defconfig: pineapple_tuivm: Enable the SMMU drivers" 2022-11-22 14:31:26 -08:00
qctecmdr
d18ebfc7cd Merge "defconfig: pineapple: Enable fastmap" 2022-11-22 14:31:23 -08:00
Chris Lew
a0c597c83f defconfig: Enable glink pkt and probe for pineapple
Enable the GLINK PKT and GLINK PROBE drivers to provide rpmsg glink
access to userspace.

Change-Id: I5d74241425cb935f33e8567abc33defbb4360da0
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-11-22 12:57:23 -08:00
Chris Lew
172a5750a1 rpmsg: glink: Temporarily expose signals for glink
Expose a direct interface for the signal interface from the glink
transport. This is required for tethered data call functionality. This
change should be reverted once the patch to add the signal interface
into rpmsg is merged upstream.

Change-Id: I1df466579352660a276312a304c9eac88f113c60
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-11-22 12:55:54 -08:00
Chris Lew
da8adeaf36 rpmsg: glink: Cancel sending on processor reset
Unblock threads waiting for space in the smem fifo when the peer remote
processor reset is detected. This will allow processes to unblock and
cleanup instead of waiting for a 10 second timeout.

Change-Id: I1a033a81424dd0c40dd4aa709c4fb9a89e2fa124
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-11-22 12:54:40 -08:00
Chris Lew
d19561af42 rpmsg: glink: Use irqsave/irqrestore spin locks
The glink rx done function can be called from both soft irq and hard
irq context. To avoid any potential deadlock scenarios, use the irq
save and restore variants of the spin locks.

Change-Id: Id85367226a16db1c0e44f8e00c7b7f74f4c8b8fd
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-11-22 12:53:08 -08:00
Chris Lew
28149075f5 rpmsg: glink: Move glink packet driver
Move the glink packet driver from soc/qcom to rpmsg. The RPMSG char
driver is under rpmsg and the glink packet driver mirrors the RPMSG
char driver.

Change-Id: I4d1c5abbe656e4c54da74769067d35cd513f3b75
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
2022-11-22 12:51:26 -08:00
qctecmdr
e6e4cee2fa Merge "soc: qcom: pineapple_GKI: Enable panel notifier flag" 2022-11-22 11:43:25 -08:00
qctecmdr
9ae5566f8a Merge "wcd939x-usbss: Add support for WCD_USBSS_HSJ_CONNECT in the wcd939x i2c driver" 2022-11-22 11:43:24 -08:00
qctecmdr
55a06f0ea5 Merge "soc: rpmh-rsc: Initialize aoss_irq_sts" 2022-11-22 11:43:24 -08:00
qctecmdr
07cb78d7b7 Merge "modules.list.msm.pineapple: Add dcvs modules to first stage" 2022-11-22 11:43:24 -08:00
qctecmdr
4bab079e28 Merge "modules.list.msm.pineapple: add several SPMI and PMIC modules" 2022-11-22 11:43:23 -08:00
qctecmdr
5806ec7a8c Merge "soc: qcom: edac: Add a snapshot of LLCC EDAC driver" 2022-11-22 11:43:23 -08:00
qctecmdr
db84b5b107 Merge "defconfig: pineapple-gki: Enable LMH DCVS device driver" 2022-11-22 11:43:23 -08:00
Gaurav Kashyap
824f39cd19 ufs: host: data encryption support snapshot
Add snapshot from msm-5.15 to support in UFS to
exercise data encryption flow using wrapped keys.
commit b9c7626e6 ("Enable qrtr-mhi transport for VM").

Change-Id: I2d24d300ea90209c4833bc834dfb6a505ec6f063
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2022-11-22 11:14:15 -08:00
Bruce Levy
fd965aa44d soc: qcom: pineapple_GKI: Enable panel notifier flag
Enable panel event notifier driver for pineapple gki defconfig.

Change-Id: I7ada21d7420c0eafcae01289b223d9fa4df40d0b
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-11-21 20:56:45 -08:00
Linyu Yuan
75a57275dd usb: dwc3: msm: support usb3 linear redriver
redriver framework snapshot from msm-5.15
commit 32dbffee2bb3 ("usb: redriver: add nb7vpq904m rework driver")
commit 4465e83b503c ("usb: redriver: add core api").

Change-Id: Ie9b84641fc97f9e45bfd7f7eeeee1eba4bfd64f1
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
2022-11-21 19:13:28 -08:00
Chris Goldsworthy
a61d20bf30 defconfig: pinapple_tuivm: Enable mem_buf
Enable mem_buf along with the DMA-BUF carveout heap, in order to allow
mem_buf users to compile their code.

Change-Id: Ic8e581b9e9c4b293d0ab1c560e231ae53da72283
Signed-off-by: Chris Goldsworthy <quic_cgoldswo@quicinc.com>
2022-11-21 17:51:08 -08:00
Sam Rainey
1b5b41d667 wcd939x-usbss: Add support for WCD_USBSS_HSJ_CONNECT in the wcd939x i2c driver
Add a case in the wcd939x i2c driver for connecting a headset microphone
via the USB subsystem. Update corresponding header file.

Change-Id: Ia01804a8ffde36d055a65c11692cef20297e30ca
Signed-off-by: Sam Rainey <quic_rainey@quicinc.com>
2022-11-21 16:24:28 -08:00
Phani Kumar Uppalapati
3de6b11564 defconfig: Enable wcd usbss related configs for pineapple
Enable wcd usb subsystem related configs for pineapple
target.

Change-Id: Ic477b329a6ca564a6bab515c0a159d72ee13e18c
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-11-21 16:22:12 -08:00
Deepak Kumar Singh
094e8fbf63 defconfig: Enable qrtr over mhi transport for pineapple
This patch is required for qrtr communication for attaches
over mhi.

Change-Id: I625c91590d0d080000a0aecd2a0ebeabb0ef6478
Signed-off-by: Deepak Kumar Singh <quic_deesin@quicinc.com>
Signed-off-by: Tony Truong <quic_truong@quicinc.com>
2022-11-21 16:02:15 -08:00
Phani Kumar Uppalapati
fa9df61628 abi_gki_aarch64_qcom: Add symbols for wcd usbss i2c driver
Add i2c_transfer and regulator_bulk_enable to the ABI list
to be used in the wcd usbss i2c driver.

Change-Id: I045618c55e63b91d3a316967a9ab942f7e658f45
Signed-off-by: Phani Kumar Uppalapati <quic_phaniu@quicinc.com>
2022-11-21 16:01:12 -08:00
John Moon
4e62b4b3a8 ANDROID: Update pineapple module output list
Add new output drivers to pineapple list.

Change-Id: I9cf8667a3789d161ebdb0f9742be55199f09b54c
Signed-off-by: John Moon <quic_johmoo@quicinc.com>
2022-11-21 14:10:10 -08:00
qctecmdr
043bb02f96 Merge "power: supply: qti_battery_charger: add support for charge control" 2022-11-21 13:08:56 -08:00
qctecmdr
77b95503a4 Merge "defconfig: pineapple-gki: enable SPMI PMIC arbiter debug driver" 2022-11-21 13:08:56 -08:00
qctecmdr
dbf06163bb Merge "defconfig: pineapple-gki: Enable QMI sensor and cooling driver" 2022-11-21 13:08:56 -08:00
qctecmdr
8ec0745083 Merge "soc: qcom: eud: Do USB spoof disconnect and connect with enable/disable EUD" 2022-11-21 13:08:55 -08:00
Wesley Cheng
f65b5b627d usb: gadget: f_gsi: Do not re-initialize wait_for_ipa_ready
The IPA modules can likely be probed much before the USB GSI function is
initialized by userspace.  If the IPA ready callback is received before
configFS is initialized, then the wait_for_ipa_ready completion will be
reset, leading to subsequent GSI bind timeouts, since IPAM only notifies at
the IPA probe time.

Change-Id: I6e31a368a68635d5eed0f0d9b99526ae998f2bbb
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-11-21 11:34:50 -08:00
Mayank Rana
7aefd1c107 dwc3-msm: Fix NULL pointer dereference issue
mdwc->dwc3 is seen NULL when dwc3_msm_notify_event() is getting
called from dwc3 driver's probe context as mdwc->dwc3 is being
initialized later. Actual call flow is as below:

of_platform_populate()
--> dwc3_probe()
--> dwc3_gadget_core_init_mode()
--> dwc3_gadget_init()
--> usb_add_gadget()
--> check_pending_gadget_drivers()
--> udc_bind_to_driver()
--> dwc3_gadget_pullup()
--> __dwc3_gadget_start()
--> entry___dwc3_gadget_start()
--> dwc3_msm_notify_event(DWC3_CONTROLLER_SOFT_RESET)
--> dwc3_device_core_soft_reset()

As reference to dwc3 is already available, and there is no specific
handling perform with dwc3_device_core_soft_reset() other than
reconfiguring USB GSI endpoint related event buffers. Fix this issue
by invoking dwc3_msm_notify_event() with DWC3_GSI_EVT_BUF_SETUP and
remove usage of dwc3_device_core_soft_reset() API, and use passed
dwc3 reference instead of trying to access mdwc->dwc3.

Change-Id: I0b9dcc6148bebbcc3f8399c7ada4e3e298fb260f
Signed-off-by: Mayank Rana <quic_mrana@quicinc.com>
2022-11-21 11:33:52 -08:00
Wesley Cheng
8d95e23b2a usb: dwc3: dwc3-msm-core: Reset GSI event buffers after core soft reset
Due to a newly added sequence to issue a core soft reset before enabling
the pullup, the GSI event buffers also need to be reset as well:

commit 0066472de1 ("usb: dwc3: Issue core soft reset before enabling
run/stop").

Failure to do so will result in a SMMU fault, showing that the DWC3
controller is attempting to access a FAR=0x0.

Add a kretprobe to gadget start, as that is executed before enabling
run/stop, so that we can initialize the GSI event buffers properly.

Change-Id: I612bfcd24bba54b5c5850950838f5ad53523045a
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
2022-11-21 11:31:49 -08:00