Wykres commitów

1199 Commity

Autor SHA1 Wiadomość Data
Prasad Arepalli
11ec1ba19b msm: ipa3: Modify ER and TR sizes
Modify the event ring and transfer ring sizes as per the actual
no. of ring elements. This fix also adds additional debugging.

Change-Id: I1284e5e830563302dba7731f3d81016600eb633c
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-05-24 17:42:22 +05:30
qctecmdr
6bbe15d334 Merge "msm: ipa: Disable NAPI during pipe teardown" 2024-05-15 23:09:43 -07:00
qctecmdr
d10b2138f7 Merge "msm: ipa3: update SRAM and the right pipe mask for hw teth stats" 2024-05-14 00:29:43 -07:00
Pavan Kumar M
0601af6af0 msm: ipa3: update SRAM and the right pipe mask for hw teth stats
Make changes to update the sram partition for 5_2 and use right
pipe mask for tethering stats. As the dst_mask now points only
to producer pipes i.e bit 0 indicates the first producer pipe.
Add changes to right shift by 5_2 ver first producer pipe number.

Added additional check to ignore WIGIG client in IPA 5_2.

Change-Id: I24183aab801eedf716af27b89fd65d40747a13d7
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-05-11 22:32:55 -07:00
Pavan Kumar M
0d14e2c235 msm: ipa: Disable NAPI during pipe teardown
During SSR scenarios, disable and delete the NAPI immediately during
tear down so NAPI won’t be scheduled if there is an IRQ received on
consumer pipes.

Change-Id: I87c284b0be4d45241523a4c34f02c097bd9d7e56
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-05-10 10:40:21 +05:30
qctecmdr
fbe7aaf5d9 Merge "msm: ipa3: Clear workqueue while teardown wan coal cons" 2024-05-09 11:07:09 -07:00
Avinash Kumar
bd2af2dfdf msm: ipa3: Clear workqueue while teardown wan coal cons
Free workqueue as well while tearing down the wan
coalescing consumenr pipe.

Change-Id: I72c6bf6552c2a5c36726b4d811e72ba2a3be3f4d
Signed-off-by: Avinash Kumar <quic_avku@quicinc.com>
2024-05-09 10:25:52 +05:30
Jagadeesh Ponduru
94b277d162 msm: ipa: disable synx_init API calls and a minor fix
Disabling synx_init API calls in XR till they get enabled
by default and correct a minor return value check.

Change-Id: Ied80decbb973aa63f98c098e5a46805566a6850c
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-05-07 16:16:13 +05:30
qctecmdr
18adbf787d Merge "msm: ipa: disable packet status config and a minor fix" 2024-04-24 23:38:56 -07:00
Jagadeesh Ponduru
31923092c2 msm: ipa: disable packet status config and a minor fix
change to not configure packet status on WLAN EP for xr platform

Change-Id: Ieb64cde077aee0d47b2d1e374cacfcbdabf9eafa
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-04-24 17:52:31 +05:30
qctecmdr
883f45eb05 Merge "msm: ipa3: enable napi lan rx before the pipes setup only to avoid race condition" 2024-04-24 01:11:14 -07:00
qctecmdr
f65bacd04f Merge "dataipa: update uC request/response cmd opcode size and IPA EP's" 2024-04-19 06:52:54 -07:00
qctecmdr
54501afa79 Merge "msm: ipa3: update ipa smmu cb mappings based on EP configurations" 2024-04-18 21:20:53 -07:00
Prasad Arepalli
3a20b8394b dataipa: update uC request/response cmd opcode size and IPA EP's
1) Extend uC request/response opcode datatype from u8 to u16.
2) Update EP's according to IPA TZ EP's mapping.
3) Adding a missing checks for XR platform type.

Change-Id: I34064d594a5c7a38da23c74b3763eded608815c8
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-04-16 10:45:50 +05:30
Jagadeesh Ponduru
29779e667c msm: ipa3: update ipa smmu cb mappings based on EP configurations
Updating IPA SMMU context bank mappings when allocating transfer
and event rings of uC endpoints based on VMID configurations.

Change-Id: I1155165187e1a5be57a5799be6e9ea4b145ed1d0
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-04-15 20:13:42 +05:30
Veerendra Kumar Kamsali
e2feccee66 msm: ipa3: adding a check to see if ipa_q6_clnt is NULL
Adding a check to see if ipa_q6_clnt is NULL or not in a
rare race conditions to avoid NULL pointer access.

Change-Id: I9b4348f752a2220256c1e58cf6ac299b6c1e3e2f
Signed-off-by: Veerendra Kumar Kamsali <quic_veekum@quicinc.com>
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-04-12 11:18:58 +05:30
Jagadeesh Ponduru
65f57a5246 msm: ipa3: enable napi lan rx before the pipes setup only to avoid race condition
enable napi rx of lan pipe before the pipes are getting setup to avoid
a possible race condition of channel moving to a poll mode at the same
time so that it ensures the proper napi state.

Change-Id: I6c4643c612c73c8bc7bb1f0d52354a14d5592962
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-04-01 22:03:39 -07:00
Jagadeesh Ponduru
1f4753b99d dataipa: install hpc commands & tuple info based filters over WLAN
changes to install tuple info based filters over WLAN and route to
uCP path or uC temp pipes to receive rtp packets over WLAN in niobe.

Change-Id: Ie456fe8983bc0f43b767f762a046d96f6e25bc1b
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-03-12 09:20:23 +05:30
Prasad Arepalli
9ccb596820 dataipa: adding xr ipa-rtp depacketization interface commands
1) changes to establish xr ipa-rtp datapath and control path
   cmd's between IPA AP and IPA uC with input from IPA C2.
2) extend ipa-reg-save support to save all uC channel info used here.

Change-Id: I9b92ea76ad2d56e9d68aa9db043ce64bb4cca93a
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-03-08 21:55:45 -08:00
Prasad Arepalli
554231f83f dataipa: adding new xr wlan filter reserve/install API's
changes to enable xr-wdi-opt-dpath and handle wlan filter
reserve/install/remove API's and it cb's accordingly.

Change-Id: I1c11e15d3b2af89318bc29d6afebdf6797cdd039
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-03-08 21:55:34 -08:00
Jagadeesh Ponduru
90e8adec6c dataipa: Add ipa_rtp generic netlink interface support
changes to enable ipa-rtp generic netlink for xr use-case to
receive all the commands from IPA Codec2 component in setting
up the control path of IPA HW RTP de-packetization for niobe.

Change-Id: I498204f7cd37675f24e9db6a10fd5668416ef45b
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-03-08 21:54:24 -08:00
Jagadeesh Ponduru
024163aed6 dataipa: enable IPA/GSI driver compilation for niobe
Changes to enable modular compilation for niobe and
modify the dependency inclusions as needed.

Change-Id: I437e88c39ec0f423c8bd8d948c86ca1ad7a8e0b2
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-03-02 01:30:59 +05:30
Pavan Kumar M
81767124b0 ARM: msm: ipa3: Adding IPA module support for volcano
Enabling IPA, GSI driver compilation as vendor DLKM
modules for volcano target.

Change-Id: Ia3e0f36894f15498b571ee12b2c77e975bd34071
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-02-20 16:46:49 +05:30
qctecmdr
f89afb89a2 Merge "msm: ipa3: Increase IPA SRAM Q6 "hw_stats_quota_size"" 2024-02-16 02:04:48 -08:00
Jagadeesh Ponduru
94e00bca16 msm: ipa3: Increase IPA SRAM Q6 "hw_stats_quota_size"
Increase the hw_stats_quota_size from 72 to 96 bytes on targets
IPA_5_2.

Change-Id: I0870329ba626115d976d0fe2b96fe76213ebe8b8
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-02-15 21:01:54 -08:00
Jagadeesh Ponduru
d3ae39f2e0 msm: ipa3: do not send uc debug stats alloc cmd
Do not send uc debug stats alloc cmd for IPA_HW_5_2
due to uc memory constraints it is not supported.

Change-Id: Ibf7c7e2f11b2dfe4d27bc3aa98dbc0a5613ed01c
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
(cherry picked from commit 4df793d56c6e98e87563f0b007696a0b30ce8ab8)
2024-02-15 08:22:44 -08:00
qctecmdr
8c44380a21 Merge "msm: ipa3: Read rx cmn pool, temp pool factors" 2024-02-06 09:23:40 -08:00
qctecmdr
e4deb4b165 Merge "msm: ipa3: Adding changes to check pointer null or not" 2024-02-04 21:19:30 -08:00
Ashok Vuyyuru
899b2c58ea msm: ipa3: Adding changes to check pointer null or not
Adding changes to check page replish pointer null or not.

Signed-off-by: Sivakanth Vaka <quic_svaka@quicinc.com>
(cherry picked from commit 3099fdda59d009d3807eb4922d905d331d3447d7)

Change-Id: Ic6235569619ef634021f92abb668411220e0bf67
2024-02-02 11:26:57 +05:30
Pavan Kumar M
ad1e5a0858 msm: ipa3: Read rx cmn pool, temp pool factors
Read the RX CMN POOL, RX TEMP POOL factors as it is instead of
comparing it with the pre-defined values in driver.

Change-Id: Ifbcc0b79f2a5edc0eb82295865fb48e966487eaf
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-02-02 10:07:26 +05:30
qctecmdr
751cec7fec Merge "dataipa: Adding IPA module support for pitti" 2024-01-22 01:16:04 -08:00
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
Sivakanth Vaka
48dece3898 dataipa: Adding IPA module support for pitti
Enabling IPA, GSI driver compilation as vendor DLKM
modules for pitti target.

Signed-off-by: Sivakanth Vaka <quic_svaka@quicinc.com>
2024-01-17 22:19:35 +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