Commit Graph

1099 次程式碼提交

作者 SHA1 備註 提交日期
Pavan Kumar M
0736e5599e msm: ipa3: End point configuration changes for IPA-V5.2
Added end point, resource config, GSI configuration and
SRAM entries for IPAv-5.2

Enabling IPA, GSI driver compilation as vendor DLKM
modules for pitti target.

Change-Id: Ib0ae6d6605f11a2b08c63782f8a11d8011d46bbe
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-01-18 13:47:03 +05:30
Pavan Kumar M
1c9e811cbf msm: ipa: Reset client handle default value
Reset client handle value to its default value (-1) in all scenarios
except for the generic failure cases.

Change-Id: I7ada229d4db123418ad9fdad75eb7f1619b7bf7e
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-01-11 11:14:31 +05:30
qctecmdr
7a7d7d81af Merge "msm: ipa: Fix to protect odl pipe operations" 2023-12-14 13:24:39 -08:00
Chaitanya Pratapa
5c191cf6e6 msm: ipa: Fix to protect odl pipe operations
There could be a race condition between Modem SSR and Diag daemon
releasing the ADPL node. Fix to do ensure proper locking
when cleaning up and setting up the ODL pipe during SSR.

Change-Id: I07f34076f739d91ef7ca2d7df3d09754a8e8475a
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-12-13 23:45:44 +05:30
Srinivas Sai Mannam
22e343587c msm: ipa: Trigger ipa_exit_callback
Trigger ipa_exit_callback on deep sleep mode entry
for USB to clean up and post quick boot, USB GSI
driver can wait for ready callback again from IPA.

Change-Id: Ic14aaff484a52de110e4f46ee6f90dbabd7fc616
Signed-off-by: Srinivas Sai Mannam <quic_srinmann@quicinc.com>
2023-12-05 09:45:46 +05:30
qctecmdr
0d984ecd5e Merge "ipa: set ipa_clk_vote while turning OFF ipa clocks" 2023-12-04 11:27:13 -08:00
qctecmdr
2bf4557940 Merge "msm: ipa3: Fix to handle right error code" 2023-12-03 22:43:32 -08:00
Abhishek Raghuvanshi
0929858503 ipa: set ipa_clk_vote while turning OFF ipa clocks
set ipa_clk_vote while disabling clocks

Change-Id: I5e8803f1dbecab3a18a774d730c43e23ae2613e2
Signed-off-by: Abhishek Raghuvanshi <quic_araghuva@quicinc.com>
2023-11-30 08:59:28 -08:00
Pavan Kumar M
7a128e9a46 msm: ipa3: Adding changes to use new deepsleep API
In latest kernel version old variable are depreciated so
adding changes to use new deepsleep API to check deepsleep state.

Change-Id: I135b2397b88234bec0a7f3d66b2f18f1520a2c71
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2023-11-22 14:16:49 +05:30
Pavan Kumar M
b43ef45788 msm: ipa3: supporting hibernate & cleanup unused deepsleep API's
Adding changes to listen for new PM driver events to support
hibernate feature. Also, in 5.15 kernel, deepsleep & hibernate
entry/exit SSR API's are becoming same as regular SSR usecases.
So, cleaning up the unused deepsleep API's accordingly.

Change-Id: Ie8d901f824b586bbb7a5e61a1cdc877cd14eb1d0
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2023-11-22 13:03:57 +05:30
qctecmdr
858a6ea5a8 Merge "Revert "msm: ipa3: disable monaco compilation temporarily"" 2023-11-15 14:50:35 -08:00
qctecmdr
9bd2a2f140 Merge "msm: ipa: Null terminated interface name string argument received from ioctl" 2023-11-14 22:06:18 -08:00
Pavan Kumar M
e5c94174ec Revert "msm: ipa3: disable monaco compilation temporarily"
This reverts commit 949ab07e78.

Change-Id: Ib3236d886d195d5093ed104bd922fb00c784ae40
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2023-11-10 03:52:22 -08:00
Chaitanya Pratapa
86661dd91e msm: ipa: ensure ipa clock is devoted
In case the work to disable the clock is failed, disable
the clock immediately to ensure ipa clock is devoted
properly.

Change-Id: I06e56774377472158dc5cfe0ecf33b202293d8ed
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-10-30 09:37:40 -07:00
Avinash Kumar
b639c459e4 msm: ipa: Null terminated interface name string argument
received from ioctl

WAN MTU IOCTL received NULL terminated the interface name
string to prevent out of bound memory access while printing
interface name.

Change-Id: I4ca8021e91689f2b1bf0bef7917a5fc7c2168aef
Signed-off-by: Avinash Kumar <quic_avku@quicinc.com>
2023-10-18 06:11:28 -07:00
qctecmdr
c22bf37a01 Merge "dataipa: enable IPA compilation as vendor dlkm modules" 2023-10-12 10:26:32 -07:00
qctecmdr
54ab5e2006 Merge "dataipa: modify hardcoded paths to variable based paths" 2023-10-12 09:50:33 -07:00
qctecmdr
67cb15e19c Merge "msm: ipa3: added a check to ignore WIGIG client in IPA 4_11" 2023-10-11 22:09:30 -07:00
Srinivas Sai Mannam
29e1822031 dataipa: enable IPA compilation as vendor dlkm modules
Updating cliffs according to HW version 5.5 for enabling IPA,
GSI driver compilation as vendor DLKM modules for cliffs.

Change-Id: I1d5104d56f7729a48d31ff2dc63a722ede8e80c7
Signed-off-by: Srinivas Sai Mannam <quic_srinmann@quicinc.com>
2023-10-11 21:57:55 -07:00
Jagadeesh Ponduru
3bfa9ad4f0 msm: ipa3: added a check to ignore WIGIG client in IPA 4_11
Adding change to ignore WIGIG client here as it is undefined
in this HW version and effecting subsequent tethering stats
collection here.

Change-Id: I8be73e8581e067db5b20ed77d3040acb1e56e357
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2023-10-11 22:54:34 +05:30
Avinash Kumar
2039c3d7ff msm: ipa3: Pointer Check for offset entry
Added check for offset pointer.

Change-Id: I914a0fe3de7933e1d9d4d1e10d74a7b7b490d031
Signed-off-by: Avinash Kumar <quic_avku@quicinc.com>
2023-10-09 10:45:43 -07:00
Pavan Kumar M
da047ee14c dataipa: modify hardcoded paths to variable based paths
Modifying hardcoded path usage to support multiple vendor
components in parallel for build compilations.

Change-Id: I3001dc60bf962885b1c0beed9b6c4f47b0ee2b4e
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2023-10-06 10:37:19 +05:30
Srinivas Sai Mannam
afcfbe5182 dataipa: enable IPA compilation as vendor dlkm modules
Enabling IPA, GSI driver compilation as vendor DLKM
modules for cliffs.

Change-Id: I5eaca4b3ed05a2d15bf8f44df1715c84f9c8f383
Signed-off-by: Srinivas Sai Mannam <quic_srinmann@quicinc.com>
2023-09-29 18:11:11 +05:30
Jagadeesh Ponduru
949ab07e78 msm: ipa3: disable monaco compilation temporarily
Disable IPA compilation for monaco as a temp change.

Change-Id: I872cf2d8bd6a0ae95ae18073c71d336528a11d97
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2023-09-22 23:05:42 +05:30
qctecmdr
41aa39ce67 Merge "msm: ipa3: Added check for enabled log type & default mask" 2023-09-21 20:26:52 -07:00
Jagadeesh Ponduru
6763e2bfc8 msm: ipa3: Added check for enabled log type & default mask
Change to prevent accessing the variables by checking the default
mask with enabled log type mask.

Change-Id: Iab5bef96c4f8a12beeddab05ed27462fee656ad2
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2023-09-19 11:06:21 +05:30
qctecmdr
cf8885a78e Merge "Revert "Revert "msm: ipa3: Use atomic map API to avoid sleep in atomic context""" 2023-09-17 22:04:54 -07:00
Chaitanya Pratapa
8102f09463 Revert "Revert "msm: ipa3: Use atomic map API to avoid sleep in atomic context""
This reverts commit 21d35c69a1.

Reason for revert: Corresponding symbol change is mainlined.

Change-Id: If42ea313baaee74334f7df1ab15973ca7abd2002
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-09-14 20:29:21 -07:00
qctecmdr
a7ad4b3efa Merge "msm: ipa: Resetting default client handle value" 2023-09-11 04:07:57 -07:00
Fakruddin Vohra
13a50b0a5a mdm: dataipa: increase the size of prefetch buffer
prefetch buffer is updated from 128 to 256 byte for route
and filter rule read.

Change-Id: Ibddddfda355e8032d6ec40da73394037534d1d78
Signed-off-by: Fakruddin Vohra <quic_fakruddi@quicinc.com>
2023-09-07 04:39:19 -07:00
qctecmdr
8ef89023fd Merge "ipa: Added a logic to check ipa3_qmi_ctx before accessing its pointer" 2023-09-06 16:18:31 -07:00
Avinash Kumar
91f9523942 msm: ipa: Resetting default client handle value
changes for setting default value of client handle in failure case

Change-Id: Icc6691d8d8a17b96ffc6541cf6137cae03b23946
Signed-off-by: Avinash Kumar <quic_avku@quicinc.com>
2023-09-04 04:51:35 -07:00
Abhishek Raghuvanshi
062880ada8 dataipa: Mem Optimization Phase 2
Incorporate rmnet api for data allocation for temp buffers

Change-Id: I1cd9c4430a176a6e3c7a4fa8c98c4160a2276e37
Signed-off-by: Abhishek Raghuvanshi <quic_araghuva@quicinc.com>
2023-09-01 11:45:53 -07:00
Abhishek Raghuvanshi
8c67d5680b ipa: Added a logic to check ipa3_qmi_ctx before accessing its pointer
Added input validation check before accessing ipa3_qmi_ctx

Change-Id: I6702a60da95c6de2b40a37b3b55c952ccf2a865a
Signed-off-by: Abhishek Raghuvanshi <quic_araghuva@quicinc.com>
2023-08-30 10:42:37 -07:00
Xhoendi Collaku
e8a5fda272 DATAIPA: Fix for dataipa dlkm errors
Adding a conditional check in Android.mk.

Change-Id: I473c8d971127b8e11d5dec0a7d715ef5868adc96
Signed-off-by: Xhoendi Collaku <quic_xcollaku@quicinc.com>
2023-08-28 15:51:18 -07:00
Chaitanya Pratapa
21d35c69a1 Revert "msm: ipa3: Use atomic map API to avoid sleep in atomic context"
This reverts commit 642c915300.

Reason for revert: iommu_map_atomic symbol change from Kernel is reverted

Change-Id: I0f4948fae1bd8ab67bbdf44ed574730f2e7e1c96
2023-08-22 22:17:52 -07:00
Ashok Vuyyuru
642c915300 msm: ipa3: Use atomic map API to avoid sleep in atomic context
From atomic context if try to map the address it causing sleep and
device assert. To avoid this use atomic map API.

Change-Id: I1c0c22d0f24cc0e827b6d401c9ffb3224a937821
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-08-14 12:56:26 -07:00
Chaitanya Pratapa
131309cd05 msm: ipa: Add support compile ut framework
Make changes to compile ut framework with bzl environment.

Change-Id: I91bf53701938241729698a5bc0c4f7586f35c171
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-07-12 14:29:16 -07:00
qctecmdr
df9df528ee Merge "msm: ipa3: Rate limited the IPA error logging" 2023-07-07 22:17:36 -07:00
Jagadeesh Ponduru
8b873d5564 dataipa: enable IPA compilation as vendor dlkm modules
Enabling IPA, GSI driver compilation as vendor DLKM
modules for blair and holi upgrade SP.

Change-Id: I148b8704bd2e28840b2593b8bf9a02d75145d7aa
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2023-07-06 20:35:49 +05:30
Srinivas Sai Mannam
2bccdf8791 msm: ipa3: Rate limited the IPA error logging
Rate limit the excessive ipa error logging in a test scenario.

Change-Id: I200d9b659895b0f68490acfad581c643964a3823
Signed-off-by: Srinivas Sai Mannam <quic_srinmann@quicinc.com>
2023-07-05 23:19:26 -07:00
Chaitanya Pratapa
7c9aad4ac3 dataipa: Bazel transition of IPA driver
Add changes to migrate to Bazel for IPA driver compilation.

Change-Id: If4da7ffcb24db3f2b3bfe67678b4a73a59f58ba5
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-07-04 09:44:26 -07:00
Arjun Haris
9c951fb403 msm: ipa: Remove opt dp callback info from wdi context
Changes to remove wdi callback info from wdi context
to avoid race condition.

Change-Id: Ia858e009975d8cc63a1b924f50de4713dbad7d97
Signed-off-by: Arjun Haris <quic_arjunh@quicinc.com>
2023-06-06 22:21:43 -07:00
Abhishek Raghuvanshi
cd183717f2 dataipa: Added logic to check only three WiGig clients for 5_5 hw and above
Added a logic to check only three WiGig clients while checking hw stats.
This is because fourth client is not available on 5_5 hardware.

Change-Id: I5200b9b75196e954fffd8acbc32c67fe191e4290
2023-06-05 11:37:12 -07:00
qctecmdr
b3a05e114e Merge "msm: ipa3: Rate limited the error logging" 2023-06-02 19:11:30 -07:00
Srinivas Sai Mannam
3ff5ac2b73 msm: ipa3: Rate limited the error logging
Rate limit the excessive ipa error logging in a test scenario.

Change-Id: Iaf660eea3e35b8d8fe91d5b3a2654b5877e31886
2023-06-01 14:49:07 +05:30
Avinash Kumar
7ebbfc4a86 msm: ipa3: add change to check log_type_mask defined or not
Adding a change to check whether log_type_mask is defined or
not to avoid allocating unknown memory size and to avoid out
of bound access.

Change-Id: I901863ee68f8c77424c4d4d3bb5f3a380a61dbee
2023-05-29 03:25:16 -07:00
Chaitanya Pratapa
a827313771 msm: ipa: enable frag offload on WLAN pipe
Make changes to enable frag offload on WLAN pipe.

Change-Id: Ie881180c991c683776f51f522d6e4e046043a663
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-05-18 14:15:13 +05:30
qctecmdr
abc55aa7fd Merge "msm: ipa3: adding check for holb stats" 2023-04-26 21:30:03 -07:00
qctecmdr
887c7da2a5 Merge "msm: ipa3: Update the Error log with rate limit" 2023-04-20 22:36:46 -07:00