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>
Support rate limitting for teth bridge and rate limit
exception packet log.
Change-Id: I65436310dfa2e0aa53e4e1719a8d0c1a1de3b730
Signed-off-by: Michael Adisumarta <quic_madisuma@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>
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
Add changes to register offset. Due to which
GSI channel allocation fails.
Change-Id: Iba36fe8c9124339316788a4396127bc7a9b1485f
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Ehanced flow control, used secondary flow control for mhi pipes.
1. TX/RX MHI QMAP pipe setup before modem QMI server is up
• Part of MHI_QMAP UL pipe, AP will set secondary FC.
• When both UL and DL MHI QMAP pipes setup, since modem not up yet, no-op.
• When modem server is up, AP will send ENDP_DESC QMI for QMAP control pipe from rmnet_ipa driver.
2. TX/RX MHI QMAP pipe setup after modem QMI server is up
• When modem server is up, don’t send ENDP_DESC QMI for QMAP control pipe.
• Part of MHI_QMAP UL pipe setup, AP will set secondary FC.
• After both UL and DL MHI QMAP pipe setup, send ENDP_DESC QMI for QMAP control pipe from mhi client driver.
3. Modem QMI server is up in middle of TX/RX MHI QMAP pipe setup
• Part of MHI_QMAP UL pipe, AP will set secondary FC.
• When modem server is up, if only single pipe setup, don’t send ENDP_DESC QMI for QMAP control pipe.
• After both UL and DL MHI QMAP pipe setup, send ENDP_DESC QMI for QMAP control pipe from mhi client driver.
4. MHI control pipe teardown and setup again while device modem remains up
• Part of MHI_QMAP UL pipe re-setup, AP will set secondary FC.
• After both UL and DL MHI QMAP pipe setup, send ENDP_DESC QMI for QMAP control pipe from mhi client driver.
• Q6 need to make sure it can support duplicate QMI of same ENDP_DESC info. Instead of skip the same QMI, we should do same operation based on QMI.
5. Modem SSR while MHI control pipes remain connected
• AP need to set secondary FC part of modem SSR handling.
• When modem server is up, AP will send ENDP_DESC QMI for QMAP control pipe from rmnet_ipa driver.
Change-Id: Iad7d4006d65cc71320b9fbf29c644dc31ef50c4b
1. Use size static member instead of method
2. Add missing arguments in a call inside default constructor
Change-Id: Ib1b508e7d67742957551012c73f40d399651bb15
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
Increase the hw_stats_quota_size from 72 to 96 bytes on targets
IPA_5_0 and above.
Change-id: Id407138e7b0f684a3bce5ba00059b368cee8156b
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
In case of pipe setup failure, make sure to free up the DMA
mappings along with freeing up memory.
In case of tag process, make sure to free up the dummy
memory allocated for ULSO WA.
Change-Id: I70a2ef484c7e2a9ac871dfce95bf63c9f3dc9755
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Added more DEBUG registers, checked and fixed existing structs
in ipa_reg_save
Change-Id: I95add61146e45d1faf8fd1c625cdb34749395f1e
Signed-off-by: Dima Birenbaum <quic_dbirenba@quicinc.com>
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>