Change to prevent accessing the variables by checking the default
mask with enabled log type mask.
Change-Id: Iab5bef96c4f8a12beeddab05ed27462fee656ad2
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
This reverts commit 642c915300.
Reason for revert: iommu_map_atomic symbol change from Kernel is reverted
Change-Id: I0f4948fae1bd8ab67bbdf44ed574730f2e7e1c96
From atomic context if try to map the address it causing sleep and
device assert. To avoid this use atomic map API.
Change-Id: I1c0c22d0f24cc0e827b6d401c9ffb3224a937821
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
Make changes to compile ut framework with bzl environment.
Change-Id: I91bf53701938241729698a5bc0c4f7586f35c171
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Rate limit the excessive ipa error logging in a test scenario.
Change-Id: I200d9b659895b0f68490acfad581c643964a3823
Signed-off-by: Srinivas Sai Mannam <quic_srinmann@quicinc.com>
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>
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
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
Make changes to enable frag offload on WLAN pipe.
Change-Id: Ie881180c991c683776f51f522d6e4e046043a663
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
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>
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>
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>
Make changes to enable IPA clock only when it is required.
Change-Id: I1af79ea4f0015e8b7b9d43b18b73b58e66b12c5a
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
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>
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>
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>
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
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
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>
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>
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>
Add changes to support optimized data path over wifi.
Change-Id: I1919ae5a252298d48a0461b0f7b299e6f7927019
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
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>
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>
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>
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>
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
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