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>
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>
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>
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>
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>
Support rate limitting for teth bridge and rate limit
exception packet log.
Change-Id: I65436310dfa2e0aa53e4e1719a8d0c1a1de3b730
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
Set the correct pipe_replicate_en value to support ADPL feature
Change-Id: I2a7df9f5c497f88be17d11d5a7d6411c146e49c6
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
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>
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>
Replicate the replenish rx cache for the first cache
allocation failure.
Change-Id: I06a0a4e7179314924ffe7be6f9a558bb035d9f90
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
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>
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>
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>
Adjust the packet context fields and the hw packet context enum.
Change-Id: Id688353c6f991f75e6a7e144ea4d99a631545d5a
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
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>
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>
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>
Adding an empty entry for mhi_driver_match_table definition.
Change-Id: I18704736382cf02c9cc2e273aa8839d8f545ef48
Signed-off-by: Michael Adisumarta <quic_madisuma@quiinc.com>
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>
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>
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>
Added checks for input validation to handle request from ipa3_wan_ioctl.
Change-Id: I4deddba21a4754ea3b5137b13ef5c450fdb3b73b
Signed-off-by: Himansu Nayak<quic_himansu@quicinc.com>
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>
Set 64 bit DMA mask when smmu is enabled.
Change-Id: I9bfe82d2681bcf1da0680ba085f1635c306bde7a
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
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