Commit Graph

1026397 Commits

Author SHA1 Message Date
qctecmdr
9f803dd42f Merge "drivers: thermal: Update logic in sdpm driver to handle available clocks" 2023-11-21 03:42:31 -08:00
Priyansh Jain
289a1e30a9 drivers: thermal: Update logic in sdpm driver to handle available clocks
SDPM driver probing is failed if any of the clocks configured in
devicetree is not available. Update sdpm driver probe logic to
proceed with the available clocks.

Change-Id: I8e66fb9028fa3f2f4f1b45bf9c2cc16e7e6950a9
Signed-off-by: Priyansh Jain <quic_priyjain@quicinc.com>
2023-11-21 11:57:24 +05:30
qctecmdr
5fdd4085d0 Merge "Adapt to FW1.0 and fix lock issue" 2023-11-20 22:18:16 -08:00
qctecmdr
f556ab9fd5 Merge "i2c: i2c-msm-geni: add levm check in suspend path" 2023-11-20 03:17:24 -08:00
Zhao Zha
ee97ee45ae Adapt to FW1.0 and fix lock issue
1.Fix lock issues of Adapt to FW1.0.
2.Fix no ack issue when updated  FW2.0.

CRs-Fixed: 3666209
Change-Id: I800a187ca69030b5326be0c19bdf8094f3973d26
Signed-off-by: Zhao Zha <quic_zhaozha@quicinc.com>
2023-11-18 05:25:10 +05:30
Subrat Dash
0acfe81fde wil6210: add support for ARC feature
Add wmi ARC (adaptive rate control) interface
for config command, response, and event.

The asynchronous ARC notification from firmware are sent to
user space through netlink events.

Change-Id: I22e351e4b146fa4393f57f2bdd2deaedb5d149ce
Signed-off-by: Subrat Dash <quic_sdash@quicinc.com>
2023-11-17 14:22:22 +05:30
qctecmdr
e41a0fa695 Merge "msm: kgsl: Allocate the VBO bind completion on the heap" 2023-11-15 04:39:09 -08:00
qctecmdr
c6a67067b0 Merge "drivers: qcom: dcvs: Free correct address in api" 2023-11-15 01:57:01 -08:00
qctecmdr
e119b1de3f Merge "kgsl: hwsched: Use global context for inline perfcounter select" 2023-11-14 09:40:01 -08:00
qctecmdr
1ca11d215d Merge "msm: Register msm_11ad panic notifier" 2023-11-14 06:52:11 -08:00
Kamal Agrawal
fb935a1aa6 kgsl: hwsched: Use global context for inline perfcounter select
Raw commands are designed to be used during boot up only. Register
a global context (managed by KGSL) with GMU to submit perfcounter
select PM4 packets for SP/TP/VFD blocks.

Change-Id: Ie6cb8ac5325d323b1e9a48ce8e22af0f019fa1eb
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2023-11-14 17:26:44 +05:30
qctecmdr
fff8a1ab9a Merge "drivers: dcvs: bwprof: Replace ktimer with qtimer" 2023-11-13 23:15:20 -08:00
qctecmdr
f0570a92e8 Merge "misc:Update the Nordic driver to be compatible with FW 2.0" 2023-11-13 10:27:42 -08:00
Wei Tan
84b415774a misc:Update the Nordic driver to be compatible with FW 2.0
Optimize data transmission,adapt to FW2.0.
1.Add SPI to upgrade HMD FW.
2.Add HMD nordic upgrade controller.
3.Optimize data transmission,kernel mapping pass data to HAL.

CRs-Fixed: 3639549
Change-Id: I04c587d628277ab26fde536f506e32a1f9c703ca
Signed-off-by: Wei Tan <quic_weitan@quicinc.com>
2023-11-13 08:10:01 +05:30
Prasanna S
fa561f6df9 serial: msm_geni_serial: Clear m_irq_status when TX is timed out
We are seeing M_TX_FIFO_WATERMARK_EN timeout during
console_write and M_CMD_OVERRUN is getting set which
indicates a new command is initialized by SW, before
the previous one has been completed. There is some data
in TX FIFO and before UART transaction is finished,
console_write() is called again without clearing the
m_irq_status.

During the next console_write if tx geni is
active and previous console_write was incomplete,
ensure the m_irq_status is cleared by calling
msm_geni_serial_poll_tx_done before triggering further
write operations.

Change-Id: I440f8d1e5234b2d9bb66b41ed1532bfec0088ce2
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2023-11-10 04:27:32 -08:00
Shivnandan Kumar
496021c328 drivers: qcom: dcvs: Free correct address in api
The sysfs apis duplicate the input string with kstrdup() and use strsep()
to parse the copied string. However since calls to strsep() can modify
the string pointer, it is incorrect to use the same pointer to free the
copied string. Instead, save the original location of the string so
that it can be properly freed at the end.

Change-Id: Ib0c2ef92c5c4fec7ea5e35f7a6e4d9662bb041cd
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
2023-11-10 09:48:43 +05:30
Daniel Mentz
109b0a6a45 BACKPORT: kheaders: Have cpio unconditionally replace files
For out-of-tree builds, this script invokes cpio twice to copy header
files from the srctree and subsequently from the objtree. According to a
comment in the script, there might be situations in which certain files
already exist in the destination directory when header files are copied
from the objtree:

"The second CPIO can complain if files already exist which can happen
with out of tree builds having stale headers in srctree. Just silence
CPIO for now."

GNU cpio might simply print a warning like "newer or same age version
exists", but toybox cpio exits with a non-zero exit code unless the
command line option "-u" is specified.

To improve compatibility with toybox cpio, add the command line option
"-u" to unconditionally replace existing files in the destination
directory.

Git-commit: 1e8ca62b79dec20aeded4fe283f4890e5016767a
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git .

Change-Id: I696041266c8f8910be8007e4745f74a930cc0e53
Signed-off-by: Daniel Mentz <danielmentz@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Naini Singh <quic_nainsing@quicinc.com>
2023-11-10 09:09:17 +08:00
Pravin Kumar Ravi
a6c7d7196f msm: synx: reduces stack frame size
Reduces the stack size of a function.

Signed-off-by: Pravin Kumar Ravi <quic_pravinku@quicinc.com>
Change-Id: Ic2c9d26e15dcad8973a62ef3e08a1c556160b718
Signed-off-by: Urvesh Rathod <quic_urathod@quicinc.com>
2023-11-10 09:07:33 +08:00
Subrat Dash
164234db7b msm: Register msm_11ad panic notifier
This change registers kernel panic handler for
wigig driver which will collect the fw crash dump
and copy it to the host ramdump mermory region.

Change-Id: I1743f340474e35cba162e23e145d1ef25a7aba28
Signed-off-by: Subrat Dash <quic_sdash@quicinc.com>
2023-11-09 10:56:23 +05:30
qctecmdr
ae66b721c4 Merge "i2c: i2c-msm-geni: create new function from probe" 2023-11-08 21:20:15 -08:00
Anil Veshala Veshala
3896cf0700 i2c: i2c-msm-geni: add levm check in suspend path
For LEVM during initial suspend we are unvoting for the clocks,
due to this crash happened in LEVM. To solve this added
conditional check for LEVM to bypass unvoting for suspend
as we don't want for resume.

Change-Id: Ie9e488b4f31c56b93d79d77e6d874f16efe4042d
Signed-off-by: Anil Veshala Veshala <quic_aveshala@quicinc.com>
2023-11-05 20:46:57 -08:00
Lynus Vaz
362f87718d msm: kgsl: Allocate the VBO bind completion on the heap
The VBO bind operation is often synchronous, and needs to be waited
on by the ioctl thread. Allocate the completion struct used to synchronize
between the ioctl and bind operation on the heap for simplicity.

Change-Id: I709d417dbd3fb0ecd1150439f598fc3629de378e
Signed-off-by: Lynus Vaz <quic_lvaz@quicinc.com>
2023-11-03 04:40:08 -07:00
gnuthaki
f45027fb1d drivers: thermal: thermal_debug: Alloc local buffer variable dynamically
The config buffer is stack variable and it consumes
huge stack memory and hence crosses stack limit.

Use heap memory for config buffer variable and
avoid huge stack memory consumption.

Change-Id: Id9c22439da288fa5f6b56b1c7f10eed3a39115b2
Signed-off-by: gnuthaki <quic_gnuthaki@quicinc.com>
2023-11-02 18:07:26 +05:30
Vandana Gupta
4b98ffcc3c drivers: dcvs: bwprof: Replace ktimer with qtimer
Replace ktimer timestamp with qtimer counter value for user space logs
to facilitate correlation with logs collected with qtimer value from
other masters in the SOC. However, the ftrace log will still contain ktimer
timestamp to enable correlation with other kernel logs.

Change-Id: Ib94dfe374d8643d7b9e075456ddc5f653b6c8d9c
Signed-off-by: Vandana Gupta <quic_vandgupt@quicinc.com>
Signed-off-by: Shivnandan Kumar <quic_kshivnan@quicinc.com>
2023-10-26 21:14:16 -07:00
qctecmdr
15832e6350 Merge "serial: msm_geni_serial: adding more regs while capturing dumps" 2023-10-18 05:35:26 -07:00
Swetha Chikkaboraiah
64c7603d2d soc: qcom: add new soc id for PARROT variants
Add new soc id for SG_PARROT, SG_PARROTP and PARROTP.

Change-Id: I876615deece5919d4623874433c408dbc4e65202
Signed-off-by: Swetha Chikkaboraiah <quic_schikk@quicinc.com>
2023-10-16 04:19:03 -07:00
qctecmdr
ae32994a49 Merge "drivers: dcvs : bwprof: Add support for 1ms sampling rate" 2023-10-15 22:49:40 -07:00
qctecmdr
00fdd674e8 Merge "firmware: qcom_scm: Add download bit during reboot" 2023-10-15 22:49:39 -07:00
Somesh Dey
b69eaf07c4 i2c: i2c-msm-geni: create new function from probe
Due to multiple if in i2c geni probe function, getting error.

Create new function from probe function to avoid error.

Change-Id: I34a848dc2225b80e8610f54c8e1499d772b288a9
Signed-off-by: Somesh Dey <quic_somedey@quicinc.com>
2023-10-14 21:07:54 +05:30
Meena Pasumarthi
7488ed3fc8 firmware: qcom_scm: Add download bit during reboot
During normal restart of a system download bit should
be cleared after checking whether download mode is
set or not.

Change-Id: I0a0de929668b29c9f7b54b86e28842dbe644eb4b
Signed-off-by: Meena Pasumarthi <quic_pasumart@quicinc.com>
2023-10-13 17:24:37 +05:30
Vandana Gupta
d0f497da38 drivers: dcvs : bwprof: Add support for 1ms sampling rate
Currently driver supports sampling rates starting from 100ms to
2 seconds. Extend it to support sampling rates down to 1ms. Upto
50ms the granularity of sampling period supported is in multiples of 1.
Beyond 50ms it is in multiples of 50. i.e User space can set sampling
periods from 1ms to 50ms in steps of 1 beyond that in steps of 50.

Change-Id: I0f9f250c35a1e67b7f65effb70baec11ca57040c
Signed-off-by: Vandana Gupta <quic_vandgupt@quicinc.com>
2023-10-12 10:05:29 +05:30
qctecmdr
651e1bcf21 Merge "dma-buf: Set page owner while allocating from dma-buf pool" 2023-10-10 22:19:45 -07:00
qctecmdr
51f8559b0a Merge "net: qrtr: Add local enqueue ipc logging" 2023-10-10 10:38:21 -07:00
qctecmdr
ef473dd43e Merge "i2c: i2c-msm-geni: add changes for levm resume" 2023-10-10 07:14:19 -07:00
qctecmdr
c0e7bb23dc Merge "mailbox: qmp: Use priority work queue to queue the shim tx" 2023-10-10 00:36:55 -07:00
Prasanna S
b707395f62 serial: msm_geni_serial: adding more regs while capturing dumps
Capturing additional registers while dumping register dumps.

Change-Id: I5a4b7a08cd1b8b20d4fdc2615dcff318a7fc63f8
Signed-off-by: Prasanna S <quic_prass@quicinc.com>
2023-10-09 11:24:17 +05:30
qctecmdr
85d46061ff Merge "iommu: Fix missing return check of arm_lpae_init_pte" 2023-10-05 06:44:11 -07:00
Pratyush Brahma
d03bccde07 iommu: Fix missing return check of arm_lpae_init_pte
UAF scenario may occur in clients with EL1 privileges for
iova mappings when we miss to check the return value of
arm_lpae_init_pte which may lead to an PTE be counted as
it was set even if it was already existing. This can cause a
dangling IOMMU PTE to be left mapped pointing to a
freed object and cause UAF in the client if the dangling PTE
is accessed after a failed unmap operation.

Change-Id: I674b9b520e705b8f8e63ba20ed76e64cb2fe0f47
Fixes: 9913ccceda61 ("qcom-iommu-util: Take a snapshot of the qcom-iommu-util module from msm-5.15")
[quic_pbrahma@quicinc.com: Propagated fix to the new file
 with the bug signature ]
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
2023-10-04 17:16:08 +05:30
Pratyush Brahma
3dba70427c dma-buf: Set page owner while allocating from dma-buf pool
Currently, when a page is allocated from a dma-buf pool,
the page owner shows the owner to be the refill worker thread
which has created the pool. It is incorrect, since there can be
many clients who have allocated pages from the pool and there is
no way to know the owner of those pages. Set page owner while
allocating from pool to show correct owner.

Change-Id: I95bbbb48829fa9e09389dc27e718bb55f19f56d8
Signed-off-by: Pratyush Brahma <quic_pbrahma@quicinc.com>
2023-10-04 03:46:39 -07:00
qctecmdr
7836297239 Merge "defconfig: parrot: Enable SDHCI_MSM_DBG for parrot" 2023-10-04 03:01:29 -07:00
qctecmdr
a045da1596 Merge "bus: mhi: fix potential out-of-bound access" 2023-10-03 23:10:40 -07:00
qctecmdr
8066410d91 Merge "memshare: Prevent possible integer overflow" 2023-10-03 23:10:39 -07:00
Sachin Gupta
f3a55c6000 defconfig: parrot: Enable SDHCI_MSM_DBG for parrot
Enable SDHCI_MSM_DBG for parrot for ipc logging enablement.

Change-Id: Ib04df05e38fa7ed1cd9ec81448029a823eba2cb5
Signed-off-by: Sachin Gupta <quic_sachgupt@quicinc.com>
2023-10-03 20:21:43 -07:00
Meenu Raja Sundaram
e8a2f7c556 mailbox: qmp: Use priority work queue to queue the shim tx
Use priority work queue to queue the shim tx to avoid the latency
in the vote send to aop sub system.

Change-Id: Idfc48715a4177580186e97735ca02d6685e8c1c8
Signed-off-by: Arun Prakash <quic_app@quicinc.com>
Signed-off-by: Meenu Raja Sundaram <quic_mrajasun@quicinc.com>
2023-10-03 14:25:40 +05:30
qctecmdr
dd4249f17f Merge "soc: qcom: qmi_encdec: out of bound check for input buffer" 2023-10-03 00:06:30 -07:00
Manoj Prabhu B
9abb15f5c8 memshare: Prevent possible integer overflow
Prevent possible integer overflow by sanitizing the alloc request
size coming from the client against allottable amount of memory.

Change-Id: I74cb0f7b0808f20299586969fd5c810d44c3e576
Signed-off-by: Manoj Prabhu B <quic_bmanoj@quicinc.com>
2023-10-03 12:09:39 +05:30
Paras Sharma
9081e40fd9 bus: mhi: fix potential out-of-bound access
In the mhi_sat_isvalid_header function if the length is less than
the size of header then there can be out-of-bound access.

So fix the len check in the function.

Change-Id: I80f1556557b1bf2f30c07f6377bd6e3db48712b3
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Signed-off-by: Paras Sharma <quic_parass@quicinc.com>
2023-10-03 11:12:30 +05:30
qctecmdr
87ba3748cd Merge "spi: spi-msm-geni: add changes for null pointer check" 2023-10-02 22:09:35 -07:00
qctecmdr
f8ce1d2c5e Merge "icnss2: Add two vectors for DP in wcn6450 msi config" 2023-09-29 16:39:10 -07:00
qctecmdr
f3d10fbc0e Merge "usb: dwc3: msm: Handle absence of disconnect event during plug-out" 2023-09-29 14:28:12 -07:00