Commit Graph

688 Commits

Author SHA1 Message Date
Sivan Reinstein
7582104cb6 msm: ipa: napi_tx fix for shared events and ipa devote
Update poll state only for EPs with shared evt ring.
Prevent devoting ipa twice incase of irq during tx_napi poll.

Change-Id: I6ae69e17067bdd47d9ac153b04eb86ae1d11199d
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-03-24 18:53:56 -07:00
Chaitanya Pratapa
9a5c0007a8 msm: ipa: use separate event ring for WAN producer
To acheieve better performance use separate event ring
for WAN producer.

Change-Id: I79fcb275f4d578acce7ffedbd85f991646cbfd90
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-03-24 18:53:14 -07:00
qctecmdr
fa59f0f1f2 Merge "msm: IPA: Adding ULSO feature." 2021-03-24 01:58:52 -07:00
qctecmdr
629c5b2191 Merge "msm: ipa: enable MPM module" 2021-03-23 15:45:53 -07:00
qctecmdr
99df8abf07 Merge "msm: ipa3: Fix to WLAN compilation issue" 2021-03-23 03:13:30 -07:00
Chaitanya Pratapa
23cb08e81e msm: ipa: enable MPM module
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>
2021-03-22 09:50:54 -07:00
Amir Levy
1d3d561cdd msm: IPA: Adding ULSO feature.
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>
2021-03-21 00:31:36 -07:00
Chaitanya Pratapa
59d0c3ec7a msm: ipa3: get mhi pre-configure data using new kernel APIs
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>
2021-03-19 21:54:56 -07:00
Bojun Pan
dd8ad88cf9 msm: ipa: update the MHI Prime/MHI Proxy API
API update for MHI Prime/Proxy.

Change-Id: I2888468ee9592e1b9045af19ce58205f3c8e5416
2021-03-18 15:56:24 -07:00
qctecmdr
1ab18b622f Merge "ipa: Use hardcoded rule ID for IP_PACKET_INIT_EX IMM" 2021-03-17 10:06:11 -07:00
qctecmdr
97240c1f4b Merge "msm: ipa: fix p1 compile errors" 2021-03-17 00:54:31 -07:00
qctecmdr
44e85bf649 Merge "ipa: Add DL WAN ICMP RT rules" 2021-03-16 13:36:32 -07:00
qctecmdr
1bbddf6609 Merge "msm: ipa: remove redundant check in polling" 2021-03-16 11:48:30 -07:00
qctecmdr
c83cad37aa Merge "ipa: Update the QMI FC request to support 128 endpoints" 2021-03-16 08:53:04 -07:00
Ilia Lin
eb67180a04 ipa: Use hardcoded rule ID for IP_PACKET_INIT_EX IMM
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>
2021-03-16 09:20:53 +02:00
Michael Adisumarta
abf6caaf9d msm: ipa: fix p1 compile errors
Fixing compile errors on LA.VENDOR.1.0.

Change-Id: I14bb7509bb6840a1ec2ce0ffa585d68bf8886b6b
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-03-15 16:45:12 -07:00
Ilia Lin
06d187dd08 ipa: Update the QMI FC request to support 128 endpoints
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>
2021-03-15 20:01:02 +02:00
Ashok Vuyyuru
9aeec4c5b7 msm: ipa3: Check channel in right state before access base address
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>
2021-03-15 09:32:02 -07:00
Ilia Lin
caaa50c70a ipa: Add DL WAN ICMP RT rules
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>
2021-03-15 17:11:52 +02:00
Sivan Reinstein
e90f0bbcbe msm: ipa: remove redundant check in polling
remove redundant check for invalid params
in polling function.

Change-Id: I6bbff7f5504c4ac27b991fbe59923b633922ec64
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2021-03-15 09:37:29 +02:00
Bojun Pan
05f6b458cf msm: ipa: fix the polling state on GSI
Adding the missing change to update the polling state.

Change-Id: Icfd26c17b91cfe62b67a44c27727fff1f14b6943
2021-03-11 09:41:28 -08:00
qctecmdr
41d4c2d74c Merge "msm: ipa: disable gsi flow control for mhi flow control channel" 2021-03-11 03:02:49 -08:00
qctecmdr
4fb261386c Merge "ipa: Enable filtering on test pipes on debug builds" 2021-03-10 09:23:41 -08:00
qctecmdr
7038889f3f Merge "msm: ipa3: Changes to decrease the num_of_chan_allocated count" 2021-03-10 08:44:43 -08:00
Ilia Lin
df14acc05f ipa: Enable filtering on test pipes on debug builds
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>
2021-03-10 02:52:36 -08:00
Praveen Kurapati
4ab3b7d997 msm: ipa3: Changes to decrease the num_of_chan_allocated count
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>
2021-03-10 11:43:41 +05:30
Bojun Pan
7ed013574a msm: ipa: disable gsi flow control for mhi flow control channel
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>
2021-03-09 17:00:12 -08:00
Piyush Dhyani
604634b042 msm: ipa3: Fix to WLAN compilation issue
Adding code changes to resolve the compilation issue.

Change-Id: I3449965fa85781f252647f90d8c4727013eea3ab
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-03-09 10:21:12 -08:00
qctecmdr
642bdd4067 Merge "msm: ipa: fix p1 compile errors" 2021-03-08 22:49:58 -08:00
qctecmdr
319759aaf6 Merge "msm: ipa: correct the QMB MASTER SELECT" 2021-03-08 21:28:19 -08:00
qctecmdr
be60c6a765 Merge "ipa: Config USB CHs with MSI IRQs" 2021-03-08 17:18:54 -08:00
Michael Adisumarta
9099fd8080 msm: ipa: fix p1 compile errors
Fixing compile errors on LA.VENDOR.1.0

Change-Id: I81410f22a6031f3be5d031449c6749dbb0722b77
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-03-08 15:44:30 -08:00
Ilia Lin
e81f9ee16a ipa: Add HW support check for IP_PACKET_INIT_EX IMM
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>
2021-03-08 14:21:34 +02:00
Bojun Pan
01c5530fa8 msm: ipa: correct the QMB MASTER SELECT
Correct the QMB MASTER select EP configurations.

Change-Id: Ie5ac47b846b0e1fb75a0868b8f853ae302c97320
2021-03-06 17:31:35 -08:00
qctecmdr
d385dec237 Merge "msm: ipa3: free the correct rx buff size" 2021-03-05 22:37:23 -08:00
qctecmdr
eb8af4aa2e Merge "msm: ipa: gsi poll N packets on LAN path" 2021-03-05 11:44:26 -08:00
Michael Adisumarta
82802df10a msm: ipa3: free the correct rx buff size
Free the correct rx buffer size with the configured
page order.

Change-Id: I0e9d3412a1104042b843df2031b1bf7f41e8dfce
Signed-off-by: Michael Adisumarta <madisuma@codeaurora,org>
2021-03-05 11:22:42 -08:00
qctecmdr
93bd81f260 Merge "msm: ipa: napi on tx completion changed to polling" 2021-03-05 09:00:09 -08:00
qctecmdr
7785dcb232 Merge "msm: gsi: export 2 gsi symbols" 2021-03-05 00:50:22 -08:00
Sivan Reinstein
56f13ff82a msm: ipa: gsi poll N packets on LAN path
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>
2021-03-05 10:27:37 +02:00
Sivan Reinstein
468a3b7e65 msm: ipa: napi on tx completion changed to polling
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>
2021-03-05 10:26:35 +02:00
qctecmdr
2fca589052 Merge "msm: ipa: Initialize variable in ipa_test_wdi3" 2021-03-05 00:11:34 -08:00
qctecmdr
e25adbf8b9 Merge "msm: ipa3: update subsys_local_modem name" 2021-03-04 23:25:50 -08:00
qctecmdr
f53ddc7ee8 Merge "Revert "msm: ipa3: enable SYSPIPE_ERR_DETECTION bit for deaggr_err"" 2021-03-04 17:44:41 -08:00
qctecmdr
1cb8ee8406 Merge "ipa: FC aggregation on ICMP packets to TX LAN" 2021-03-04 13:40:09 -08:00
Ashok Vuyyuru
2a67357f6a Revert "msm: ipa3: enable SYSPIPE_ERR_DETECTION bit for deaggr_err"
This reverts commit adfdf790e3.

Change-Id: Ibf8137857afea50930952313793569498add1eb4
2021-03-04 22:27:07 +05:30
qctecmdr
35c367394c Merge "msm: ipa3: Updating SRAM locations for holi" 2021-03-04 08:44:03 -08:00
Ilia Lin
9924fa7dfe ipa: FC aggregation on ICMP packets to TX LAN
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>
2021-03-04 16:16:18 +02:00
qctecmdr
5f6b9b8abd Merge "ipahal: Add IMM modify method" 2021-03-04 00:49:51 -08:00
qctecmdr
a83f498cda Merge "ipa: Adding support for IP_PACKET_INIT_EX IMM" 2021-03-04 00:14:22 -08:00