Commit Graph

1130268 Commits

Author SHA1 Message Date
Linyu Yuan
e22de8882b arm64: defconfig: enable nb7vpq904m redriver
Enable NB7VPQ904M redriver for pineapple, that is used to improve USB
super speed(plus) signal.

Change-Id: I128b6421530bb0ae283f6c9bebeea445b4e1ddb0
Signed-off-by: Linyu Yuan <quic_linyyuan@quicinc.com>
2022-11-28 10:16:05 +08:00
qctecmdr
77e6e012b8 Merge "arm64: defconfig: Enable QCOM_RPROC_BOTH_DUMPS for defconfig" 2022-11-25 11:05:43 -08:00
qctecmdr
b33aa5cac8 Merge "remoteproc: qcom: pas: remove remoteproc dependency on ramdump driver" 2022-11-25 08:51:12 -08:00
qctecmdr
c848758c70 Merge "ufs-host: qcom: Retain MCQ configuration" 2022-11-25 08:51:12 -08:00
qctecmdr
747a2bb02f Merge "soc: qcom: llcc: Modify ALGO_CFG regmap_write to RMW Approach" 2022-11-25 08:51:12 -08:00
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
Cong Zhang
2646d90dd9 soc:qcom: Add extra byte for tailing NUL
Add extra byte for trailing NUL to make sure we can use the whole 12 or
9 length of entry name.

Change-Id: I6438bdcebc993f6d4779fd2ea440a7d76045e720
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-11-25 15:09:09 +08:00
Cong Zhang
f133022edf soc: qcom: Shorten minidump entry names
Since "vmid_" is added as the prefix of entry name in TUIVM, we only
have 9 bytes left for minidump entries. The change is to shorten
minidump entry names to less than 9 bytes.

Change-Id: I7b38a61bc3fcd2022b03a6d9b88df4e004cc4563
Signed-off-by: Cong Zhang <quic_congzhan@quicinc.com>
2022-11-25 13:39:27 +08:00
Naman Jain
05e5fb01e1 arm64: defconfig: Enable QCOM_RPROC_BOTH_DUMPS for defconfig
Enable QCOM_RPROC_BOTH_DUMPS in GKI config for pineapple
to collect both full and mini dumps for SSRs in the case where
both dumps collection is enabled for subsystem.

Change-Id: Ie166199b91c95f3ab7a34c10a0a46260b4412f6d
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-11-24 21:34:55 -08:00
Naman Jain
4f8722d6b5 remoteproc: qcom: pas: enable both dumps collection for mpss in pineapple
Enable collection of both minidump and fulldump in SSR for mpss in
pineapple by setting the flag to true in adsp_data.

Change-Id: If85564b090dc60cbaf04403e67dbf86507bc6db6
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-11-24 21:34:47 -08:00
Naman Jain
715100c478 remoteproc: qcom: support collection of mini and full dumps in SSR
Add a field for rproc client to enable collection of both minidump and
fulldump in coredump collection in recovery during SSR. Collect both
the dumps only if debug config is enabled, the flag for collecting
both dumps is set for the client and the collection of both dumps
is enabled by sysfs node by the user.

Change-Id: I6792da1c739bced7bee74b33ffa91d12792c758b
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-11-24 21:34:06 -08:00
Naman Jain
9654c24068 remoteproc: qcom: Add config to collect both mini and full dumps in ssr
Add a debug config to allow collecting both minidump and fulldump for
the case where minidump is allowed by policy and enabled for a subsystem.
Helps finding the reason for crashes where minidump lacks required
information and fulldumps are not available.

Change-Id: I40a198f711e6ad52e4ee45129cae26bf1d946ccd
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-11-25 11:01:16 +05:30
Maulik Shah
040f2a75d1 soc: qcom: crm: Add IPC logging
Add IPC logging for caching and writing various power states along
with channel switch and completion IRQ logging.

Change-Id: I4b7d263258b1228fcea1b7c2339e3c7cdf6dde8b
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
2022-11-24 05:38:05 -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
Auditya Bhattaram
20150990dd remoteproc: qcom: pas: remove remoteproc dependency on ramdump driver
commit 9cdb3f58189d ("remoteproc: qcom: pas: Rename subsystem minidump
 elf name") unknowingly make remoteproc driver to dependent on
qcom_ramdump with which remoteproc probe is failing.

However, qcom_ramdump is an optional and debug driver and remoteproc
should not depend on it. Fix this dependency.

Change-Id: I1021835cfe6432f21e173a73a6d2c9baf5231dd4
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Auditya Bhattaram <quic_audityab@quicinc.com>
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-11-24 14:20:07 +05:30
Mukesh Ojha
85e68f3f03 remoteproc: qcom: pas: Rename subsystem minidump elf name
Currently, the name of ELF remain same whether it is subsystem's
minidump or full dump and it was difficult for parsing tool to
identify the elf's between them.

As previous patch adds the support of creation of ramdump device
with a given name, now we would be creating separate dummy
minidump device for a subsystem with a name appended by _md.
which will help us in creating different name for subsystem's
minidump e.g remoteproc-adsp-md_2022-05-08_18-19-32.elf .

Change-Id: I6b49532b425b480e7351b7d1c86bb0ce29b09e1a
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-11-24 14:18:05 +05:30
Mukesh Ojha
d9691a6342 soc: qcom: ramdump: Add support to create/destroy ramdump device
There was a requirement from client drivers to create ramdump
device with a given name so that they control the name of the elf.

This change adds the support to create/destroy ramdump device.

Change-Id: I411cc92a1b41d44e8b6fef95d383613280dae0c2
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
2022-11-24 14:15:52 +05:30
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
Auditya Bhattaram
98bf9faddd soc: qcom: llcc: Modify ALGO_CFG regmap_write to RMW Approach
slice configuration for ALGO_CFGn registers are ovewritten by
subsequent slices. Modifying logic to read existing value in reg
OR/AND with current slice bit value & updating the register.

Change-Id: I72bd9d94a7f50f9859bb78014137f3a19653e854
Signed-off-by: Auditya Bhattaram <quic_audityab@quicinc.com>
Signed-off-by: Guru Das Srinagesh <quic_gurus@quicinc.com>
2022-11-23 13:43:53 -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