Commit Graph

1020449 Commits

Author SHA1 Message Date
Amrit Anand
2a89bb59ad msm: qcom: Add usb related modules to be loaded in first stage
Add usb related modules to be loaded in first stage

Change-Id: Ia331ee1a8ed17a2c1f158454f645bdc7c9adc7ee
Signed-off-by: Amrit Anand <quic_amrianan@quicinc.com>
2023-03-21 11:12:29 +05:30
qctecmdr
5eaef642ce Merge "mmc: sdhci-msm: Add support for multicard tray removal FR" 2023-03-20 08:40:27 -07:00
qctecmdr
e3f49b3f2b Merge "msm: kgsl: Add target specific check for SP_DBG_CNTL programming" 2023-03-20 05:57:34 -07:00
qctecmdr
c30d015459 Merge "i2c: i2c-msm-geni: Framework to have test bus dump support" 2023-03-20 05:57:33 -07:00
qctecmdr
8520bff254 Merge "serial: msm_geni_serial: Add check for valid port in isr" 2023-03-20 05:57:33 -07:00
qctecmdr
0bc036ecf2 Merge "soc: qcom: pmic-pon-log: update pon trigger map for USB" 2023-03-20 03:12:47 -07:00
Sarthak Garg
b9728f9a83 mmc: sdhci-msm: Add support for multicard tray removal FR
To support FR84471 SD Card driver need to get the handle by querying
the handle for the newly created PSTM resources and vote for ONLY
Enable/Disable parameter on this handles and Mode and Voltage still
control through regular handles.

Please note this FR is for targets where underlying PMIC doesn't have
PBS RAM sequence to automatically turn off the regulators when
multicard tray is removed to avoid damage to sim card.

Hence vote on new PSTM resources provided by the PMIC team to solve the
above PMIC limitation and safely turn off SD card rails as soon as it
is removed.

Change-Id: I93be4cc4ef3a572ccb029e76e692125c72dbdf99
Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com>
2023-03-20 13:21:58 +05:30
qctecmdr
aad8c842c1 Merge "power: supply: qti_battery_charger: Handle error properly when probe fails" 2023-03-19 21:51:28 -07:00
qctecmdr
bc47f7d144 Merge "serial: msm_geni_serial: Prevent excessive logging due to WARN_ON" 2023-03-18 10:24:41 -07:00
qctecmdr
02e3f387f9 Merge "soc: qcom: llcc-qcom: Update bonus ways for neo_sg_v2" 2023-03-18 10:24:41 -07:00
qctecmdr
af67d5e58c Merge "msm: kgsl: Remove redundant call in gen7_hwsched_snapshot()" 2023-03-18 10:24:39 -07:00
qctecmdr
4813577b64 Merge "msm: kgsl: Set PERF_MODE tag for all targets" 2023-03-17 13:43:29 -07:00
qctecmdr
b669142de2 Merge "interconnect: qcom: anorak: fix UAF under remove function" 2023-03-17 05:34:18 -07:00
qctecmdr
e580d330e7 Merge "drivers: dcvs: memlat: fix probe failure when all CPUs in MON are disabled" 2023-03-17 05:34:17 -07:00
qctecmdr
fd90c2649c Merge "interconnect: qcom: parrot: fix UAF under remove function" 2023-03-17 05:34:16 -07:00
Kaushal Kumar
049f407eca soc: qcom: llcc-qcom: Update bonus ways for neo_sg_v2
Update the recommended values for bonus ways for the
LLCC slice configurations for neo_sg_v2.

Change-Id: If4250cfd88224c21d3bb6290fd4cb43dfd8c9eeb
Signed-off-by: Kaushal Kumar <quic_kaushalk@quicinc.com>
2023-03-17 04:48:57 -07:00
SIVA MULLATI
de29bc88bd msm: kgsl: Remove redundant call in gen7_hwsched_snapshot()
adreno_hwsched_parse_fault_cmdobj() been called twice in
gen7_hwsched_snapshot function. Cleanup by removing unnecessary call.

Change-Id: Ib90e3abd292b64656578c45f7bdb1cb5c818d2c4
Signed-off-by: SIVA MULLATI <quic_smullati@quicinc.com>
2023-03-17 03:53:09 -07:00
qctecmdr
8dd372a8aa Merge "msm: qcom: helioscom: support for configurable helios spi freq" 2023-03-17 02:39:03 -07:00
qctecmdr
25bc73bcf0 Merge "pci: msm: Don't dump debug info for linkdown due to device removal" 2023-03-17 02:39:02 -07:00
qctecmdr
b547b57efc Merge "qcedev: vote for crypto clocks during module close" 2023-03-17 02:39:02 -07:00
Vaishnavi AVS
a3baddcfc3 serial: msm_geni_serial: Prevent excessive logging due to WARN_ON
When application layer is not reading Rx data fast
enough from tty buffers tty_insert can fail.

Whenever tty_insert fails continuously, existing WARN_ON
is resulting in excessive logging and leading to
watchdog bark.

Used WARN_ON_ONCE whenever tty_insert fails and also
when unexpected wake_up interrupts occur to prevent
excessive logging.

Change-Id: I2c59675bf23ebb2c441e5015139d1193023e05d9
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
Signed-off-by: Vaishnavi AVS <quic_vavs@quicinc.com>
2023-03-17 02:15:56 -07:00
Harshitha Sai Neelati
1e1a07af77 msm: kgsl: Set PERF_MODE tag for all targets
PERF_MODE tag is needed for rpmh based non-gmu targets. Now interconnect
driver is properly handling the SLEEP tag and PERF_MODE tag. PERF_MODE
tag will be honoured where supported (rpmh) and discarded where not
supported (rpm). Hence follow the below now

1. Set the tags at a common place for all targets (gmu and non-gmu).
2. Make use of common tags provided by interconnect driver.
3. Set ALWAYS tag which will keep GPU vote active even if the APPS
   goes to low power mode while the GPU is running.
4. Set PERF_MODE tag along with ALWAYS tag for GPU Fmax.

Change-Id: I6b1a688c584e9cbc0154e3b8d062b9bcc2bae385
Signed-off-by: Harshitha Sai Neelati <quic_hsaineel@quicinc.com>
2023-03-17 09:52:43 +05:30
Kamal Agrawal
e01ee66082 msm: kgsl: Add target specific check for SP_DBG_CNTL programming
SP_DBG_CNTL needs to be programmed before shader state dump for gen7_0_x
family targets only. Thus, add target specific check for SP_DBG_CNTL
programming.

Change-Id: I95ddb1cfb24338fa33d7026dcc5b7aa7de960bfd
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2023-03-16 09:30:33 -07:00
qctecmdr
49e159927f Merge "msm: kgsl: Fix UCHE_GBIF_GX_CONFIG programming in a6xx_hwcg_set" 2023-03-16 06:23:18 -07:00
qctecmdr
8ba16b0c72 Merge "msm: kgsl: Add cx gdsc notifier for rgmu and non-gmu targets" 2023-03-16 06:23:18 -07:00
qctecmdr
1f06c5fefd Merge "mmc: sdhci-msm: Fix NULL pointer dereference warnings" 2023-03-16 06:23:17 -07:00
qctecmdr
54c880f0d9 Merge "icnss2: Check for SSR before SOC Wake request" 2023-03-16 06:23:17 -07:00
Paras Sharma
6c948826c8 pci: msm: Don't dump debug info for linkdown due to device removal
Some hot-pluggable endpoints like SDXC can be removed on the fly. When the
card is removed without gracefully shutting it down. Then PCIe driver can
see a link-down event (as the physical connection has broken) even before
PCIe driver terminates the link.

For such intentional/expected link-down events, we don't need to dump all
the PCIe register info.

This change is to distinguish between normal link-down and link-down due
to card removal and to skip duping debug info in the latter case. It
makes use of the card-presence pin to identify card is present or not.
When it sees a link-down without the card present, then it treats this
link-down as an intentional link-down and skips dumping PCIe registers.

Change-Id: Ifbcf8bae2558b4440ace9c042f6c76a43dce4354
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
2023-03-16 12:05:43 +05:30
Gaurav Kashyap
46badf8416 qcedev: vote for crypto clocks during module close
When qcedev module is exiting, it disconnects SPS.
At this times, crypto clocks need to be turned on
or it will cause a synchronous abort.

Tests: rmmod on the qcedev module.

Change-Id: I1721fe408392ef81b07a6c08d2196b2413ba2b2f
Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
2023-03-15 11:30:53 -07:00
qctecmdr
fef2c366e3 Merge "Assign channel pointer to NULL after free" 2023-03-15 10:24:06 -07:00
qctecmdr
f4e0eb8964 Merge "msm: kgsl: Check jiffies before SLUMBER entry" 2023-03-15 06:43:23 -07:00
Raviteja Laggyshetty
a475cbf58a interconnect: qcom: anorak: fix UAF under remove function
UAF is observed while unloading the interconnect driver.
Interconnect is core to the system and should not
be unloaded once it is probed. Marking the driver as
permanent by removing the module_exit function.

Change-Id: Ifa762d7107df6373b1263883b0e93ff702ca4a79
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-03-15 17:14:06 +05:30
Raviteja Laggyshetty
b123a06e0f interconnect: qcom: parrot: fix UAF under remove function
UAF is observed while unloading the interconnect driver.
Interconnect is core to the system and should not
be unloaded once it is probed. Marking the driver as
permanent by removing the module_exit function.

Change-Id: I887a2389f8c82ec4338781e9afc76cf49c449a0b
Signed-off-by: Raviteja Laggyshetty <quic_rlaggysh@quicinc.com>
2023-03-15 17:10:35 +05:30
qctecmdr
ecb9dd7d19 Merge "smcinvoke: Handle suspend and resume issues in smcinvoke driver" 2023-03-15 03:51:14 -07:00
qctecmdr
fed0481dc6 Merge "defconfig: Enable simple governor for parrot" 2023-03-15 03:51:14 -07:00
qctecmdr
3ac7a09c37 Merge "pci: msm: Unlock the recovery_lock in case of return in failure" 2023-03-15 03:51:13 -07:00
qctecmdr
5f9b3a7dfe Merge "msm: pcie: Restore irq when doing spin unlock" 2023-03-15 03:51:13 -07:00
qctecmdr
01d4ec9459 Merge "net: qrtr: Change port allocation to use cyclic xa" 2023-03-15 03:51:12 -07:00
qctecmdr
47792562b8 Merge "remoteproc: helios: Fix subdevice add order" 2023-03-15 03:51:12 -07:00
qctecmdr
04d18f368e Merge "drivers: thermal: qmi_cooling: Add support for extended device list" 2023-03-15 03:51:10 -07:00
Satish Kumar Kodishala
69a92c0a8a Assign channel pointer to NULL after free
Assign channel pointer to NULL after free

Change-Id: I23cc90c8df7124cde577ad751db9b83b6f7eee91
Signed-off-by: Satish Kumar Kodishala <quic_skodisha@quicinc.com>
2023-03-15 00:05:48 -07:00
Priyansh Jain
7a5a3a4e79 drivers: thermal: qmi_cooling: Add support for extended device list
The QMI TMD get device list supports maximum 32 devices. But there
are targets that support more than 32 QMI TMD devices. To add more
devices support as well as to make sure backward compatibility with
legacy device list, add new optional extended device list variable
in QMI TMD interface. The first 32 devices will be filled in legacy
device list variable and all other devices will be filled with new
extended device list variable.

Add support to qmi cooling device driver to get extended device
list if any.

Change-Id: I530669a9f89f8c9da7bbcc7d486dde76f0a7f3ea
Signed-off-by: Manaf Meethalavalappu Pallikunhi <quic_manafm@quicinc.com>
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-03-14 21:55:13 +05:30
Sachin Gupta
c6c9f20411 mmc: sdhci-msm: Fix NULL pointer dereference warnings
Fix null pointer dereference warnings in the clk scaling functions.

Change-Id: Ib33cb3be43a1d2981b9803f9c7f0880de7f17583
Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
2023-03-14 17:58:21 +05:30
Sarannya S
ca36a6668a net: qrtr: Change port allocation to use cyclic xa
There is a race for clients that open sockets before the control port
is bound. If a client gets an idr that was allocated before the control
port is bound, there is a chance the previous address owner sent lookup
packets to the control port. The new address owner will get residual
responses to these lookup packets.

Change the xa_alloc to xa_alloc_cyclic so new ids are allocated
instead of trying to reuse the freed ids.
Call the xa_alloc_cyclic function with GFP_ATOMIC.

Change-Id: Ie1bda7a818309503f80542e739bac646327296f7
Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
2023-03-14 15:18:59 +05:30
qctecmdr
946b7c4c0e Merge "Revert "msm: kgsl: Call dma_buf_unmap_attachment() early"" 2023-03-14 01:51:47 -07:00
qctecmdr
e5847a0b53 Merge "usb: dwc3-msm: Rectify 64 bit dma address programming for GSI" 2023-03-14 01:51:47 -07:00
Raghavendra Kakarla
d42b7da004 defconfig: Enable simple governor for parrot
This patch enable simple governor.

Change-Id: Ib03a760d5b165f85cf4058dd7c28ccca195727b6
Signed-off-by: Raghavendra Kakarla <quic_rkakarla@quicinc.com>
2023-03-14 13:55:48 +05:30
Mukesh Ojha
8ad6f876bc remoteproc: helios: Fix subdevice add order
The subdevice list should be populated in a particular order as
the state notifications have a priority. This change re-orders
the subdevice add calls to ensure higher priority subdevices are
present at the start of the list.

This change is inline with
commit c9f2092072 ("remoteproc: qcom: pas: Fix subdevice add order").

Change-Id: I94e0e7af3fe634d5354e0f58f0a818071c3ff918
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
2023-03-13 23:31:05 -07:00
qctecmdr
bce435f0b1 Merge "interconnect: qcom: ravelin: fix UAF under remove function" 2023-03-13 23:15:44 -07:00
qctecmdr
508ab50fb7 Merge "defconfig : Add support for USB configs" 2023-03-13 23:15:44 -07:00