Graphe des révisions

1211 Révisions

Auteur SHA1 Message Date
Ashok Vuyyuru
03221c801d msm: ipa3: Adding changes to increase workqueue priority
In some scenarios WQ scheduling was delayed. To avoid these
issues adding changes to increase the WQ priority.

Change-Id: I597e73a354f2d136843b19a84c859fe3eb7b51e0
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-04-13 02:49:45 -07:00
Arjun Haris
3beb9e21ad msm: ipa: Enable ipa clock voting only when needed
Make changes to enable IPA clock only when it is required.

Change-Id: I1af79ea4f0015e8b7b9d43b18b73b58e66b12c5a
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-04-12 17:50:44 -07:00
Prasad Arepalli
78e2720e15 msm: ipa3: Update the Error log with rate limit
Rate limited the Error logging.

Change-Id: I5e7a5d0bcfac2430c680dd36fddb704d59f5f672
2023-04-12 12:28:45 +05:30
Ashok Vuyyuru
395fcbaab4 msm: ipa3: Changes to fix header offset usage in DDR case
When DDR header table was full not verifying any free offset entries
present in the list with current logic. So adding changes to use
free offset location in DDR when DDR header table was full.

Change-Id: If2d010db178e2388a83b5b63b47d3d05f2c3f7e2
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-04-11 21:56:00 -07:00
Arjun Haris
df85de1c8e msm: ipa: Update filter idx in indication when add/ remove fails
Changes to update filter index to failure indication, when wdi filter
add/remove fails from  ipa driver layer

Change-Id: I3b590594befe252913dde43fe408a4cd96b9249c
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-04-07 22:01:37 -07:00
Arjun Haris
d0b383b4f6 msm: ipa: Avoid sending remove all filter indication during SSR
Changes to not send remove all filter indication to Q6 when modem SSR
is trigerred

Change-Id: If1c86ce41b91f4df1eab592090fbbb7c4f12e535
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-04-07 21:56:00 -07:00
Veerendra Kumar Kamsali
e739dfa5ab msm: ipa3: adding check for holb stats
Adding null checks while getting the holb stats

Change-Id: Iba83cd86522679137f66fa1e7844884955fecf4d
Signed-off-by: Veerendra Kumar Kamsali <quic_veekum@quicinc.com>
2023-04-07 06:35:39 -07:00
Jagadeesh Ponduru
757a544d71 msm: ipa3: fix pointer arithmetic to avoid out-of-bound
When offset gets added to base of the array, it returns
offset plus the number equal to size of the whole array.
So, correct it by passing the address of offset element
in the array.

Change-Id: I8a087ca277bdc476674c7221b5fc0920e6986570
2023-04-06 11:05:52 -07:00
qctecmdr
10732b43aa Merge "dataipa: Fixed KW issues for lanai" 2023-04-05 13:44:42 -07:00
Raghavendar rao l
02c7482fd4 msm: ipa3: Update the Error log with rate limit
Rate limited the Error logging, while route addition failing.

Change-Id: I595cbdf5eebbf82371e20becab49d9a36553b62c
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2023-04-04 22:58:57 -07:00
Abhishek Raghuvanshi
1298e4a684 dataipa: Fixed KW issues for lanai
Added changes to fix kw issues

Change-Id: Ib83029c03569cea9e312d284f5b3f5daedc8dd1e
2023-04-03 15:04:43 -07:00
qctecmdr
648933315e Merge "msm: ipa3: Fix to use free offset list DDR header entries" 2023-03-28 22:15:52 -07:00
Jagadeesh Ponduru
7b40f47fb4 msm: ipa3: using strscpy to have a robust string copy
Adding change to use strscpy to have a robust way of string
copying into another buffer, if we have unknown source string
at run time to avoid fortify_panic.

Change-Id: I16a4fce06ef9bc47b4c6c3d901984e0a7c514d38
2023-03-27 18:38:02 -07:00
Arjun Haris
90d0c7c462 msm: ipa: Update wdi moderation threshold for WDI opt datapath scenario
Changes to update WDI moderation threshold for cases where WDI opt
datapath is enabled.

Change-Id: I917da8772febbd9e60dfcd66d5953401ce5fe78a
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-03-21 23:33:57 -07:00
Ashok Vuyyuru
9093aae4e5 msm: ipa3: Adding prefetch buff size for kalama target
Due to missing the prefetch buff size route and filter table will
overflow if IPA HW tries to prefetch 128Bytes of additional memory when
dealing with filter/routing tables. This can result in overflowing
of memory if we map only the required size. Make changes to
add the prefetch buff size for kalama target.

Change-Id: I045e14b25e397dc800a775f0d5cc02a889fc7c21
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-03-21 01:44:47 -07:00
Arjun Haris
569e9d4eb4 msm: ipa: Free memory when WLAN messages need to be ignored
Changes to free memory buffer before returning failure, when WLAN
connectivity related events are ignored due to opt WLAN datapath
enablement

Change-Id: Ie747386416e3a956b5bff88387217e10b351f5e0
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-03-16 10:00:05 -07:00
Arjun Haris
d754a2d2f3 msm: ipa: Enhanced WLAN datapath changes for IPA
Add changes to support optimized data path over wifi.

Change-Id: I1919ae5a252298d48a0461b0f7b299e6f7927019
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-03-13 11:42:58 -07:00
Arjun Haris
3ca1c81311 msm: ipa: Add Null checks in APIs in WDI driver
Added null check before accessing member variable in interface
APIs in WDI to avoid possible null pointer dereferencing

Change-Id: I862e4f137ce4a25357c20ff2ff26c761f7f3b156
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-03-09 15:03:58 +05:30
Ashok Vuyyuru
f94b13a3b9 msm: ipa3: Fix to use free offset list DDR header entries
When SRAM free header offset entries are not present it
was trying to allocate the new DDR header entry instead
of searching in DDR free header entry list, due to that
offset location in routing table was overflow and causing
invalid header offset location in the routing table

Change-Id: I5050050361e5fdf66da7f3ce9d8233f8ec892d3c
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-03-06 11:11:08 -08:00
Chaitanya Pratapa
bbcfd60056 msm: ipa: fix to list corruption
In cases where IPA driver is not probed, list for ipa ready cb's
is not initialized. When any client driver registers for
ipa readiness callback, it results into list corruption. Make
changes to initialize the list.

Change-Id: I922bd7bfccb175167ade907d42635d149eb11fca
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-03-03 21:01:10 -08:00
Abhishek Raghuvanshi
fcc42df6dd dataipa: Add logic to hold the clock until modem shutdown
Added a logic to hold the proxy vote for before shutdown and
then unvote when a after shutdown arrives

Change-Id: I14e8e663b0e3334b214de44348d1d16dd1891ae1
Signed-off-by: Abhishek Raghuvanshi <quic_araghuva@quicinc.com>
2023-03-02 15:24:49 -08:00
qctecmdr
477d381efe Merge "msm: ipa3: Adding null check before copying filter rules" 2023-02-23 20:47:47 -08:00
qctecmdr
d1b4487316 Merge "msm: ipa: enable lan coalescing based on config" 2023-02-23 18:46:52 -08:00
Veerendra Kumar Kamsali
e2bae2c014 msm: ipa3: Adding null check before copying filter rules
Adding null checks for copying filter rules for qmi_ctx.

Change-Id: Ic2c9ecf80c83435158bd3bde15b92fbef86f1628
Signed-off-by: Veerendra Kumar Kamsali <quic_veekum@quicinc.com>
2023-02-23 12:10:37 -08:00
Ashok Vuyyuru
69a0a201ec msm: ipa3: Changes to reduce the ipa hw stats structure size
Due to ipa hw stats structre size was high in lower value tier targets
1MB memory was getting allocated, it was impacting bootup allocations.
So making changes to reduce the ipa hw stats structure size.

Change-Id: I7d4863bf971a70ba736e78bbfadaa38b572bad74
2023-02-23 00:40:47 -08:00
Abhishek Raghuvanshi
217f295c23 dataipa: FR80474 Mem pool optimization
Added changes to optimize ipa

Change-Id: I83e71e6e6e9fe906d1c8e57c8e8bc16bb4a424bf
2023-02-22 13:54:07 -08:00
Veerendra Kumar Kamsali
213523bb85 msm: ipa: optimising the memory for qmi_context
removing the unused memory for qmi_context

Change-Id: Id32f0a657ce459920972fb465d9d2ed0a24a2368
Signed-off-by: Veerendra Kumar Kamsali <quic_veekum@quicinc.com>
2023-02-17 12:56:21 -08:00
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
Ashok Vuyyuru
56f963279d msm: ipa3: Fix to handle right error code
In deepsleep suspend scenario gsi hal driver will be cleaned up
and after that if we try to query the pending interrupt it will return
error, so driver shouldn't assert. Adding to changes to handle the
error scenario.

Change-Id: Ifdffa0496b41f70e00a67b6e724e48e029980449
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2023-02-07 21:40:48 -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