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>
To avoid temporary stall on WLAN client enabling the HOLB on
WLAN2 consumer pipe.
Change-Id: I3920205f7f62dbdd240da162fab4158ab8e070b4
Signed-off-by: Jagadeeesh Ponduru <quic_jponduru@quicinc.com>
Removed routing_table_index_valid check. This is because
by setting this value to 0, we will inform q6 to apply q6
routing rules instead of AP routing rules
Change-Id: I8415e7812660f2d50fb95959a1111182841bb3e0
Workqueue was getting scheduled after teardwon the pipe.
Adding changes to flush to workqueue during teardown pipe.
Change-Id: I5a6b3464d76a9835bfbf7668e8dbb1cdf00c73fe
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
Add basic IPv4 and Ipv6 test cases for TTL update in HW
based on filtering and routing rules. Also, consists of
several minor fixes during bring up.
Change-Id: Ib363434b20ad2fc8cf29c78bb5db667959f2dbfd
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Add IOCTL support to configure route table index in case of
NAT suppression and Conntrack suppression being enabled.
Change-Id: Id2ba72c71e8c541ea54488078f30a9103c0d3eba
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
* Early stage target does not support every std library operations
* changed vector insert before begin to push_back to eliminate illegal
memory access
* Added virtual destructor PacketModifier
Change-Id: I34041e8b81547d474c050425beac8ae8a78a4799
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
Make changes to use __GFP_RETRY_MAYFAIL to avoid triggering
OOM Killer when allocating pages for temp allocations.
Change-Id: I2f5843c9a1c0a9f41e215c8241713f4670e4b35c
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Correcting the sequence to dynamically change the HOLB timer.
Change-Id: Iefcac36b93f3aee037628e3b0ec81aa5f5636caa
Acked-by: Suhas mallesh <smallesh@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Make changes to configure COAL_MASTER_CFG. Enable IPv4 ID
ignore bit by default. Give provision to configure via DT.
Change-Id: I17d4b368458417f4379d82bbfce754672b5f27aa
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Adding changes to enhance find free pages from list,
1. When free page not available instead of keep trying
using temporary pages.
2. In tasklet search for free pages adding to head.
Change-Id: I991336167519322081faf8f82feec4e3f0d7b161
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
Test pipe configuration correctness for IPA_5_5
Change-Id: I6f6b05cb45a830e35eb97138bbe0046884ac5367
Signed-off-by: Michael Adisumarta <quic_madisuma@codeaurora.org>
There are new IPA 5.5 hardware coalescing enhancements that relate to
WAN Coalescing. They are attended to herein.
Change-Id: I54f2655458d90d3b6111a970329b6b56016776f4
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Change the offsets for the collection of the packets
context so when crash occur the dump will have the proper
information in the packet context structures.
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
Add offset for flavor 9 ipahal register object as per HPG.
Change-Id: I37b92e5d4a573b3875ad00bcf02dd389e3a320e8
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Add support for IPA_5.5 in kernel tests.
Change-Id: I448936055c84d6e38f886becfba372627fb37147
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
During NAT table Initialization parameter pass from HLOS, if max/zero
table entries passed it was leading to out of bound read. Adding checks
to validate the table entries before passing to NAT table parameter.
Signed-off-by: Himansu Nayak <quic_himansu@quicinc.com>
Updated change to perform ipa pre initialization even before
attempting to load the ipa firmware along with pdev node
initialization for non smmu target.
Change-Id: I04421c1f11f0c7b4d7a0f30135741946b157aa2c
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
Add new enums for invalid pipe exception pkt and HDRI
exception. Handle the case where these exceptions
are received.
Change-Id: I920e4f1c121850c535c471f647fd5842ec25ba6e
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Print a failure if IPA tries to add a header with the same name
as a header that is already present in the header list and
return that original header.
Change-Id: I3e3b91da216b9a0c383c8653ea5cd2587804329f
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>