Commit Graph

1167662 Commits

Author SHA1 Message Date
qctecmdr
29d98d9f6b Merge "firmware: scm: Avoid NULL pointer dereference issue" 2024-06-19 04:13:13 -07:00
qctecmdr
c9ae638d03 Merge "net: qrtr: genpool: Change the order of IRQ registration" 2024-06-19 00:45:23 -07:00
qctecmdr
cff5a91edd Merge "slimbus: qcom-ngd-ctrl: Return from runtime_suspend if QMI is null" 2024-06-19 00:45:23 -07:00
qctecmdr
748166c057 Merge "usb: dwc3-msm-core: Remove force gen1 quirk based code from wrapper" 2024-06-19 00:45:22 -07:00
qctecmdr
939ed9cfe5 Merge "ufs: ufs-qcom: Set spm level 5 for S2D" 2024-06-19 00:45:22 -07:00
qctecmdr
fd6dc7ace1 Merge "sound: usb: xhci-sec: Avoid disabling interrupts while doing dma_unmap" 2024-06-19 00:45:21 -07:00
Udipto Goswami
628b4b6bfc usb: dwc3-msm-core: Remove force gen1 quirk based code from wrapper
Upstream commit 91736d0619eb ("usb: dwc3: core: set force_gen1 bit
in USB31 devices if max speed is SS"), the core driver is made capable
of setting the force gen1 bit based on the platform.
Since this is already present, no need for the code in msm-core driver.
Removing the redundant code.

Change-Id: I0573a280992e26044b3f1700d6e6061b92342fd4
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
2024-06-18 11:01:14 -07:00
qctecmdr
b3fa565f0a Merge "pinctrl: qcom: Fix function name for gpio114" 2024-06-18 05:45:46 -07:00
qctecmdr
42ae85d4b2 Merge "clk: qcom: clk-cpu-sdxlemur: Add clock boundaries for APCS_CPU_PLL" 2024-06-18 01:15:42 -07:00
Komal Bajaj
1989c75afd firmware: scm: Avoid NULL pointer dereference issue
caller of qcom_scm_set_boot_addr(), qcom_scm_disable_sdi(),
qcom_scm_phy_update_scm_level_shifter(), qcom_scm_mmu_sync(),
and qcom_scm_deassert_ps_hold() incorrectly calls SMC
api without checking if SCM driver is ready or not without
which it is possible it can fail in low level SCM layer
and result in NULL pointer dereference.

While at it, also fix the place of scm device assignment.
(cherry picked from commit a76e4a84e4333bcf35885232583e743a5d33a01f).

Change-Id: I09d9b20153fe9e3cf5f758f041ba2015ed1504ba
Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com>
2024-06-17 22:24:18 -07:00
Sarannya S
f7279bb8f1 net: qrtr: genpool: Change the order of IRQ registration
Previously, irq_setup was registered before irq_xfer in the init
function. This can lead to an 'unbalanced IRQ' race condition
error for the irq_xfer since irq_xfer was not being enabled when
needed in the worker function.
The fix switches the IRQ registration order, registering irq_xfer
before irq_setup since data is expected in irq context only after
the setup is done.

Change-Id: I554fef12300fd2c2b2aebe13a86c5cd0dc10aac1
Signed-off-by: Sarannya S <quic_sarannya@quicinc.com>
2024-06-18 10:47:11 +05:30
Prasanna S
77e670c294 slimbus: qcom-ngd-ctrl: Return from runtime_suspend if QMI is null
According to present logic, we are trying to read NGD1_INT_EN
register even before checking if QMI handle is NULL which is
resulting into NOC issue as previous runtime_resume was not
executed.

If runtime_suspend is called and QMI handle is NULL, return
immediately.

Change-Id: I85aaf51e5c8d7c45b6a0d73b02f06b5cc1732189
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-06-18 10:17:47 +05:30
qctecmdr
069ac0ea24 Merge "interconnect: qcom: icc-rpmh: Add support for No secondary display" 2024-06-17 21:32:15 -07:00
qctecmdr
9f82e4920c Merge "arm64: defconfig: Enable bandwidth profiler for anorak" 2024-06-17 09:36:12 -07:00
Krishna Kurapati
0f131ce07b sound: usb: xhci-sec: Avoid disabling interrupts while doing dma_unmap
Recent commit introduced locking during ring cleanup to avoid
accessing of sec list while another thread tries to access it.
But irqsave was done and then it went for unmap causing a crash.
Fix it up by deleting the sec list and releasing the lock and
then claning up the ring.

Fixes: ffb00fc38c ("sound: usb: xhci-sec: Prevent Null pointer deference in xhci-sec")
Change-Id: I5844f90fb4d5297132e683460e958c8d7294aed3
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
2024-06-17 08:16:05 -07:00
qctecmdr
5e0e873805 Merge "arm64: defconfig: add qdss related config for anorak" 2024-06-17 06:00:17 -07:00
qctecmdr
d78adcc483 Merge "ufs: ufs-qcom: Set spm level 5 for QB/DS" 2024-06-17 06:00:17 -07:00
qctecmdr
5cf98b86c6 Merge "soc: qcom: minidump: Add valid address check for virtio minidump driver" 2024-06-17 06:00:16 -07:00
Darshankumar Jagdishchandra Thakkar
4d21535445 ufs: ufs-qcom: Set spm level 5 for S2D
Set spm level to lvl 5  in case of S2D while suspending
the UFS device.

Change-Id: I5ebe7331cb34df94226b598bde05da38a5f1468d
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2024-06-17 01:58:28 -07:00
qctecmdr
4202118bc6 Merge "serial: msm_geni_serial: Do not enable stale interrupt if port is closed" 2024-06-17 00:08:23 -07:00
qctecmdr
85c1027445 Merge "ARM: defconfig: Enable GKI based defconfig for autoghgvm" 2024-06-17 00:08:23 -07:00
qctecmdr
2b26a676d8 Merge "i2c: i2c-msm-geni: Enable multi descriptor support for shared SE" 2024-06-17 00:08:22 -07:00
qctecmdr
08f3514ce1 Merge "arm64: defconfig: Enable CONFIG_RELAY" 2024-06-13 23:13:39 -07:00
Krishna Chaithanya Reddy G
da0999a52a i2c: i2c-msm-geni: Enable multi descriptor support for shared SE
So far we bypassed multi-descriptor changes for shared-se, now
enabled multi-descriptor changes for shared SE as well.

Multi-descriptor uses block event interrupt(bei) to receive interrupt
after transferring i2c messages specified  by max number of transfers.
HW will transfer data corresponding to all tre's and generate interrupt
at the end of last transfer. In this implementation the number of
interrupts are reduced and also ensured that while hardware is
processing one set of tre's,software queues the next set of tre's
if available.

Change-Id: I983272681a7cbd99d4dab3d89e4f2b9edc8b3af7
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-06-13 15:38:57 +05:30
Krishna Chaithanya Reddy G
659462265d i2c: i2c-msm-geni: add separate function for gsi i2c read and write
currently i2c geni driver is handling gsi i2c read and write in
i2c_gsi_xfer function, due to multiple if conditions giving
cyclomatic complexity number error. To provide more readability
and reduce complexity segregated to two different functions
geni_i2c_gsi_write and geni_i2c_gsi_read.

Change-Id: Id9cfffd90c0378ba3e689e8c3713a9fabe20ea84
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-06-13 15:37:00 +05:30
Krishna Chaithanya Reddy G
7986eff661 i2c : i2c-msm-geni: Don't check for ios lines state for shared se mode
If it is a shared SE usecase, other EEs might have acquired
GSI lock which shall initiate the i2c transfers so line might
not be in good state. Hence we should not check the ios lines
state during the initiating the transfer in shared SE mode.

Removed the check condition to check for i2c geni ios lines state
for shared se in geni_i2c_xfer API.

Change-Id: Ibf517ecb3efe09a90e8c5e491d552bc0f148da46
Signed-off-by: Krishna Chaithanya Reddy G <quic_kgangapu@quicinc.com>
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2024-06-13 15:34:54 +05:30
Darshankumar Jagdishchandra Thakkar
4ae21af50c ufs: ufs-qcom: Set spm level 5 for QB/DS
During deep sleep, all regulators are turned off.
So, Set spm level to lvl 5 in case of deep sleep,
to ensure that appropriate SSU command is sent to
the ufs device.

For other senerios like s2idle, the spm level
must not be changed.

Change-Id: I404b4f61192488c87f09e664e11d1ec53a5f06d0
Signed-off-by: Ram Kumar Dwivedi <quic_rdwivedi@quicinc.com>
Signed-off-by: Darshankumar Jagdishchandra Thakkar <quic_djagdish@quicinc.com>
2024-06-13 15:23:43 +05:30
Sravan Kumar Muppidi
0db6e16964 clk: qcom: clk-cpu-sdxlemur: Add clock boundaries for APCS_CPU_PLL
For APCS_CPU_PLL clock, the clk_rate_request is zero'd at creation and
both the min_rate and max_rate fields will also be set at zero, which
will break any code depending on the clock boundaries. Hence, initialize
the clock boundaries properly for APCS_CPU_PLL clock.

Change-Id: Ie33a3874137c3bb509d9f4c55cd96d5b449c7df8
Signed-off-by: Sravan Kumar Muppidi <quic_sravmupp@quicinc.com>
2024-06-13 02:00:52 -07:00
Xiaoning Ma
a3488e7f8d arm64: defconfig: Enable CONFIG_RELAY
Enable CONFIG_RELAY to support streamfs APIs.

Change-Id: I565c3faaeced97523d8789f88bd5e0db179c0ce9
Signed-off-by: Xiaoning Ma <quic_mxiaonin@quicinc.com>
2024-06-13 00:51:15 -07:00
Singa Reddy Dasari
91f42aacd6 ARM: defconfig: Enable GKI based defconfig for autoghgvm
Enable GKI based defconfig for autoghgvm.

Change-Id: Ic5b6f65cfc526396f9b255b59e23a81100c374b3
Signed-off-by: Singa Reddy Dasari <quic_singredd@quicinc.com>
2024-06-12 17:28:37 -07:00
qctecmdr
5cea1aa2af Merge "spi: spi-msm-geni: driver xfer_timeout cleanups" 2024-06-12 04:41:59 -07:00
Amrit Anand
2c25e7940a pinctrl: qcom: Fix function name for gpio114
Fix function name for gpio114.

Change-Id: Ie5389715dd3058675c94eddb7c17ba55600e04fa
Signed-off-by: Amrit Anand <quic_amrianan@quicinc.com>
2024-06-12 02:24:49 -07:00
Asit Shah
8f021fcc5c arm64: defconfig: Enable bandwidth profiler for anorak
Enable bandwidth profiler driver for anorak.

Change-Id: I3b3c1f68164eae0c419c7e9b85880d119dffda92
Signed-off-by: Asit Shah <quic_asitshah@quicinc.com>
2024-06-12 12:07:30 +05:30
LADI RAM SAI
a98c56d5e7 soc: qcom: minidump: Add valid address check for virtio minidump driver
Add a valid address check for VirtIO minidump driver for autogvm.

Change-Id: I778e013e6db94dce7e60f1e0fe7107f502f43988
Signed-off-by: LADI RAM SAI <quic_lramsai@quicinc.com>
2024-06-11 21:58:57 -07:00
qctecmdr
089120f1d1 Merge "sched/walt: Fix pipeline fastpath during active load balance" 2024-06-11 21:12:20 -07:00
qctecmdr
f4e48e42c3 Merge "soc: qcom: hab: ctx owner should use tgid instead of pid" 2024-06-11 10:24:15 -07:00
Atul Pant
0f8077d655 sched/walt: Fix pipeline fastpath during active load balance
Pipeline fastpath is skipped when a cpu is already running a pipeline
task. It may happen that the current pipeline task and the task for
which we are finding the best cpu are same. This scenario arises during
load balancing on every scheduler tick, where we find the new best cpu
for the current task. Fix this by allowing pipeline fastpath if current
pipeline process on a cpu is same as the process for which we are
finding the best cpu.

Change-Id: Iaf935694c7c580b2e191793491130c1a3ccbedc4
Signed-off-by: Atul Pant <quic_atulpant@quicinc.com>
2024-06-11 08:09:27 -07:00
qctecmdr
a6328b5102 Merge "drivers: scm: Handle multi SMC support" 2024-06-11 00:54:39 -07:00
qctecmdr
b6f5019005 Merge "pci: msm: Adding a provision to disable BDF Halt feature" 2024-06-11 00:54:38 -07:00
Venkata Talluri
03a7869ff1 arm64: defconfig: add qdss related config for anorak
Add qdss related config for anorak.

Change-Id: I4e4271d2db10934be4ec5ba181f5c8b4f47a6be6
Signed-off-by: Venkata Talluri <quic_vtalluri@quicinc.com>
2024-06-11 00:11:42 -07:00
qctecmdr
e60961957c Merge "pinctrl: Add support for Niobe VM" 2024-06-10 08:08:22 -07:00
qctecmdr
dc380bc830 Merge "sound: usb: qmi: Prevent NULL deference in handle_uaudio_stream_req" 2024-06-10 04:19:40 -07:00
qctecmdr
68df35a458 Merge "defconfig: autogvm: remove DWMAC_LOONGSON for auto target" 2024-06-09 10:44:52 -07:00
Zelong Ren
780109879a soc: qcom: hab: ctx owner should use tgid instead of pid
In the actual use of hab client, there will be a case where
a child thread is responsible for managing habmm_socket_open/close,
and other child threads use vcid for communication. If ctx->owner
is pid, then context_stat will display the pid of the child thread.

This is not what we want. We hope that context_stat will display the
pid of the main process, not the pid of a child thread under the
main process. Because the main process often has more information
for us to analyze and debug.

Change-Id: Ie33e114f6dc1c94dec3f409022ed6e397f91bd2e
Signed-off-by: Zelong Ren <quic_zeloren@quicinc.com>
2024-06-09 16:29:43 +08:00
qctecmdr
3eed28599d Merge "soc: qcom: mem-hooks: Register hook for android_rvh_try_fixup_sea" 2024-06-07 12:14:45 -07:00
qctecmdr
409d4eede7 Merge "dt-bindings: Add IPCC client ID for NSP1" 2024-06-07 08:39:53 -07:00
qctecmdr
d725ee6a28 Merge "dcvs: bwprof: Use default_groups in kobj_type" 2024-06-07 04:56:08 -07:00
qctecmdr
d1c71ddfef Merge "arm64: defconfig: Enable governor and stat driver for anorak" 2024-06-07 04:56:08 -07:00
qctecmdr
e12f8aacb4 Merge "remoteproc: pas: Avoid NULL pointer dereference issue" 2024-06-07 04:56:07 -07:00
qctecmdr
e6d2f5c28c Merge "sched/walt: use rcu_access_pointer instead of rcu_dereference" 2024-06-07 04:56:07 -07:00