* 2 packets threshold proved to perform best in terms of throughput
* Changing function name ntn -> ntn3 to stress the exact use case
Change-Id: I251cdff2612c568021e649deb7723708022f2495
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
Compile vendor DLKMs only if the system wide flag is true or
if the project specific override flag is set.
Change-Id: I744fce818c59d5072c0e085a41c9225fc317e711
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Modified log type in ipa_fltrt_generate_hw_rule_bdy_5_5 since it is
causing redundant logs
Change-Id: Ia759f17c8f475aa5fb6405880d2a3f224a650c84
Signed-off-by: Abhishek Raghuvanshi <quic_araghuva@quicinc.com>
Adding support to save ipa/gsi ipc logs in minidump.
Change-Id: Ic83b173140aae5c985a497f7333596c540b094ff
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
Created new ipc ipa_clk log for adding more debug prints
for IPA Clocks in which provides the explicit time taken
by IPA ICC Voting for BW Paths and IPA Enable/Disable Clocks.
Change-Id: I53b7b5baba0ff72df286c86a4b45b0f860014474
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
When GSI stop channel is failing, & retrying & IPA_HW < 4.0,
the return variable is being updated by the immediate other
function as well, there it results in updating & returning
a wrong value, finally leading to exit without removing endp_delay
on that pipe, results in without stopping the channel thereafter
so corrected it with adding a new variable.
Change-Id: If0ee3986ae40941ce4409d6fb5d74b37db9b7190
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
Initial version of minidump support in IPA driver.
Change-Id: I73e98fd647dd487dda90049f5b0c5609f558aa92
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
* In case extension header exists the rule is 2 bytes into the extra words
area
* Subtract extension header size to point to the next whole 8 byte word
right after the header
Change-Id: Ic6e4fc05ca8e03408530cc9815f4ce7455bd7c57
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
The change adds Traffic Shaping and Policing (TSP) feature
to the IPA driver:
* HAL addition for TSP tables translation to and from HW format
* Core TSP for table management
* IOCTL handlers for table management commands from userspace
* Debugfs addition that dumps the TSP configuration
The whole feature is added under CONFIG_IPA_TSP kbuild switch.
Change-Id: I11e444aeb93e10d6809873d02a8b3be7cc366755
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
Link loading showed a stack based buffer, used for printing
statistics, was too big. The sized has been reduced to be more stack
friendly.
Change-Id: Iab6f6d1d7e77c42855205641c20999c2633f3075
Signed-off-by: Perry Randise <quic_prandise@quicinc.com>
Updated change to avoid race condition and NULL pointer access,
In case of SSR and ioctl call while performing QMI transaction.
Change-Id: I09dbf33d76a3a0d9e4917e62aaf1257a1abe2db9
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
In apps resume scenario if start channel not saving IPA registers,
as ipa clock count was not updated. Adding changes to increment clock
count once clock enable success before reg save.
Change-Id: Ie179bfe648373dad0148c65a11f03945292911f5
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
In SSR scenario if QMI response delayed SSR events getting timeout,
To avoid this issue reduce the QMI timeout value from 60sec to 10sec.
Change-Id: Ib0113a91f9bd60b3ea0e374bf249d4859a22a040
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
When commit header table from memory to HW, adding fix to clean
dma allocation if it fails in multiple mapping attempts and also to
clean the allocated mapping of hdr table after commit to HW.
Change-Id: Icbf1b855e34625ffe8f8356a59cddf85a91b0160
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
There are new IPA 5.5 hardware coalescing additions that relate to LAN
Coalescing. They are attended to herein.
Change-Id: I5c1d8d85aceb48d0a159026fcc7c0d660026d8c6
Signed-off-by: Perry Randise <quic_prandise@quicinc.com>
There are new IPA 5.5 hardware coalescing enhancements that relate
to WAN Coalescing. They are attended to herein.
Change-Id: Ic54e60eec7dde791eae3c877036ebc8f17a39a5a
Signed-off-by: Perry Randise <prandise@codeaurora.org>
Order-3 allocations are costly when system is in full use.
Make changes to allocate page recycling buffers only once on boot up.
Change-Id: I445e27ecc03aaa00483e7a46a468ef0a6f4bfcfb
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Freepage workqueue created only for few pipes, while handling error
scenarios freeing it for all pipes. So adding check to free work queue
only if created.
Change-Id: I8bf097c02f6acd0a4a22b3d4bc5b66f46884fc1e
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
Added workaround change to handle ipa hw version change as
updating ipa hw version in dtsi and kernel cant be performed in
single build.
Change-Id: I78ff16cb7b677e412cf297224f570b4c1c347cbf
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
Currently during nop desc send, we are setting
nop pending flag to false before queing desc,
due to which we are not able to queue nop desc
again if it fails for first time. Now setting
nop pending flag to false only if we successfully
queued nop desc.
Change-Id: Ice0b3726f2ff0e81c0e5b041346e0ba06619ef62
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
The DMA address allocated may be in 64-bit address
range if dma mask is set to 64-bit, the MSB register
value is required.
Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
Change-Id: Ie091b01ac44e70d450a8d050855b5f3f0f510695
The pointer should be event ring pointer, not transfer
ring pointer, it has chance to get wrong upper 32 bits
when smmu is disabled.
Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
Change-Id: I8aa0d102d81fb2632ce988fcc8d816e7fed7b5b1
Count TTL HW updates and add to debugfs status and stats logging.
Change-Id: I72cf48a2aa6cc6fcee0c709d1366920b5430576f
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
Increase the hw_stats_quota_size from 72 to 96 bytes on targets
IPA_5_0 and above.
Change-id: Id407138e7b0f684a3bce5ba00059b368cee8156b
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>