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>
Add support for IPA_5.5 in kernel tests.
Change-Id: I448936055c84d6e38f886becfba372627fb37147
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
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>
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>
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>
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>
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>
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>
When SSR in progress not allowing to setup ODL pipe.
Change-Id: Ied44a7bafdf90cff2f3b7619da88fe3c31d18956
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
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>
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>
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>