Commit Graph

72443 Commits

Author SHA1 Message Date
Kartikey Arora
681c14539a icnss2: Add changes to vote for bus bandwidth
Add changes to support voting for bus bandwidth through driver
for different interconnect paths based on throughput threshols
and DDR frequency.

CRs-Fixed: 3887876
Change-Id: I4cf759d46a9ef8f3f5688d22e7619d5a010293a3
2024-08-07 03:59:51 -07:00
Jiani Liu
a9b214d91e cnss2: Wait for PCIe switch ready
If WLAN is attached to PCIe switch, it's possible that PCIe switch is
not probed when cnss_probe call PCIe enumeration. This case can lead to
cnss_probe failure, it prenventing the cld driver ko loading. From user
layer can see WLAN interface is not up.

To fix this issue, cnss_probe call PCIe enumeration until PCIe switch is
probed.

Change-Id: I302f23cc2af6c738e4c18c7eb6a09685a49a643c
CRs-Fixed: 3863866
2024-08-07 03:59:49 -07:00
Tianfeng Ren
88241e0fc8 cnss2: Skip suspend from client side for pcie switch case
Follow 'commit Ic63fd054788 ("pci: msm: Fix for PCIe
suspend/resume for QPS615 PCIe switch")'

As suspend has been controlled by pcie driver for PCIe
switch case, skip suspend from client side. Otherwise
it may cause stability issue.

Change-Id: If7788e9f8ae7945ec7f5984ee15e2e10eb289d73
CRs-Fixed: 3848272
2024-08-07 03:59:47 -07:00
Jiani Liu
ae1e042498 cnss2: Set and retrain PCIe link for PCIe switch
When WLAN is attached to PCIe switch, set and retrain DSP <-> EP link
in BW scale callback function. It avoids touching RC <-> USP link which
may impact other devices.
With this change, it could support Hamilton PCIe Gen3 on PCIe switch
platform.

Change-Id: Id444ac847613971545bf66db9bb1a6e427028802
CRs-Fixed: 3848272
2024-08-07 03:59:45 -07:00
Jiani Liu
d792a01299 cnss2: Control the power on/off wlan device for PCIe switch platform
CNSS driver controls the power on/off wlan device. because on CPE
platform the link/power status of RC<->USP may be still on when wlan
device is turning on/off, this may cause uncorrectable AER error on
DSP side, to avoid this issue DSP's downstream link should be
disabled before power on/off wlan device, and re-enabled after wlan
power on, and also wait for link training of DSP<->WLAN to complete.

To be compitable with non PCIE switch platform, add a new config
CONFIG_PCIE_SWITCH_SUPPORT to enable/disable this function

Change-Id: Iaca103850d5ffc717a2a8bc40d16358e03c0c9db
CRs-Fixed: 3848272
2024-08-07 03:59:43 -07:00
Yuhui Zhao
b8c148edeb asoc: wcd9378: add the hph volume register in regmap
when MBQ & C/N bit enabled, vol and mute register will
 become a new register, which cannot be updated, so add the
new registers in regmap.

Change-Id: I9b13889c6b5281a529b0feacfb7669575d5028e0
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-08-07 15:04:02 +08:00
Prateek Patil
867a9e6cd5 icnss2: Cache notif->crashed flag for collecting MSA0 ramdump
When WPSS crashes, remoteproc module sets notif->crashed to 1 in case
of BEFORE_SHUTDOWN, whereas, in case of AFTER_SHUTDOWN, remoteproc
module sets notif->crashed to 0.

To avoid MSA0 ramdump collection on graceful shutdown case, save
notif->crashed flag to determine WPSS crash and collect MSA0 ramdump
only when WPSS crashes.

Change-Id: I48b79ba5e21ebf5d1839c2e7d863d0eb74ad592b
CRs-Fixed: 3887666
2024-08-06 22:32:38 -07:00
Ravindra Konda
5bfd688bb1 Release 5.2.1.92S
Release 5.2.1.92S

Change-Id: I67d9dc44938810bd41475ddcf7e7fc010e324750
CRs-Fixed: 774533
2024-08-06 18:35:42 -07:00
Jianmin Zhu
794ea74570 qcacld-3.0: Fix failed to roam to 320 MHz AP issue
When create vdev, CC is US, max_allowed_bw was 160 MHz, so host set EHT
cap without 320 MHz supported to F/W.
Then APPs reset CC to Japan, max_allowed_bw became 320 MHz, but host
didn’t update eht cap with 320 MHz to F/W correctly especially when
STA disconnected. So F/W can’t roamed to AP with 320 MHz BW.

To fix it, if max_allowed_bw become 320 MHz after CC changed, update eht
cap with 320 MHz supported to F/W correctly, if sta disconnected, update
CAP IE too.

Change-Id: Ifda240e6edd7fe123bf4f29b875d7792c1232463
CRs-Fixed: 3877506
2024-08-06 18:35:41 -07:00
Jiani Liu
b458d07087 cnss2: Add wlan PCIe switch property
Add wlan dts property qcom,pcie_switch_type to mark the wlan chip
is attached on the PCIe switch NTN3. If it's PCIE_SWITCH_NTN3, cnss
driver will enable/disable accordingly PCIe switch dsp link when
power on and shutdown wlan chip.

Change-Id: I48bb56879d5c00f05d0b4e62888027c435f861ee
CRs-Fixed: 3878342
2024-08-06 16:17:33 -07:00
QCTECMDR Service
ebf9fef7a8 Merge "msm: ADSPRPC: Avoid Out-Of-Bounds access" 2024-08-05 23:19:24 -07:00
sarath varma ganapathiraju
71ce6b682b asoc: lpass-cdc: disable clk when they are enabled
Check if clk is enabled before disabling it to avoid
warning log during adsp SSR.

Change-Id: I916af6f9efacfe3d08e0b05dcc0c6023944369d2
Signed-off-by: sarath varma ganapathiraju <quic_ganavarm@quicinc.com>
2024-08-05 11:10:32 -07:00
Camera Software Integration
00b0ead282 Merge "msm: camera: isp: Get valid csid id" into camera-kernel.lnx.7.0 2024-08-05 00:16:38 -07:00
Ravindra Konda
d3fabead6c Release 5.2.1.92R
Release 5.2.1.92R

Change-Id: I90eff6930862109079170de43750b2729027c771
CRs-Fixed: 774533
2024-08-04 23:56:49 -07:00
Surya Prakash Sivaraj
3fbcb24a71 qcacld-3.0: Downgrade connection to 11ax for EHT-only APs
Some IOT EHT APs do not respond to ML-probes. However, STA
does not support pure-EHT connections, therefore downgrade
the STA connection to 11ax for non-MLO APs.

Similarly, after 3 initial attempts of unicast join probing,
send the rest of the join probes as broadcast.

Change-Id: I9471c5b211f9480877c9c2475eaef93071b82734
CRs-Fixed: 3846888
2024-08-04 23:56:48 -07:00
Shashank Reddy Vulupala
f69aced6b8 icnss2: Update ccflags in Makefile
Add -Wmissing-prototypes ccflag for platform driver.

Change-Id: Ia375eae383fa64d0f477f3a1e2c4444ff2884ef7
CRs-Fixed: 3844455
2024-08-01 03:11:00 -07:00
Priyanko Sarkar
014456b1ed msm: synx: Fixes null pointer dereference in handle import
Fixes null pointer access during global handle allocation failure
while importing local handle as global.

Change-Id: I4f644af86151d8599e3ad51d82fbf6e7db4aca41
Signed-off-by: Priyanko Sarkar <quic_priyanko@quicinc.com>
2024-07-31 21:43:35 -07:00
Asutosh Mohapatra
a674fdf613 qcacmn: Remove invalid channels from usable channel list for SAP/GO
There can be a possibility that some 6 GHz channels are enabled
for STA/CLI/NAN but disabled for SAP/GO. As part of get usable
channel list request there is no logic to validate if these 6 GHz
channels are disabled for SAP/GO, hence these channels are not
getting removed for get usable channel list request for SAP/GO.

To address this issue remove 6 GHz channels from usable channel
list, if frequency not valid for SAP/GO.

Change-Id: I8171f5d3e3747e28785e0515c87346cd53ff7712
CRs-Fixed: 3874255
2024-07-31 14:08:59 -07:00
Rahul Gusain
608d3ddcb6 qcacmn: OOB while parsing ML per STA profile
Currently, while parsing the per STA profile IE, driver tries to
access the EXTN element ID without checking IE len. When IE len
is zero, if driver tries to access the IE after IE header then it
will leads to out of bound error.

So, to fix this, add check for IE len before accessing it.

Change-Id: I30d3fae9aaedc0011a2d3415e273d5e32db2d56e
CRs-Fixed: 3852338
2024-07-31 12:58:17 -07:00
quic_anane
2466bcf3ce msm: ADSPRPC: Avoid Out-Of-Bounds access
Currently, when adding duplicate sessions to an array that holds
session information, no check is performed to avoid going out of
bounds. Add a check to confirm that the index is not out of bounds.

Change-Id: Ib7abcc5347ba49a8c787ec32e8519a11085456d9
Signed-off-by: quic_anane <quic_anane@quicinc.com>
2024-07-31 03:00:55 -07:00
Faiz Kuchay
a1e8d2ab44 asoc: update init func for rxtx-rx1 virt dailink
The init func of rxtx-rx1 virt dailink should
be same with rxtx-rx1 dailink.

Change-Id: I62008bfb742d6c6b818b1b4dbce6d521229d0369
Signed-off-by: Faiz Kuchay <quic_fkuchay@quicinc.com>
2024-07-31 02:10:28 -07:00
Mohammed Ahmed
234bc26709 cnss2: Fix mbox_msg size calculated
Current code passes in mbox_msg max buffer
size to mailbox api rather than actual string
length. Resulting in KASAN detecting an out of
bound issue. Fix this by calculating the string
length, and passing that in.

CRs-Fixed: 3876948
Change-Id: I7d9be5466ca5bec81e181f47e278205d6d9a64ce
2024-07-31 00:17:30 -07:00
Ravindra Konda
17c45a2d4e Release 5.2.1.92Q
Release 5.2.1.92Q

Change-Id: Iecfe784a6e73cd0df365a3fed27d7883cf5f9141
CRs-Fixed: 774533
2024-07-30 17:36:48 -07:00
Asutosh Mohapatra
1e226d0968 qcacld-3.0: Add NLMSG_HDRLEN for each nest
Currently while calculating skb length for usable
channel list host doesn't consider space needed for
each nla_nest_start. Hence sometime seeing failure
in filling skb because less memory gets allocated.

To address this issue, add NLMSG_HDRLEN size for each
nest.

Change-Id: If630a48bb30e491651c775f5ffdb957626fdbfd9
CRs-Fixed: 3877033
2024-07-30 17:36:47 -07:00
Ravindra Konda
0c2a8ca0ca Release 5.2.1.92P
Release 5.2.1.92P

Change-Id: Ib84244b787a2802dabcfe2cbf758276c88ca4618
CRs-Fixed: 774533
2024-07-30 10:12:12 -07:00
Karthik Kantamneni
00c7b16cd1 qcacld-3.0: Do not aggregate checksum failure packets in FISA
When MSDU fails for checksum validation, do not aggregate those
packets and make sure current flow is flushed. Since checksum
failure packet data is not trust worthy it is not advisable to
build aggregated skb on top of checksum failure packets.

Change-Id: I09d8c4aeb656e6b0b5d268a60d72147534f2a2ab
CRs-Fixed: 3805053
2024-07-30 10:12:11 -07:00
Ravindra Konda
c660976ec1 Release 5.2.1.92O
Release 5.2.1.92O

Change-Id: I6a6c2272a5fcff3ed6aa114d28c62c5b10830191
CRs-Fixed: 774533
2024-07-30 08:55:33 -07:00
Aasir Rasheed
95fd9e15d6 qcacld-3.0: Enhance STA ds check with MLD address
1. Check if STA is present with MLD address,
this can happen if STA is non ML, so MLD address will be used as
address for connected STA.

2. Check if STA present with same MLD address as current SA,
this can happen if SAP is ML, so the MLD address will be
used as SA address for connected STA.

Change-Id: Id3f64a8937c257ea503a0e847f16e2b251b4ef81
CRs-Fixed: 3871110
2024-07-30 08:55:32 -07:00
Lin Bai
92b14cc478 cnss2: Return proper value when sending AOP msg
Positive return value from mbox_send_message() should be
treated as success, which indicate the index of
free mbox buffer obtained.

Change-Id: I59b47a3a711468ef233b43c1191217f1f6911c1f
CRs-Fixed: 3878630
2024-07-30 07:45:26 -07:00
spuligil
ef5af6add5 fw-api: CL 27232968 - update fw common interface files
Change-Id: I400a57754dbb5d88a17a26b5a7a780ecbbcf5a52
CRs-Fixed: 3830439
2024-07-30 05:24:20 -07:00
spuligil
e9157e2d09 fw-api: CL 27213127 - update fw common interface files
Change-Id: Ibcebfab00140fb343642d5f8c5d75af3782ee232
CRs-Fixed: 3830439
2024-07-30 05:24:16 -07:00
spuligil
be6329d2c6 fw-api: CL 27205261 - update fw common interface files
Change-Id: Ibf2704bf0766ac8b9875ea4373b21936cc2769d2
CRs-Fixed: 3830439
2024-07-30 05:24:12 -07:00
spuligil
722c5c2814 fw-api: CL 27193005 - update fw common interface files
Change-Id: I1bc83e1341b9ff1b2603b0c9bf1dd50068ec1d8e
CRs-Fixed: 3830439
2024-07-30 05:24:06 -07:00
spuligil
f244de36c7 fw-api: CL 27179058 - update fw common interface files
Change-Id: Ib9a87bf61aa03c24652f8a41afe26dbf019ecc52
CRs-Fixed: 3830439
2024-07-30 05:24:02 -07:00
Akash Gajjar
8ce353ea46 disp: sde: override fal10 veto for milos target
This patch overrides the fal10 veto for the milos target.

Change-Id: I82310b63ff89aa44c03b97e4e7b6e87ac5c4569a
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2024-07-30 15:49:18 +05:30
Zhenbin Tan
dd441e0e97 touch: raydium: Disable IRQ wake on offload entry
Disable IRQ wake, it should not wakeup system
during touch-offload.

Change-Id: I0d493faec4569a8a006f7ca375bf460bf207b389
Signed-off-by: Zhenbin Tan <quic_zhentan@quicinc.com>
2024-07-30 14:12:53 +08:00
mingzh
d064f9840e dsp-kernel: use memcpy() instead of strcpy()
Current code uses strcpy() to copy strings, which has a problem with potential buffer overflows if the source string is longer than the destination buffer. We can improve this by using memcpy() with a specified length, because it allows us to control the number of bytes copied and thus prevent buffer overflows.

Change-Id: I9dd5da343bfd63e4e031a66fa26b103e3da573e0
Signed-off-by: mingzh <quic_mingzh@quicinc.com>
2024-07-29 02:41:52 -07:00
Jayaprakash Madisetty
da0c9886e7 disp: msm: sde: update fudgefactor during mdp clock calculation
Add changes to include qseed inefficiency factor during mdp
core clock calculation. This calculated value is sent to
mmrm driver to set with reserve only flag.

Change-Id: If19356ba36e7f9155fdfeeadead9260d1c56dc6b
Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
2024-07-29 11:50:15 +05:30
Yash Upadhyay
edbbcb93c8 msm: camera: common: Stopping HW before stopping tasklet
Tasklet must be stopped after stopping HW. In current implementation
we are stopping same tasklet both in CSID and IFE/TFE stop call. This
change adds to stop both csid and ife/tfe HW first and then stopping
tasklet.

CRs-Fixed: 3855774
Change-Id: I93de831c45d2f61142db300140e36c17e0dd9b31
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2024-07-28 22:46:59 -07:00
QCTECMDR Service
2abf17e048 Merge "disp: msm: update seamless check for cwb + any modeset" 2024-07-27 11:45:03 -07:00
Ravindra Konda
096a377b13 Release 5.2.1.92N
Release 5.2.1.92N

Change-Id: I0b62ead38a14395ebf85df20b39fda6fed9b9115
CRs-Fixed: 774533
2024-07-26 04:31:31 -07:00
Ananya Gupta
ec6854defd qcacld-3.0: Set cdp_soc null in dp_ctx during detach
Currently, stale cdp_soc member in dp_ctx is being accessed
when interface is being added after wlan is detached during
idle shutdown.
To fix this, set cdp_soc NULL in dp_ctx when wlan is detaching.

Change-Id: I922f92cb7ba22bf84f39a44b6d78cd4b36bea058
CRs-Fixed: 3872183
2024-07-26 04:31:30 -07:00
cheese Service
789bc32bbd Merge "msm: camera: core: Add buffer length check to prevent overflow" into camera-kernel.lnx.7.0 2024-07-26 02:38:07 -07:00
cheese Service
47d88e467c Merge "msm: camera: ope: check cpu buffer offset and cmd buf idx" into camera-kernel.lnx.7.0 2024-07-26 02:37:47 -07:00
cheese Service
29bb30ec66 Merge "msm: camera: isp: Fix incorrect offset validation in __cam_isp_ctx_dump_event_record" into camera-kernel.lnx.7.0 2024-07-26 02:37:26 -07:00
cheese Service
4aef95eb42 Merge "msm: camera: icp: io buf config num validation" into camera-kernel.lnx.7.0 2024-07-26 02:37:06 -07:00
cheese Service
9242677094 Merge "msm: camera: icp: Add checking for invalid index" into camera-kernel.lnx.7.0 2024-07-26 02:36:47 -07:00
cheese Service
7e37e05f59 Merge "msm: camera: isp: Fix incorrect offset validation in __cam_isp_ctx_dump_in_top_state" into camera-kernel.lnx.7.0 2024-07-26 02:36:28 -07:00
cheese Service
179c50c49e Merge "msm: camera: jpeg: Avoid UAF in jpeg driver" into camera-kernel.lnx.7.0 2024-07-26 02:36:08 -07:00
cheese Service
e6a07b89d0 Merge "msm: camera: tfe: Add check for num_dev upper bound" into camera-kernel.lnx.7.0 2024-07-26 02:35:48 -07:00