To acheieve better performance use separate event ring
for WAN producer.
Change-Id: I79fcb275f4d578acce7ffedbd85f991646cbfd90
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Make changes to enable APQ based target out of 5_1.
Enable IPA MPM module. Make changes to init MPM
from IPA driver to avoid cycling dependency.
Change-Id: Id1e28198305c785d93a39b9093aaa230dfbb9b55
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
This is a new feature starting from IPA 5.0.
ULSO - uplink segmentation offload implements
HW IP packets segmentation.
Change-Id: I1d0b70eeb323e4a52c582b5d5d0017817bd14944
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Channel and event ring doorbell base addresses are PCIe root
complex dependent. Move away from that dependency by using newly
introduced APIs to query those values from MHI driver.
Change-Id: Iac1fcf625287e4b50daf5785106eac414d161826
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
As per the IMM document:
"rule id value of 0x3FF is required
(if not set correctly, filtering stats may be updated)"
for both flt_rule_id and rt_rule_id.
This change assignes hardcoded value to these fields
and avoides API user from changing them.
Change-Id: I132e1171adfbd4f83d6a9307f8957a3df45f0860
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
A new field was added to the QMI force clear request message
data structure, to accommodate up to 128 possible endpoints.
If this new field is used on newer architectures,
the old field shall be ignored.
This change implements handling of the new field in the
driver code.
Change-Id: I0d75412a7a177e6307477c54c7efcef225e83f78
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Observing use after free issue during teardown WAN pipe if we
receive the incoming packet. Adding check channel in right state
before access base address.
Change-Id: I29a611693b78637811fe45abea93d9ed3e6f54e5
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Add new entries to the default WAN DL routing table
for ICMP packets. The rules will introduce
the aggregation force close flag in order to improve ICMP latency.
Change-Id: I20c8228d7d07d1ac744f85f9e68cabb75a5f21d0
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
For the kernel tests we want filtering support enabled
on the test pipes on debug builds.
This change adds new DT HW mode <4> for HW in test mode.
In this mode the test pipes will support filtering.
Change-Id: I75effad603704f41c215385c62b09e46f9a019c8
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Observing gsi assert in SSR scenario due to not decreasing the
num_of_chan_allocated count. Adding changes to decrease the count
in dealloc event ring.
Change-Id: Icc0713c25bc5566c377e46fef2a4feb3feed176a
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
disable gsi flow control for mhi flow control channel
if modem is already up.
Change-Id: I5d7f63d85fab8372bf4830d1fe1328027a1ab889
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
The IP_PACKET_INIT_EX IMM is not supported on older targets.
To avoid runtime errors, adding HW version check
for this feature.
Change-Id: Ide6d38eceffa7e34d2b90a7b5caf6f5bb3b1fcca
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
Free the correct rx buffer size with the configured
page order.
Change-Id: I0e9d3412a1104042b843df2031b1bf7f41e8dfce
Signed-off-by: Michael Adisumarta <madisuma@codeaurora,org>
LAN RX optimization, processing N packets in the
LAN polling function instead of one each time.
Moved notify array to global to save memory on
the stack.
Change-Id: I0297b5cc3982ddb44a958c3dd92a98ee88432947
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Masked interrupts, moved the producer apps
event ring and channel ring polling from
GSI IRQ to napi context, and disabled NOP
descriptors, since interrupt mitigation
is now coming from napi usage.
Change-Id: Id69ba519103255567654d5a11fcd3387900cb27d
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
In order to reduce ICMP packets latency,
use aggregation force close flag.
Since those packets are sent with the packet init IMM,
port the relevant code to use the extended packet init IMM.
Change-Id: Idba27352c0b6ce1b2b11b9c15a5ed4a847442df6
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>