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>
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>
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>
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>
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>
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>
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>
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>