Revīziju grafs

1224 Revīzijas

Autors SHA1 Ziņojums Datums
Chaitanya Pratapa
7c9aad4ac3 dataipa: Bazel transition of IPA driver
Add changes to migrate to Bazel for IPA driver compilation.

Change-Id: If4da7ffcb24db3f2b3bfe67678b4a73a59f58ba5
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-07-04 09:44:26 -07:00
Arjun Haris
9c951fb403 msm: ipa: Remove opt dp callback info from wdi context
Changes to remove wdi callback info from wdi context
to avoid race condition.

Change-Id: Ia858e009975d8cc63a1b924f50de4713dbad7d97
Signed-off-by: Arjun Haris <quic_arjunh@quicinc.com>
2023-06-06 22:21:43 -07:00
Abhishek Raghuvanshi
cd183717f2 dataipa: Added logic to check only three WiGig clients for 5_5 hw and above
Added a logic to check only three WiGig clients while checking hw stats.
This is because fourth client is not available on 5_5 hardware.

Change-Id: I5200b9b75196e954fffd8acbc32c67fe191e4290
2023-06-05 11:37:12 -07:00
qctecmdr
b3a05e114e Merge "msm: ipa3: Rate limited the error logging" 2023-06-02 19:11:30 -07:00
Srinivas Sai Mannam
3ff5ac2b73 msm: ipa3: Rate limited the error logging
Rate limit the excessive ipa error logging in a test scenario.

Change-Id: Iaf660eea3e35b8d8fe91d5b3a2654b5877e31886
2023-06-01 14:49:07 +05:30
Avinash Kumar
7ebbfc4a86 msm: ipa3: add change to check log_type_mask defined or not
Adding a change to check whether log_type_mask is defined or
not to avoid allocating unknown memory size and to avoid out
of bound access.

Change-Id: I901863ee68f8c77424c4d4d3bb5f3a380a61dbee
2023-05-29 03:25:16 -07:00
Chaitanya Pratapa
a827313771 msm: ipa: enable frag offload on WLAN pipe
Make changes to enable frag offload on WLAN pipe.

Change-Id: Ie881180c991c683776f51f522d6e4e046043a663
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-05-18 14:15:13 +05:30
qctecmdr
abc55aa7fd Merge "msm: ipa3: adding check for holb stats" 2023-04-26 21:30:03 -07:00
qctecmdr
887c7da2a5 Merge "msm: ipa3: Update the Error log with rate limit" 2023-04-20 22:36:46 -07:00
Chaitanya Pratapa
e294f01cfe msm: ipa: make changes to avoid allocating userdata for WDI channels
WDI channels do not require userdata. Avoid allocating userdata for new
WDI protocols as otherwise allocations might fail due to large allocation
size resulting in pipe setup failure.

Change-Id: I7630a9c5b450937b264cdeb4b45ace70fd160be3
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-04-19 12:43:46 -07:00
qctecmdr
d6804f5960 Merge "msm: ipa: fix to tx stop channel" 2023-04-13 14:07:55 -07:00
qctecmdr
05c017c435 Merge "msm: ipa: Enable ipa clock voting only when needed" 2023-04-13 13:29:18 -07:00
Abhishek Raghuvanshi
46bc1041ae msm: ipa: fix to tx stop channel
When opt dpath is enabled, make changes to stop and start the
channel only when it is required.

Change-Id: I849ccbe969a6c965b18022f3c23e545902d551e2
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2023-04-13 22:12:01 +05:30
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