Commit Graph

72443 Commits

Author SHA1 Message Date
Ramesh Nallagopu
c60ac212aa dsp-kernel: Fix to avoid untrusted pointer dereference
Currently, the compat ioctl call distinguishes itself using a global
flag. If a user sends a compat ioctl call followed by a normal ioctl
call, it may result in using a user passed address as a kernel address
in the fastrpcdriver. To address this issue, consider localizing the
compat flag for the ioctl call.

Change-Id: Ie8fc724424534102736b8c0bc594720547ab6ff6
Signed-off-by: rnallago <quic_rnallago@quicinc.com>
2024-07-03 20:16:16 +05:30
Abhishek Singh
e2cfdde491 dsp-kernel: Do not search the global map in the process-specific list
If a user makes the ioctl call for the fastrpc_internal_mmap with the
global map flag, fd, and va corresponding to some map already present
in the process-specific list, then this map present in the process-
specific list could be added to the global list. Because global maps
are also searched in the process-specific list. If a map gets removed
from the global list and another concurrent thread is using the same
map for a process-specific use case, it could lead to a use-after-free.
Avoid searching the global map in the process-specific list.

Change-Id: I59c820eb984945d39cd6e4b163307ea43ee4d2f4
Signed-off-by: Abhishek Singh <quic_abhishes@quicinc.com>
2024-07-03 05:50:24 -07:00
QCTECMDR Service
dfcbf74486 Merge "disp: msm: sde: flush reg dma during encoder disable" 2024-07-03 05:18:09 -07:00
QCTECMDR Service
005162e33c Merge "disp: msm: sde: print sgl entries in case of mismatch detected" 2024-07-03 05:18:09 -07:00
Ravindra Konda
13dc4ebff1 Release 5.2.1.91Z
Release 5.2.1.91Z

Change-Id: Id7504aebb03ab80b1e4bc8bce803b9897e5bda57
CRs-Fixed: 774533
2024-07-03 05:01:51 -07:00
Vinod Kumar Pirla
befb72ff0c qcacld-3.0: Notify OSIF on assoc vdev connect active
Post link switch the order of VDEV to link info in OSIF
changes and for the next connection, need to restore the
order. This restore currently happens when there is set
MAC address update before every connect, but however if
set MAC address is not received then the unrestored order
of VDEV will be used during connect which can be undesirable
in certain cases.

To avoid going ahead with connection with unrestored VDEV
mapping, make sure this is reset to proper order via
notifying HDD once assoc VDEV connect request becomes active.

Change-Id: Id3ba542820f7c2bc9c721a49735738df00b6e5d5
CRs-Fixed: 3827913
2024-07-03 05:01:50 -07:00
Alok Chauhan
14e77a674a msm: camera: isp: Update CSID halt sequence
Added below change as per discussion with HW team:
1. Disable/enable CG for all the path before/after halting paths
2. Enable PPP CSID path before IPP path during start.

CRs-Fixed: 3835814
Change-Id: I6716c789840292d8ea17cd788dd5e3f28ec0e715
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2024-07-03 17:28:23 +05:30
Kamal Agrawal
fd939ab8ad kgsl: gen8: Remove SP_DBG_CNTL register programming
Remove SP_DBG_CNTL register programming from gen8 as
per latest recommendation.

Change-Id: I8a0892589608d570d6757146abc7fdbf3b68a929
Signed-off-by: Kamal Agrawal <quic_kamaagra@quicinc.com>
2024-07-03 17:11:01 +05:30
Haochen Yang
37c2bd7cb9 msm: camera: jpeg: Fix potential OOB access
This change fixes a potential OOB access issue due to
culprit checking.

CRs-Fixed: 3851339
Change-Id: I5a8b8977f815376eeb41a4a227df6e307c7bd99d
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
2024-07-03 04:11:10 -07:00
Vinod Kumar Pirla
eb34a521c0 qcacmn: Handle MLO peer attach failures on connect or roam
If MLO peer attach fails for MLO VDEV, handle the failure and
remove the object manager peer and continue for next candidate
incase of initial connection.

Change-Id: Iba374f9b930db07bde84cea1cb18d36a0960c5b7
CRs-Fixed: 3844761
2024-07-03 03:52:33 -07:00
Ravindra Konda
43e6313b91 Release 5.2.1.91Y
Release 5.2.1.91Y

Change-Id: I83650830edf642fd5508da2376b0369825ee5fc5
CRs-Fixed: 774533
2024-07-03 03:50:02 -07:00
Vinod Kumar Pirla
ab3ca03ac2 qcacld-3.0: Send roam abort on peer create failure
Sending deauth on one of the links in MLO connection will result
in removing anchor link in FW and driver shall silently remove the
next link without initiating another deauth. For this reason the
status of MLO peer is set to DISCONN_INITIATED on sending first
deauth frame so that subsequent links do not send again.

The MLO peer context holds the list of all object manager peers for
that MLD connection and failure to add to the context shall result
in termination of connection. Currently the failures are not handled
and the object manager peer is not having any MLO peer context and
this results in sending deauth frame on both the links.

Handle the error of peer create and MLO peer attach on roaming
to abort the roam sync.

Change-Id: I4d5a766b673b36edb44d19065237aa35ff7d5f1d
CRs-Fixed: 3837890
2024-07-03 03:50:01 -07:00
Vinod Kumar Pirla
5df227d97f qcacld-3.0: Remove redundant MLO peer attach for STA
Remove the redundant MLO peer attach for STA for peer
create success handling.

Change-Id: Icfbded030dcc2c20ed6980878bdd43aeecca4d2e
CRs-Fixed: 3844703
2024-07-03 03:49:56 -07:00
Srihitha Tangudu
5c4f488f8a disp: msm: dsi: flush CMD DMA of all ctrls in case of previous broadcast
We currently wait for the completion of previous ASYNC command
transfers on a controller before initiating a new command transfer
on that controller. However, in the case of split DSI usage, the
controllers can encounter issues if a unicast command transfer
occurs before the previous broadcast is complete on both controller.

To prevent this issue, it’s required to flush the CMD DMA of both
controllers before initiating the unicast command transfer following
a previous broadcast.

Change-Id: If2830bea81e32ab26d3b91754bcdf047c3cba483
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2024-07-03 15:20:12 +05:30
Aditya Kodukula
319d20734f qcacmn: Add support for size 0 flexible length arrays
Convert size 0 variable length arrays to flexible
length arrays.

Change-Id: I679a5183a4ec0bebe51396694d2ae33afecfe80f
CRs-Fixed: 3690242
2024-07-02 23:02:54 -07:00
Jagadeesh Ponduru
3a2c76c725 msm: ipa3: enable synx-api changes to signal fence
enable synx init, import and release api calls on the
fence fd received from IPA C2 and pass synx object handle
to uC. Also it includes fixes related to validation params
and data handling.

Change-Id: Ifa43dfdb9f2b0069e7ccb276e1c44ec2ce0e8c4f
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-07-03 10:57:37 +05:30
Amit Mehta
53ef6cc7ce qcacmn: Change size 1 scatter_list array to flexible length array
Change size 1 scatter_list variable length arrays to flexible
length arrays.

CRs-Fixed: 3695133
Change-Id: I448add39987b0318c2b7d2d0553c857fb551c930
2024-07-02 09:52:37 -07:00
Ravindra Konda
8f035595e8 Release 5.2.1.91X
Release 5.2.1.91X

Change-Id: Ie5e586a1105b6b04f10dc2aec2b1fc0e6fc1cb5a
CRs-Fixed: 774533
2024-07-02 09:51:15 -07:00
Yu Wang
0e2028eb61 qcacld-3.0: fix compilation failures caused by type mismatch
Fix compilation failures caused by type mismatch
between format and argument.
Fix some kernel-doc errors.

Change-Id: Id55c19eff1dd62102feffac1785b5fe825555fde
CRs-Fixed: 3805434
2024-07-02 09:51:14 -07:00
Aditya Kodukula
2b03e92990 qcacmn: Add support for flexible length arrays
Convert size 0 and size 1 length variable arrays to
flexible length arrays.

Change-Id: Iafe5fd8cd1c3cf6bbff49054d815ef74a10814c6
CRs-Fixed: 3690248
2024-07-02 08:36:43 -07:00
Srinivas Girigowda
d303c5209c qcacmn: Fix compilation error observed with LTS 6.6.17
Below errors are observed with LTS 6.6.17:

htc_recv.c:49:4: error: 'snprintf' will always be truncated; specified \
size is 2, but format string expands to at least 5
[-Werror,-Wfortify-source].

htc_recv.c:58:3: error: 'snprintf' will always be truncated; specified \
size is 2, but format string expands to at least 5
[-Werror,-Wfortify-source].

Here, the compilation error is because the 2nd argument to snprintf is
using sizeof(byteOffset) which evaluates to 2 and the size of the buffer
we are writing to is 10 and when the format string content expands to
atleast 5 characters, only 2 characters are written to the output string.

Fix is to use size of the buffer we are writing to as the
snprintf 2nd argument.

CRs-Fixed: 3763920
Change-Id: I156260d26df643cd68b2e5d7fb7bf5d95f8026b2
2024-07-02 08:36:36 -07:00
Ravindra Konda
639ed409fb Release 5.2.1.91W
Release 5.2.1.91W

Change-Id: I9bebdde62d53d61c51ae73f3770e8e87b47c85ba
CRs-Fixed: 774533
2024-07-02 08:35:06 -07:00
Aditya Kodukula
35d87fa945 qcacld-3.0: Add support for size 0 flexible length arrays
Convert size 0 variable length arrays to flexible length arrays.

Change-Id: I299800e11f65389d3cf3e616aeac5bcbb1a024e6
CRs-Fixed: 3690218
2024-07-02 08:35:06 -07:00
Alok Chauhan
7462047366 Revert "Revert "msm: camera: isp: Fixing CSID halt sequence""
This reverts commit 508aeed13f.

CRs-Fixed: 3835814
Change-Id: I1b55ffbe50ba370e515ec29582bc78d33b0f6cfb
Signed-off-by: Alok Chauhan <quic_alokc@quicinc.com>
2024-07-02 15:56:18 +05:30
Ravindra Konda
e4417d0eba Release 5.2.1.91V
Release 5.2.1.91V

Change-Id: Id2cb461eebdf3dda47b737d0f2ccd670e1cdcbdb
CRs-Fixed: 774533
2024-07-02 03:12:01 -07:00
Prasanna JS
21f5356aa0 qcacld-3.0: Fix interface link layer stats for SAP/GO
Fix interface link layer stats by extending below functions
to handle SAP/Go case.

wlan_hdd_get_mlo_links_count
wlan_hdd_get_connected_link_info

Change-Id: If34898f3d572159828a0114339eda7d23790e39b
CRs-Fixed: 3819751
2024-07-02 03:12:00 -07:00
QCTECMDR Service
8ce9e7c896 Merge "kgsl: Reseed GPU CX timer after suspend resume" 2024-07-02 02:53:43 -07:00
Vinod Kumar Pirla
b34016828e qcacmn: Introduce APIs to notify OSIF on assoc VDEV connect
Add APIs and callbacks to OSIF from CNX manager to notify
on assoc VDEV connect request becomes active in serialization.

Change-Id: Ica59c25199e0f09fc86b7311ae16d22f66af3b0c
CRs-Fixed: 3835003
2024-07-02 01:19:41 -07:00
Ravindra Konda
738f75922c Release 5.2.1.91U
Release 5.2.1.91U

Change-Id: I3e3330b8c4c459d7d6c8f41d407a1d8720fae208
CRs-Fixed: 774533
2024-07-01 23:27:31 -07:00
Jianmin Zhu
894c8b5e07 qcacld-3.0: Fix roam failure for no scan entry
After increased wmi len, bcn frames go to roam sync event instead of roam
sync frame event, add scan entry logic of roam sync frame event handler is
missed in roam sync event handler, if old scan entry for roamed bssid aged
out, roam sync fails for no scan entry found.

To fix it, add scan entry logic in roam sync event handler too.

Change-Id: Ifb2d3323256b42a094a2871279353273275fbddf
CRs-Fixed: 3848978
2024-07-01 23:27:30 -07:00
Sharath Chandra Vurukala
77a6dfc4b3 rmnet_shs: update to Iaaf57415789ac6a8a4f24253b22a5f45455f1288
Update to Iaaf57415789ac6a8a4f24253b22a5f45455f1288

Change-Id: Iaaf57415789ac6a8a4f24253b22a5f45455f1288
Signed-off-by: Sharath Chandra Vurukala <quic_sharathv@quicinc.com>
2024-07-02 11:15:26 +05:30
Divyanshu Varma
329603cd72 video-driver: Made changes as per encoder configuration review
- Changed to REFRESH_PERIOD_TYPE_RANDOM in IR_TYPE, ENC, H264 | HEVC
- Changed values of B_FRAME, ENC, H264 | HEVC
- Added inst->capabilities[SLICE_MODE]

Change-Id: I8e9a02fff96433087b859cd098078f6eba75d42f
2024-07-02 11:11:16 +05:30
Yu Wang
cb5ce9c334 icnss2: return '-EAGAIN' when wlan driver load request comes too early
Sometimes wlan driver loading comes very early, icnss2
driver is not ready at that point and returns '-ENODEV',
which results in wlan failure.

To fix it, icnss2 returns '-EAGAIN' in such case to
trigger the retry mechanism in wlan driver.

Change-Id: Ia9f955622d052842ecd1fe1a752fd20d1e98804c
CRs-Fixed: 3851180
2024-07-01 12:30:17 -07:00
Yu Wang
4365c23bf2 icnss2: refine processing for restart level notification
It's possible that the 'rproc name' doesn't contain
'wpss' when 'rproc_restart_level_notifier()' gets called,
there are two issues in such case:

1. The fixed length 'ICNSS_RPROC_LEN(100)' for strnstr()
is too long for some cases, which may leads to
'slab-out-of-bounds' issue in strnstr().

To fix it, pass strlen of the rproc name instead.

2. It returns without freeing memory for the event data
and results in memory leak.

To fix it, allocate memory for the event only when
the notification is for 'wpss'.

Change-Id: Icf48f2f9cb8b8fcb4b766971169dd6dbeba9839d
CRs-Fixed: 3848536
2024-07-01 12:30:15 -07:00
QCTECMDR Service
09a307c6b7 Merge "asoc: codec: wcd9378: remove cls-h port enablement for Aux" 2024-07-01 09:19:34 -07:00
QCTECMDR Service
0686d70078 Merge "asoc: Add virtual node for RXTX RX1" 2024-07-01 09:19:34 -07:00
QCTECMDR Service
d1a1cd8eac Merge "ipc: gpr: svcs_lock is used in both interrupt and normal context" 2024-07-01 09:19:34 -07:00
Ravindra Konda
cd840eb86d Release 5.2.1.91T
Release 5.2.1.91T

Change-Id: I97de302464aa12ccb90724e865483e7061e62c55
CRs-Fixed: 774533
2024-07-01 05:45:59 -07:00
Vinod Kumar Pirla
a03370fb39 qcacld-3.0: Avoid concurrency check if new link is dyn inact
Policy manager restricts three active home channels on same MAC and
if any two links of ML-STA falls under same MAC, then policy manager
sends force inactive num set to one which link bitmap of those two
links. FW will ensure to not make both the links active at the same.

In such cases when another VDEV comes up via concurrency on the same
MAC but with different frequency then, it will result in two active
VDEVs on same MAC. Now if FW decides to exchange the ML-STA links
which are sent in force inactive num via vdev repurpose, then
policy manager rejects this request and it see the upcoming link
will be in MCC with existing two frequencies (one from ML-STA and
another from concurrency) while actually the ML-STA link will
eventually becomes standby if vdev repupose is allowed.

For this reason, skip checking allow concurrency if the target
link in VDEV repurpose is part of dynamic inactive bitmap.

Change-Id: Ia7b1f798925c3ae02aceba68584dc02e44f2a514
CRs-Fixed: 3840955
2024-07-01 05:45:58 -07:00
Jianmin Zhu
5c4f3ad9cc qcacld-3.0: Fix roam sync event len check failed issue
F/W increased WMI event max length per CE2 config to satisfy increasing
mlo frame length in roam sync event, host checked frame len with old max
length wrongly, so roam sync failed.
To fix it, remove unnecessary frame len with old max length as
roam_sync_frame handler, frame len is checked with tlv len already.

CRs-Fixed: 3844499
Change-Id: I75394ffa6704b4556701ed060e4345a56906dc1b
2024-07-01 05:45:53 -07:00
Yuhui Zhao
4b12aed7a0 asoc: wcd9378: disable swr slave path when any usecase stop
As of now swr slave path disable only
when no usecase running, that is incorrect.
When stop the usecase itself disable the swr slave path and
set the clk for inactive bank.

Change-Id: I35bc693dc65028ba8ad04f59d47a1101c7bb470c
Signed-off-by: Yuhui Zhao <quic_yuhuzhao@quicinc.com>
2024-07-01 16:39:29 +08:00
QCTECMDR Service
92ebed2b71 Merge "disp: msm: Check for hdr properties of connected receiver" 2024-06-30 21:28:17 -07:00
Akash Gajjar
a1f1fcfb67 disp: msm: sde: print sgl entries in case of mismatch detected
Print sgl entries to aid debugging if sgl validation fails
due to mismatch of assigned and expected resources entry.

Change-Id: I63c7ad3a716d3fa37c886f29fa0ac7af6f960aaf
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2024-06-30 19:50:35 +05:30
Ravindra Konda
d46d7b8335 Release 5.2.1.91S
Release 5.2.1.91S

Change-Id: Ifd8cf3fd323f0291a0c564360e74d3621564064a
CRs-Fixed: 774533
2024-06-28 04:34:38 -07:00
Amit Mehta
b661bb7ae7 qcacld-3.0: Handle concurrency scenarios in LPC mode
Currently if STA + LPC is running and new interface is brought up
in case of monitor_mode_concurrency ini enable case only LPC
is terminated. if monitor_mode_concurrency ini is disabled LPC
will not be terminated and LPC will continue to run in concurrency
scenario.

To fix the issue remove check for monitor_mode_concurrency and delete
LPC interface directly in concurrency scenarios.

CRs-Fixed: 3849400
Change-Id: Ie0d7f6f942b973e5fc7944430cf5aaa9b0bdf538
2024-06-28 04:34:37 -07:00
Yash Upadhyay
f747c30cfb msm: camera: req_mgr: Fixing condition to check num_links range
Current condition to verify that num_links lies in range, is always false.
This change adds fix to condition, while checking num_links range to avoid OOB acccess.

CRs-Fixed: 3830586
Change-Id: I6e69cd373c6d15d2133fc6a286b4dde23234a6b3
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2024-06-28 15:00:46 +05:30
Megha Byahatti
1ee56f827d video: driver: Recalculate VPSS line buffer macro
Recalculate VPSS line buffer macro to accommodate all
corner cases in VPSS operation.

HFI review done with ccb id 3508147.

Change-Id: If43ad34165a4206b6c9d19993dd4194f7ba597ea
Signed-off-by: Megha Byahatti <quic_mbyahatt@quicinc.com>
2024-06-28 14:20:25 +05:30
Minghao Xue
ddf3406a0c dsp-kernel: Unify error code when remote subsystem is not up
Currently, different error codes are returned if remote subsystem
is not up when client tries to open dynamic PD. Need to unify them
to -ECONNREFUSED.

Change-Id: Iee6925724a29a4ab265c50f68baa267150b4058d
Signed-off-by: Minghao Xue <quic_mingxue@quicinc.com>
2024-06-28 11:35:52 +08:00
Adesh Mohanrao Pathare
3b8457d528 btpower: Enable wakeup capable if gpio is defined
This enables wakeup capable if gpio is defined in dtsi.

Change-Id: Ie1c82b9321861e12226d4f903daa8bce1d0bc21a
Signed-off-by: Balakrishna Godavarthi <quic_bgodavar@quicinc.com>
Signed-off-by: Adesh Mohanrao Pathare <quic_adesmoha@quicinc.com>
2024-06-26 22:48:29 -07:00
Srikanth Marepalli
f2063f8aea qcacmn: Fix OOB access issues in HTC and HIF
Possible OOB Access array 'endpoint' of size '9' while calling
'log_packet_info' in below APIs:
get_htc_send_packets_credit_based()
get_htc_send_packets()

INT_MAX may be used to access array 'hif_ext_group->os_irq' of
size 16 in function hif_ipci_irq_set_affinity_hint().

Fix is to add index range check before accessing those arrays.

Change-Id: Iab40fe816d8dfcf1ffbf05987b11378ef0fe2572
CRs-Fixed: 3779968
2024-06-26 02:58:02 -07:00