Commit Graph

917 Commitit

Tekijä SHA1 Viesti Päivämäärä
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
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
Raghavendar rao l
73cc882152 msm: ipa3: Fix to handle ipa firmware loading in case of XBL boot
Updated change to handle ipa firmware loading, as in case of XBL
boot IPA firmware is not loaded through PIL subsystem.

Change-Id: I8f5457fe76f27ba34336a0889add24eecad5e7f1
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2022-01-12 03:18:21 -08:00
Ilia Lin
8a04c9e398 ipa: Fix system header adding size check
In case a new header is intended to be local,
but there is no space in the SRAM, it is reassigned to be
system, but then the DDR buffer size is not checked.
Fixing this by looping the size check twice.

Change-Id: Ie74346e191b54376870a744de03568720ac7f102
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-01-12 00:08:44 -08:00
Ilia Lin
bb4a80ee14 ipa: Remove is_hdr_proc_ctx flag
The is_hdr_proc_ctx flag and the phys_base member were used
to add HPC instead of a header, if there is no memory space.
This logic was replaced by dynamic header distribution and
the members are not used anymore.
Removing all references in the code.

Change-Id: I1d4acda4882b4aeb892d2ab0ea03148c627dd630
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-01-12 00:07:57 -08:00
qctecmdr
16e4515129 Merge "ipa: Remove is_hdr_proc_ctx flag" 2022-01-11 15:02:53 -08:00
Srikanth Vakiti
1b635b1955 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-11 15:34:26 +05:30
qctecmdr
7b63402a45 Merge "dataipa: modify replenish rx cache to handle first cache allocation failure." 2022-01-10 13:15:32 -08:00
Piyush Dhyani
8dc005f25f msm: ipa3: Changes to support 2X PINE.
Add Changes to support 2X PINE.

Change-Id: I062fdf125f0e797e03fd1eed86ebe6fd1ee33326
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2022-01-11 01:52:56 +05:30
Ilia Lin
e17cac37d5 ipa: Add TSP registers to the HAL
The IPA 5.5 introduces new registers to program
the Traffic Shaping and Policing feature.
This change adds those registers offsets, masks and parsers
to the IPA HAL.

Change-Id: Iaea569ad757adba92fbdeda661ccac42b2361317
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2022-01-10 19:12:52 +02:00
qctecmdr
7915a0a8d7 Merge "msm: ipa3: Retry to attach smmu nodes if fails" 2022-01-09 22:51:47 -08:00
qctecmdr
a24a5cc129 Merge "ipa: Fix system header adding size check" 2022-01-09 21:32:52 -08:00
qctecmdr
d47c450d67 Merge "ipa-kernel-tests: Add Feature parent class" 2022-01-05 23:17:33 -08:00
Ilia Lin
67d5416f14 ipa: Fix system header adding size check
In case a new header is intended to be local,
but there is no space in the SRAM, it is reassigned to be
system, but then the DDR buffer size is not checked.
Fixing this by looping the size check twice.

Change-Id: Ie74346e191b54376870a744de03568720ac7f102
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-01-04 22:40:35 -08:00
Michael Adisumarta
7f5531d5a9 dataipa: support for rate limitting teth bridge error logs
Support rate limitting for teth bridge and rate limit
exception packet log.

Change-Id: I65436310dfa2e0aa53e4e1719a8d0c1a1de3b730
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-01-04 15:51:21 -08:00
Dor Deri
4ead83c485 ipa: enable ADPL v6 feature for certain IPA clients
Set the correct pipe_replicate_en value to support ADPL feature

Change-Id: I2a7df9f5c497f88be17d11d5a7d6411c146e49c6
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2022-01-04 01:10:56 -08:00
Ilia Lin
07c34f663c ipa-kernel-tests: Add Feature parent class
Add a new "Feature" class as parent to Filtering, HeaderInsertion,
RoutingDriverWrapper and future feature classes.
This class is implementing duplicated prototypes,
constructor and destructor methods.

Change-Id: I65b44b163393472eb60f1ca653520a8c8d3cb710
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-01-03 10:41:03 +02:00
Raghavendar rao l
3d47244e16 msm: ipa3: Retry to attach smmu nodes if fails
Updated change to retry attaching smmu nodes if it fails, In a
deffered work queue with 500msec delay.

Change-Id: Ia54d801543224caf81085fedfd16305eca99995e
Signed-off-by: Raghavendar rao l <rlomte@codequrora.org>
2021-12-31 13:20:49 +05:30