Revīziju grafs

895 Revīzijas

Autors SHA1 Ziņojums Datums
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
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
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
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
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
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
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
Raghavendar rao l
548ee8e772 msm: ipa3: Add retry attempts for subsystem loading
Whenever subsystem loading fails to load ipa firmware, updated
change to load untill it succeeds.

Change-Id: I8b600e8e03030dfbd2e255a4a2148bef942dfe11
Signed-off-by: Raghavendar rao l <rlomte@codequrora.org>
2021-12-31 13:13:07 +05:30
Michael Adisumarta
63d22376cf dataipa: modify replenish rx cache to handle first cache allocation failure.
Replicate the replenish rx cache for the first cache
allocation failure.

Change-Id: I06a0a4e7179314924ffe7be6f9a558bb035d9f90
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-29 13:39:55 -08:00
qctecmdr
b036e4ce87 Merge "ipa: Add macsec mode IOCTL handler" 2021-12-28 20:23:06 -08:00
Ilia Lin
41cc043b21 ipa: test_module: Add missing break to case
Change-Id: If69247b45b4b4b6cdc249f922574e3aac58de08a
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-12-28 14:20:29 +02:00
Ilia Lin
c8a0cc3c0a 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>
2021-12-26 12:55:30 +02:00
Ilia Lin
58398cbbc6 ipa: Add macsec mode IOCTL handler
Add handler for IPA_IOC_ADD_MACSEC_MAPPING and
IPA_IOC_DEL_MACSEC_MAPPING.
The mapping info is forwarded to the IPACM.

Depends-on: 3889607
Change-Id: I44c3cb8044d1ddb36c79ecbb8d962f29a95f3fe1
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-12-23 20:32:17 -08:00
Chaitanya Pratapa
0e95bb3404 msm: ipa: use a single panic notifier
Make changes to use single panic notifier to get all the information
in one shot.

Change-Id: I8030f17b58a5d4da0a93e5109d5b9717e67d466a
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2021-12-23 12:07:26 -08:00
Dor Deri
6037f39f32 ipa: Fix packet context data structures
Adjust the packet context fields and the hw packet context enum.

Change-Id: Id688353c6f991f75e6a7e144ea4d99a631545d5a
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2021-12-22 01:16:59 -08:00
Michael Adisumarta
43f160d969 msm: ipa: set the mac header to 0 for rx skbs
packet_rcv_spkt is expecting to strip out the skb_mac_header.
Part of the alloc_skb, the mac header is setup ~0 which is causing
the skb data point to wrong location.

Change-Id: Ib8c14c029145da6a779ead21fb851b26677f4d0f
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-21 12:35:57 -08:00
qctecmdr
36190d7fab Merge "dataipa: unmap gsi base after disabling the clock" 2021-12-21 01:16:05 -08:00
qctecmdr
e726686bd8 Merge "dataipa: adding last empty entry for mhi_driver_match_table definition" 2021-12-20 23:40:34 -08:00
Michael Adisumarta
97a4d770a7 dataipa: unmap gsi base after disabling the clock
Unmap gsi base after disabling the clock to avoid
unmapped memory address access.

Change-Id: Iaf32619d1ad304a4fe2d1f07cb88d2356f4c57c5
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-20 15:00:44 -08:00
qctecmdr
d3817512b5 Merge "msm:qmi: Fix race condition" 2021-12-19 18:38:45 -08:00
qctecmdr
613e42198c Merge "msm: ipa3:fix warning message" 2021-12-17 03:25:43 -08:00
raghavendar rao l
689a18333f msm:qmi: Fix race condition
Add changes to fix race condition while sending
modem init QMI sync message.

Change-Id: I2183dd2da40b589ccd628469273b33edc2ea399d
Signed-off-by: Raghavendar rao l <rlomte@codequrora.org>
2021-12-15 17:25:23 -08:00
Michael Adisumarta
d13dd5a313 dataipa: adding last empty entry for mhi_driver_match_table definition
Adding an empty entry for mhi_driver_match_table definition.

Change-Id: I18704736382cf02c9cc2e273aa8839d8f545ef48
Signed-off-by: Michael Adisumarta <quic_madisuma@quiinc.com>
2021-12-15 15:29:14 -08:00
qctecmdr
a9e3762ee0 Merge "msm: ipa3: Changes to load signed elf." 2021-12-14 14:46:17 -08:00