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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Free workqueue as well while tearing down the wan
coalescing consumenr pipe.
Change-Id: I72c6bf6552c2a5c36726b4d811e72ba2a3be3f4d
Signed-off-by: Avinash Kumar <quic_avku@quicinc.com>
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>
change to not configure packet status on WLAN EP for xr platform
Change-Id: Ieb64cde077aee0d47b2d1e374cacfcbdabf9eafa
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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)
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>
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>