Графік комітів

933 Коміти

Автор SHA1 Повідомлення Дата
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
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
67f9b76124 ipa: test_module: Add missing break to case
Change-Id: If69247b45b4b4b6cdc249f922574e3aac58de08a
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-12-28 04:27:32 -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
Chaitanya Pratapa
e57808f4dc msm: ipa: make changes to use ndo_siocdevprivate
ndo_do_ioctl is deprected in latest kernel. Instead make changes
to use ndo_siocdevprivate.

Change-Id: If7987fa0538ecb8a19d15443e17411873681c2aa
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2021-12-17 18:19: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
Chaitanya Pratapa
d7819fa285 msm: ipa: ipa5.5 updates
ipa5.5 register updates and resource/ep configuration.

Change-Id: I5bd1aad67f481d36f4942e215f422edd7073d06e
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
(cherry picked from commit 7ba64dfbbd3bcbab52f17a470fa7f2ffbe29b02c)
2021-12-14 08:41:53 -08:00
Piyush Dhyani
281df6cedf msm: ipa3: Changes to load signed elf.
In old H/W version target elf is loaded manually
and there are three header supported in IPA. But
for signed elf there are more than 3 header, so
Fw loading was failing. Now added changes to
load signed elf for old H/W target.

Change-Id:Ia2fac810cb5685766d1d943ef4b7bcb7e374182d
Signed-off-by: Piyush Dhyani <quic_pdhyani@quicinc.com>
2021-12-14 05:09:53 -08:00
qctecmdr
ae3c2ea2fc Merge "msm: ipa3: Fix to avoid NULL pointer access" 2021-12-14 04:24:16 -08:00
qctecmdr
38da4c095c Merge "msm: ipa: Fix considering prefetch buf size when mapping" 2021-12-13 18:51:42 -08:00
qctecmdr
67818911ca Merge "msm: ipa3: add support on socksv5 offload" 2021-12-13 10:23:38 -08:00
Sivakanth Vaka
034f18eb9c msm: ipa3:fix warning message
fix warning message in ipahal.

Signed-off-by: Sivakanth vaka <quic_svaka@quicinc.com>
2021-12-13 18:25:28 +05:30
qctecmdr
198aee51ee Merge "dataipa: set DMA mask even when smmu is enabled" 2021-12-13 00:36:14 -08:00
Muralidharan M
b80d437e65 msm: ipa3: add support on socksv5 offload
Add the support to create an ipa-uc activation
table and pass the index to user-space module
to configure the v4nat/v6ct rules associated
with the uc-activation table index.

Change-Id: I14b4007dd80b64fb4a151b6b1413bea0c3a468f6
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Signed-off-by: Pooja Kumari <quic_kumarip@quicinc.com>
Signed-off-by: Muralidharan M <quic_murm@quicinc.com>
2021-12-13 10:46:40 +05:30
Chaitanya Pratapa
38bfaa540a msm: ipa: Fix considering prefetch buf size when mapping
IPA HW tries to prefetch 128 Bytes of additional memory when
dealing with filter/routing tables. This can result in overflowing
of memory if we map only the required size. Make changes to
consider prefetch memory when allocating routing/filter tables.

Change-Id: Id72e4df285a4683dddebb18d98bb9c4dd9667eeb
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-12-12 18:15:11 -08:00
Himansu Nayak
b7482ec109 msm: ipa3: code security concern for IPA-QMI driver
Added checks for input validation to handle request from ipa3_wan_ioctl.

Change-Id: I4deddba21a4754ea3b5137b13ef5c450fdb3b73b
Signed-off-by: Himansu Nayak<quic_himansu@quicinc.com>
2021-12-03 20:12:43 +05:30
Ashok Vuyyuru
dbbde6b9f1 msm: ipa3: Fix to avoid NULL pointer access
Adding changes to check ipa_q6_clnt pointer NULL or not
before accessing it.

Change-Id: I255dd021c9534fe6ca4d7b19c3b576a0d3c80c7d
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-12-02 20:46:20 -08:00
Chaitanya Pratapa
ba2f797e99 msm: gsi: GSI 5.5 updates
GSI version 5.5 updates.

Change-Id: Ib0949a64a5867c01ea5993c71c98392e9f6e3434
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
(cherry picked from commit c117332d9db5f2c82158921f9380e314555cb247)
2021-12-01 22:45:34 -08:00
Michael Adisumarta
5660d595b5 dataipa: set DMA mask even when smmu is enabled
Set 64 bit DMA mask when smmu is enabled.

Change-Id: I9bfe82d2681bcf1da0680ba085f1635c306bde7a
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-01 19:54:57 -08:00
qctecmdr
a023c0bab0 Merge "msm: ipa3: Instaed of msec to jiffies passing the timeout value" 2021-11-30 21:53:11 -08:00
Ashok Vuyyuru
37ea2d2798 msm: ipa3: Instaed of msec to jiffies passing the timeout value
In wait for completion timeout function using the right conversion
not required to pass the msec to jiffies value. So passing the
timeout value directly.

Change-Id: Ic151c5570778595774919b02c2fec0eabf0245ce
2021-11-28 18:55:55 +05:30