提交線圖

1083 次程式碼提交

作者 SHA1 備註 日期
Arjun Haris
b1593efa01 msm: ipa: enable lan coalescing based on config
Changes to read lan coalenscing feature from config and enable the
feature only if config is present
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>

Change-Id: I939b05e9e7fd146b4649e9dd803e5da6fb58ce72
2023-02-16 23:53:40 -08:00
Jagadeesh Ponduru
7a401068d2 msm: ipa3: use netif device detach instead of stop queue
Adding change to use netif_device_detach instead of netif
_stop_queue to avoid the network stack to trigger a watch
dog timeout if queue is stopped.

Change-Id: Ie24dd0b1451d3dc201ebe5d773c7cb382984e2cc
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2023-02-14 08:04:05 -08:00
qctecmdr
2dc16b82ee Merge "dataipa: Fixed RNDIS teardown warning" 2023-02-10 06:44:40 -08:00
qctecmdr
7f64256ced Merge "msm: ipa3: Changes to fix memory leak issue" 2023-02-10 06:14:13 -08:00
Abhishek Raghuvanshi
110ac3d49e dataipa: Fixed RNDIS teardown warning
During RNDIS teardown, there are many warning stack prints taking
place. As a result, the composition switch timing is experiencing
a delay longer than the 3 seconds allocated by the userspace timer
when the composition request begins, causing a timeout with the
userspace.With this change we are now using kernel APIs.

Change-Id: Ibbf840fa1764cf3fa2497bd5a642b1aa6e7e1b44
2023-02-09 11:57:23 -08:00
Ashok Vuyyuru
413e7398bf msm: ipa3: Adding changes to reset next addr to domain end addr
In 2x Pine unload/load scenarios wdi map count never resetting to
zero, so next addr keep on increasing and crossing the geometry range.
So Adding changes to reset next addr to domain end addr.

Change-Id: I1d4762c1a907564001f4451eb9978ddbeea1d269
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-02-09 04:36:31 -08:00
Ashok Vuyyuru
e2b15b297b msm: ipa3: Changes to fix memory leak issue
During adding/deleting header rule found invalid entry not
freeing the header proc memory allocation due to that IPA
context bank page table was full, later it was failed
to map pages. To avoid this issue adding change to
free the memory in failed scenarios.

Change-Id: I8e5fd68d35579b4638e91590f5df876aa9d256a6
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-02-08 10:56:12 -08:00
qctecmdr
f611a1cb97 Merge "dataipa: avoid accessing NULL pointer" 2023-02-02 17:25:44 -08:00
qctecmdr
b17f4711fd Merge "dataipa: make raw notifier generic to multiple clients" 2023-01-31 16:44:23 -08:00
Michael Adisumarta
79759098f5 dataipa: avoid accessing NULL pointer
Fix accessing NULL pointer.

Change-Id: Ifef1b81a948e7d28336392ae286802da06574b15
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2023-01-31 14:35:04 -08:00
Michael Adisumarta
7ae7eaca59 dataipa: make raw notifier generic to multiple clients
Make buffer threshold raw notifier generic to multiple clients.

Change-Id: I99e7e57c0e9388b01c338cb5f6424481995b0924
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2023-01-30 13:49:31 -08:00
Michael Adisumarta
a1450dfda1 dataipa: renaming spearhead to TLPD
Changing the naming convention from spearhead to tlpd.

Change-Id: I13568df4a01848c212dd22f00298ca4a7b781bff
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2023-01-26 15:07:50 -08:00
Michael Adisumarta
910a63643e dataipa: Mutex lock the ipa_lnx_stats_ioctl
Mutex locking the ipa_lnx_stats ioctl.

Change-Id: Id1fe67cb5ad972dc501a0c1b5adb33b47d8dbaaa
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2023-01-17 12:51:08 -08:00
qctecmdr
be3f202f25 Merge "msm: ipa: change the way skbs are chained" 2023-01-09 08:22:25 -08:00
Chaitanya Pratapa
fc63e52542 msm: ipa: change the way skbs are chained
Make changes to chain the skbs using the next field to
avoid stack recursion when freeing the SKB.

Change-Id: Iaa956faf3f204696965387268ddb9091677c6256
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-01-08 23:05:35 -08:00
Jagadeesh Ponduru
0f2a39d50a msm: ipa3: enable HOLB & drop stats for WAN, WAN COAL in >= IPA_HW_5_5
Adding changes to enable HOLB discard for Apps WAN default and
WAN coalescing pipes for >= IPA_HW_5_5. Also, enable drop stats
by default for the above in LA only and >= IPA_HW_5.5

Change-Id: I34f8028c0bcee46caddb74b9574791fa862abc64
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2023-01-06 10:25:01 +05:30
Chaitanya Pratapa
e419512cfa msm: ipa: align to the new API signatures
Make changes to use the new API signatures per the latest
kernel upgrade.

Change-Id: I92bdb6aa7ecd4bf2bc343f7bbff871dd680198b7
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-12-20 13:47:58 -08:00
Michael Adisumarta
e47b3fc0dd msm: ipa: add debugfs hook to loop packet backs in IPA HW.
Add rule to flt and route packets from WAN_PROD to WAN_CONS.

Change-Id: Ic580a844a3d1693b3343b3181deafefd874eeb2e
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2022-11-18 13:36:47 -08:00
qctecmdr
a7f11b3f2c Merge "msm: ipa: enable ipa driver for pineapple" 2022-11-18 01:59:59 -08:00
Michael Adisumarta
483e70acdb dataipa: solve compile issues in IPA driver
Solve compile issues for the new branch.

Change-Id: Ic2f7cf29ee810b67c664b7c92cc62a8000412152
Signed-off-by: Michael Adisumarta <quic_madisuma@quicin.com>
2022-11-14 17:06:28 -08:00
Michael Adisumarta
2391721863 msm: ipa: enable ipa driver for pineapple
Make changes to enable IPA driver for pineapple. Fixed
compilation errors related to kernel upgrade.

Change-Id: Iecbe152fe0b6860616a9a63504d57b92a70ef72e
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-11-14 16:49:29 -08:00
qctecmdr
09585184fe Merge "msm: ipa3: Add change to retry memory allocation on failure" 2022-11-11 00:44:33 -08:00
Michael Adisumarta
240cdeee3b dataipa: Add correct APIs for compilation
Add correct API for getting ep mapping.

Change-Id: I8223dbe3a11b0e89f3d7eb9cfdfc658e259ed73a
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-11-10 16:25:49 -08:00
Jagadeesh Ponduru
f897d511a2 msm: ipa3: Add change to retry memory allocation on failure
Adding changes to retry with GFP_KENREL flag when memory allocation
fails with GFP_ATOMIC flag. Panic the device if after max retries
also memory allocation fails.

Change-Id: Ic9ad827757de92715be5acc5645b7e860b4bd0e4
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-11-09 17:18:34 -08:00
Ilia Lin
ac20aee303 ipanat: Add IPA UAPI library dependency
Change-Id: Idf27fbe95f01ec1a4d2d029d2ddca03643169802
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-11-09 09:41:58 +02:00
Ilia Lin
b37958da46 ipa: Remove IPA framework
1. Move the kernel and UAPI header files from the kernel project t the dataipa
2. Add python script which sanitizes and copies UAPI headers
3. Add kernel and UAPI header libraries export to Android makefiles
4. Refactor the driver code to use the internal headers
5. Refactor the driver code export symbols without the IPA framework
6. Merge ipa_clients and rndis modules into the main IPA module

Change-Id: Ie633f291aefe559ff2c39b26a5a9765371399edc
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-11-06 13:05:28 +02:00
Santosh Sai Krishna
ae5791c585 Fastforwarding dataipa CRT:data-kernel.lnx.2.0-221103 to data-kernel.lnx.3.0 branch 2022-11-04 11:45:50 +05:30
Michael Adisumarta
6dfbf84ead dataipa: making the ipanat and ipa-kernel-test module compatible
Making cflags of ipanat and ipa-kernel-test modules compatible with the
android variant.

Change-Id: I5509317638a85432c37b76675a5c8aeb5862ec15
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-11-02 21:14:06 -07:00
qctecmdr
26b2501fb9 Merge "msm: ipa: fix O-4 allocation for querying stats" 2022-11-01 04:18:46 -07:00
Chaitanya Pratapa
39b2787ee7 msm: ipa: fix O-4 allocation for querying stats
Use vmalloc for O-4 allocations to avoid failures.

Change-Id: Ia44050830c0fb59fcf2f8a9337bb8473aebcf81b
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-10-31 22:49:05 -07:00
Chaitanya Pratapa
e9affd4b3e msm: ipa: reduce gsi stop channel delay
Reduce GSI stop channel delay to reduce the time taken to
stop the channels in case there is a retry.

Change-Id: Id86c44239eafecf3dea10bcb13e10e2499421e4d
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-10-31 21:19:51 -07:00
Eliad Ben Yishay
ebe9383206 dataipa: network-traffic: typo fix
* Typo in variable name

Change-Id: I08c7d6b04972c148f200bedd6538b532645ce718
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-10-31 02:36:07 -07:00
qctecmdr
95fc4033ec Merge "msm: ipa3: Changes to add dual pass support for GSB pipe" 2022-10-28 02:38:43 -07:00
Ashok Vuyyuru
b956df481f msm: ipa3: Changes to add dual pass support for GSB pipe
Adding changes to support the dual pass support for GSB pipe.

Change-Id: I087f76e668a1ea6935c5edc49170244337edf472
2022-10-27 21:19:24 -07:00
Raghavendar rao l
8a624916bf msm: ipa3: Add support for hamilton chip for pinnacles
Addded change to enable support for hamilton chipset as part of
pinnacles.

Change-Id: Ie8f58c1b385780e778b80f7581c81e2f1a7b6b44
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2022-10-27 12:03:42 +05:30
Jagadeesh Ponduru
ffa07e273f msm: ipa3: configure HOLB for USB consumer pipe >= IPA_HW_v5_2
Disable IPA uC HOLB from parrot DTSI and enable HOLB from here.

Change-Id: I8231a8725d1e2097b5634ab79f076c83f9813acf
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-10-20 21:38:04 -07:00
Jagadeesh Ponduru
c684311030 msm: ipa3: Adding driver support for DTSI rx common page and temp pool sz factors
Adding Changes which support to make use of the RX CMN PAGE and TEMP POOL SZ
FACTOR based on DT entries made in target DTSI in addition to the current
support in which these entries being used from the IPA Driver itself.

Change-Id: I93a9820254ee9bb06e437afd0abea980605c043c
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-10-19 18:55:50 +05:30
Michael Adisumarta
dec6be012b dataipa: Rate limiting some IPA errors.
Rate limiting GSI and IPA errors.

Change-Id: I0b1dc675685e9f1ddefd3bdf928b22e4c130c2ca
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com
2022-10-13 11:56:17 -07:00
qctecmdr
2b0d8ee16d Merge "msm: ipa3: Adding changes to compile IPA driver for monaco target" 2022-10-12 10:16:28 -07:00
Arnav Sharma
ff1ca3fa02 Fastforwarding dataipa CRT:data-kernel.lnx.2.0-221001 to data-kernel.lnx.3.0 2022-10-10 12:10:27 -07:00
Ashok Vuyyuru
dfd671c26b msm: ipa3: Adding changes to compile IPA driver for monaco target
Adding changes to compile IPA driver for Monaco target.

Change-Id: Ibe8d4520d7200bd44ebe2eeb5d63a8d98ccfa4df
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-10-10 00:32:04 +05:30
qctecmdr
161db6c189 Merge "dataipa: Added logic to handle APPS_LAN_COAL_CONS packet w/o EOT" 2022-10-05 22:36:15 -07:00
Abhishek Raghuvanshi
3b24133784 dataipa: Fixed the mutex locks for ingress and egress
Fixed the logic for ingress and egress to release the mutex
lock in case of failure

Change-Id: Ic6675cb28f974af699cc8a7cd209e4731d95413b
2022-09-27 10:20:16 -07:00
qctecmdr
ef246c4b99 Merge "dataipa: changes to support page recycling stats" 2022-09-26 17:41:12 -07:00
Abhishek Raghuvanshi
3e8f443925 dataipa: Added logic to handle APPS_LAN_COAL_CONS packet w/o EOT
Modified the condition to handle IPA_CLIENT_APPS_LAN_COAL_CONS packets
without the EOT flag. By adding this condition we handled the condition
where coalescing is enabled and a fragment packet is being processed.

Change-Id: I0c6c5866c894da8eefb09d78278da3271b840c3d
2022-09-26 14:22:29 -07:00
Jagadeesh Ponduru
ae2dfd8dc9 msm: ipa3: fix compilation error in ipa_clients file
Adding changes to use ipa_fwmk ipa_is_vlan_mode API's
instead of ipa3_is_vlan_mode in ipa_clients to fix
compilation error.

Change-Id: Id5b4d713ef6b609d40935131148d501ed20eb855
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-09-26 22:37:53 +05:30
Michael Adisumarta
c30bafb927 dataipa: changes to support page recycling stats
Includes header file definitions and code changes for page recycling stats
on default, coalescing and low latency data pipes.

Change-Id: Iaf208c74da19cc46c88bb224c41182c8514da9b5
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-09-26 08:56:58 -07:00
Ilia Lin
da9204f690 ipa: Fix ioctl buffer allocation due to increased header size
The max header size changed from 64 to 255, which caused increase
in size of structs containing headers (struct ipa_hdr_add). Fixing the stack buffer
allocation size in the ioctl to avoid buffer overflow.

Note for the future: This function allocates number of buffers
on the stack, but uses only one on each call. It would be better
to refactor it, to use only one buffer, in order to minimize
stack allocations.

Change-Id: Id79efe7901ebf85dab4c0ba09cc7bb852cf22a97
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-09-21 15:57:01 -07:00
Eliad Ben Yishay
a19f2a5313 dataipa: fix compilation with IPA_ETH_API_VER 2, KBDEV
* Reduce stack usage in functions for KBDEV
* Adjust pre-processor directives to a kernel change

Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
Change-Id: I4e434c486c25496889199269d722c195094edb74
2022-09-19 23:36:05 -07:00
Veerendra Kumar Kamsali
d64b387fc1 msm: ipa3: Changes to Remove extraneous parenthesis
Adding changes to get rid of extraneous parenthesis
and a ifdef flag to not compile if it is not required
to avoid compilation failures or unused function errors.

Change-Id: I6f337ff63aad4f5e5a7201d4ba0d47898f237e09
2022-09-18 23:24:35 -07:00