Commit Graph

1217 Commits

Author SHA1 Message Date
QCTECMDR Service
97f0d1ab45 Merge "msm: ipa: Add debugfs nodes to install/remove xr wlan filters" 2024-08-22 16:04:02 -07:00
QCTECMDR Service
f9b1b2eeb0 Merge "msm: ipa3: Initiate filter reservation during filter addition" 2024-08-22 13:46:45 -07:00
QCTECMDR Service
efdc8bbc8e Merge "msm: ipa: Updating the con pipe TRE structure as per uc" 2024-08-20 09:05:15 -07:00
Prasad Arepalli
4aca461895 msm: ipa: Updating the con pipe TRE structure as per uc
Updating the consumer pipe TRE structure as per uc.

Also, saving the virtual addresses during  allocation of uc producer
transfer or event rings, and its consumer transfer rings separately
to free them in failure scenarios.

Change-Id: I928c97c8f65418628d1bc7c1662d9e6a03f9d610
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-08-13 16:50:28 +05:30
Chirag Rastogi
621ace510e msm: ipa: Remove warnings when rate limited
Removed WARN_ON from the IPA rate limit macro.

Change-Id: Ifceeb4360bfd0141c95fb1c41855f09a349153f0
Signed-off-by: Chirag Rastogi <quic_crastogi@quicinc.com>
2024-08-08 23:25:12 -07:00
Prasad Arepalli
90dd8e8685 msm: ipa: Add debugfs nodes to install/remove xr wlan filters
Enable ipa debugfs nodes to install/remove filters at wlan fw
from ipa driver and handle accordingly.

Change-Id: I856a1f8cbae38432fdbb865090747295c03bc691
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-08-08 14:00:18 +05:30
Prasad Arepalli
d1483b79d1 msm: ipa3: Initiate filter reservation during filter addition
Trigger filter reservation only when the first request to add
a filter with tuple info is received from C2 component.

Change-Id: I90f105bcb9bde83d510367c92aa30fe334f75a08
Signed-off-by: Prasad Arepalli <quic_parepall@quicinc.com>
2024-08-07 16:57:09 +05:30
Pavan Kumar M
74fb08d85c msm: ipa: Enable HOLB & drop stats for WAN default pipe
Enable HOLB discard and drop stats for Apps WAN default pipe
for all >= 5.2 IPA HW version targets.

Change-Id: I404c5a431ff058c19edd72b7694ecd54710cb33f
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-07-12 06:24:30 -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
QCTECMDR Service
562dff031d Merge "msm: ipa: Add additional cleanup in finish rt rule addition" 2024-06-21 00:08:26 -07:00
qctecmdr
2fdc7f508d Merge "msm: ipa3: Disable NAPI after entering interrupt mode" 2024-06-17 16:38:11 -07:00
qctecmdr
f3f5767b03 Merge "msm: ipa3: configure ipa smmu peripheral cb" 2024-06-10 02:20:22 -07:00
Jagadeesh Ponduru
cbe4b32408 msm: ipahal: correct hpc command hdr add tlv length
correcting hpc ucp command hdr add tlv length variable
to its desired value as it has two words after that hdr
addition tlv.

Change-Id: Ic66d6a516bf7410491dc0d78070d2dbfc021685b
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-06-09 15:09:04 +05:30
Jagadeesh Ponduru
4a3ef2d48b msm: ipa3: configure ipa smmu peripheral cb
configuring ipa smmu rtp peripheral cb for
bitstream and metadata buffer mappings.

Change-Id: I68fdababe3d152aea01b9ebdcc557bb5f2595a60
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-06-08 00:06:54 +05:30
Pavan Kumar M
b44e564fa1 msm: ipa3: Disable NAPI after entering interrupt mode
Handle all packets to enter interrupt mode before disabling and
deleting NAPI. This avoids waiting on unlisted NAPI to be scheduled
resulting in crashes.

Change-Id: Ic78763686187c252e15950c1aaafd8f69bf02f82
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
2024-06-06 04:48:18 -07:00
Avinash Kumar
5fdbbca94f msm: ipa: Add additional cleanup in finish rt rule addition
In case of rt rules overflow, clean up the rt entry in rt tables
list and free the rt entry memory.

Change-Id: I3e532d310acc5115e5c31c911544ac5db46106ed
Signed-off-by: Avinash Kumar <quic_avku@quicinc.com>
2024-06-03 21:47:00 -07:00
qctecmdr
c1c8bee7b3 Merge "msm: ipa3: Modify ER and TR sizes" 2024-05-31 06:52:22 -07:00
Jagadeesh Ponduru
2536b39004 msm: ipa3: add new mutex lock to update is_modem_up flag
Adding new mutex lock to update is_modem_up flag because
in Modem SSR scenarios if we use mutex variable "lock" it
is waiting for it to be released by other thread & partially
leading to SSR timeout. As we don't need to have a common
mutex variable "lock" for this, a new mutex can help in moving
further in clean up the pipes.

Change-Id: I8e6e4c0181f7765b334aefefd9616329503fdc2c
Signed-off-by: Pavan Kumar M <quic_rpavan@quicinc.com>
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2024-05-24 07:43:34 -07:00
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