Grafik Komit

933 Melakukan

Penulis SHA1 Pesan Tanggal
Michael Adisumarta
49c10e18c6 msm: ipa: Add TTL update test cases
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>
2022-03-09 19:49:51 -08:00
Michael Adisumarta
ec06323b3c msm: ipa: Add support to set exception route table index
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>
2022-03-09 11:33:40 -08:00
Michael Adisumarta
a986957002 dataipa: ipa-kernel-tests: ulso test, network-traffic fix
* 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>
2022-03-07 16:39:53 -08:00
qctecmdr
40dd5065fd Merge "msm: ipa: Add NAT and IPv6 CT suppression tests" 2022-03-04 22:07:21 -08:00
Chaitanya Pratapa
a2fff96c69 msm: ipa: avoid OOM Killer for temp allocations
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>
2022-03-04 10:17:13 -08:00
qctecmdr
b58b42f808 Merge "dataipa: IPA_5_5 test pipes configuration correction" 2022-03-04 04:28:36 -08:00
qctecmdr
4054974b41 Merge "msm: ipa3: Following HPG sequence for HOLB enabling" 2022-03-04 02:58:37 -08:00
Michael Adisumarta
d7c12b1fc0 msm: ipa3: Following HPG sequence for HOLB enabling
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>
2022-03-03 20:17:31 -08:00
Michael Adisumarta
752cf6dbba dataipa: Add stringify for TTL exception pkt status.
Add missing stringify for TTL exception packet status.

Change-Id: I698c3dbe1c41b461fa26d5907d4b503138c2fbc6
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-03-03 12:51:40 -08:00
Chaitanya Pratapa
8b281fbc53 msm: ipa: Add support to configure COAL_MASTER_CFG
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>
2022-03-02 10:35:02 -08:00
Ashok Vuyyuru
e3b4e1d460 msm: ipa3: Changes to enhance find free pages from list
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>
2022-02-28 10:36:43 +05:30
Chaitanya Pratapa
1fb4520d43 msm: ipa: Add NAT and IPv6 CT suppression tests
Add kernel tests to validate NAT and IPv6 CT suppression
tests.

Change-Id: If69b651330846b92c85184c5afdeba73bafa1592
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-02-25 18:04:34 -08:00
Michael Adisumarta
d19fb3fe37 dataipa: IPA_5_5 test pipes configuration correction
Test pipe configuration correctness for IPA_5_5

Change-Id: I6f6b05cb45a830e35eb97138bbe0046884ac5367
Signed-off-by: Michael Adisumarta <quic_madisuma@codeaurora.org>
2022-02-25 16:32:54 -08:00
Michael Adisumarta
47c0ae3849 msm: ipa3: WAN Coalescing Feature Enhancement
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>
2022-02-17 16:33:40 -08:00
qctecmdr
3d6de4e3c3 Merge "ipa: Fix the collection of packets context on crash" 2022-02-13 06:28:50 -08:00
Dor Deri
d7a614c2a6 ipa: Fix the collection of packets context on crash
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>
2022-02-08 13:36:36 +02:00
Michael Adisumarta
2c539e5d76 dataipa: add proper offset for flavor_9 ipahal_reg object
Add offset for flavor 9 ipahal register object as per HPG.

Change-Id: I37b92e5d4a573b3875ad00bcf02dd389e3a320e8
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-02-07 23:00:07 -08:00
Chaitanya Pratapa
7ae30f4367 msm: ipa: IPA_5.5 kernel tests update
Add support for IPA_5.5 in kernel tests.

Change-Id: I448936055c84d6e38f886becfba372627fb37147
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2022-02-01 15:32:33 -08:00
qctecmdr
2f1d80c7b8 Merge "Fastforwarding dataipa CRT:data-kernel.lnx.1.2-220128 to data-kernel.lnx.2.0" 2022-02-01 09:48:27 -08:00
qctecmdr
abe5fec384 Merge "msm: ipa3: Fix to validate the NAT table entries during NAT table init" 2022-02-01 02:55:15 -08:00
Kasiviswanathan, Subash Abhinov
a8a418196b Fastforwarding dataipa CRT:data-kernel.lnx.1.2-220128 to data-kernel.lnx.2.0 2022-01-31 20:01:31 -07:00
Dor Deri
602f431d59 ipa: upgrade reg save to IPAv5.5
Add support for IPAv5.5 reg collection.

Change-Id: Id4c92d7120fff6e96e635c92369af7a3de0f2fc0
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2022-01-31 00:44:21 -08:00
Himansu Nayak
1840d3b8f5 msm: ipa3: Fix to validate the NAT table entries during NAT table init
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>
2022-01-30 18:49:39 -08:00
Dor Deri
82799ba033 ipa :Fix direction collection of NTN stats
PROD client - rx direction,
CONS client - tx direction.

Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2022-01-26 16:11:36 +02:00
qctecmdr
73f434ca21 Merge "msm: ipa3: Fix to avoid the boot up crash in non smmu targets" 2022-01-25 19:50:58 -08:00
qctecmdr
4e8750865d Merge "msm: ipa: Get device pointers if smmu is disabled" 2022-01-25 19:02:00 -08:00
Raghavendar rao l
e7b6c31d82 msm: ipa3: Fix to avoid the boot up crash in non smmu targets
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>
2022-01-26 00:37:23 +05:30
Cheng Zeng
ee204109cc msm: ipa: Get device pointers if smmu is disabled
If arm-smmu is not configured, smmu cb will not be
probed, still need to get pdev and uc_pdev.

Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
2022-01-25 10:52:22 -08:00
qctecmdr
0723b1936c Merge "msm: ipa: Break from loop when icc_path is error" 2022-01-25 10:03:37 -08:00
qctecmdr
fdf06d74f0 Merge "msm: ipa3: Prevent addition of duplicate headers" 2022-01-25 07:33:34 -08:00
qctecmdr
cbab2d5f32 Merge "msm: ipahal: Add 2 new exception cases for status pkt" 2022-01-25 05:56:11 -08:00
qctecmdr
d84081f0d0 Merge "msm: ipa3: add fix on ddr hdr tbl free-list" 2022-01-25 04:44:26 -08:00
qctecmdr
81152decfa Merge "msm: ipa: Set the logbuf to NULL after kfree" 2022-01-24 23:52:52 -08:00
qctecmdr
b1700337cf Merge "msm: ipa3: Add pm mapping for MHI low latency pipe" 2022-01-24 23:06:14 -08:00
qctecmdr
0c29e06313 Merge "msm: ipa3: Changes not allow ODL pipe setup during SSR" 2022-01-24 22:15:33 -08:00
Michael Adisumarta
deddb2eae3 msm: ipahal: Add 2 new exception cases for status pkt
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>
2022-01-24 16:26:26 -08:00
Michael Adisumarta
56b691cb52 msm: ipa3: Prevent addition of duplicate headers
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>
2022-01-24 14:49:23 -08:00
Skylar Chang
31cd6bfe77 msm: ipa3: add fix on ddr hdr tbl free-list
Add the fix to check the ddr hdr tbl free-list
first before allocating new entries.

Change-Id: I21882bcc6f06ae5fc4ae622e38d7910df59052bf
2022-01-24 13:33:08 -08:00
Michael Adisumarta
8fa6d8ce87 msm: ipa3: Add pm mapping for MHI low latency pipe
Fix pm_handle_suspend not being called for pipes 32-36.
Associate IPA_CLIENT_MHI_LOW_LAT_CONS with MHI pm client
so it will call the mhi_wakeup_cb for pm_handle_suspend.

Change-Id: I49413099c1cb4a1eb2992f1c50fde6b2afcbff2a
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-01-24 12:14:00 -08:00
Piyush Dhyani
3518342e1b Revert "msm: ipa3: Changes to support 2X PINE."
This reverts commit 8dc005f25f.

Change-Id: I7a3f0cbaaa0c0fbf04424a2524fd3c5c1ba80598
2022-01-24 15:40:14 +05:30
qctecmdr
f93505a954 Merge "dataipa: define variable at the start of the function" 2022-01-21 17:22:24 -08:00
Michael Adisumarta
aafa8c5443 dataipa: define variable at the start of the function
Define variable at the start of the function to follow
ISO C90 standards.

Change-Id: Ic8a0d46f0aaee122f7fdf70a5c248464a731adff
Signed-off-by: Michael Adisumarta <quic_madisuma@quicin.com>
2022-01-21 09:38:43 -08:00
Srikanth Vakiti
e76cf9658a msm: ipa3: Disable of ODL offload checksum
ODL endpipe offload checksum disabled

Change-Id: I889bdea3ff6287188292ca17aa3df9b579a4fa8e
Signed-off-by: Vakiti Srikanth <quic_vakiti@quicinc.com>
2022-01-21 08:46:01 -08:00
Ashok Vuyyuru
f5bbfeeebd msm: ipa3: Changes not allow ODL pipe setup during SSR
When SSR in progress not allowing to setup ODL pipe.

Change-Id: Ied44a7bafdf90cff2f3b7619da88fe3c31d18956
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-01-20 21:11:01 -08:00
qctecmdr
77fd3d2a64 Merge "msm: ipa3: Changes to support 2X PINE." 2022-01-20 04:51:27 -08:00
Cheng Zeng
41606154a3 msm: ipa: Break from loop when icc_path is error
If of_icc_get returns with error code, then invoking
icc_put in fail_bus_reg segment, warn_on() logs will be
printed, break from the loop to avoid invoking icc_put.

Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
2022-01-20 17:13:33 +08:00
Cheng Zeng
08bd5f130e msm: ipa: Set the logbuf to NULL after kfree
Set the ipa3_ctx->logbuf to NULL after freeing it,
IPA logging API will use the ipa3_ctx->logbuf after
freeing it, that can make crash.

Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
2022-01-19 17:55:48 +08:00
qctecmdr
d8a39fc6ca Merge "ipa: Fix system header adding size check" 2022-01-13 03:57:51 -08:00
qctecmdr
a42d0c6c84 Merge "msm: ipa3: Fix to handle ipa firmware loading in case of XBL boot" 2022-01-13 00:10:15 -08:00
qctecmdr
aad7f64adc Merge "msm: ipa3: Disable of ODL offload checksum" 2022-01-12 03:29:04 -08:00