Commit Graph

454 Commits

Author SHA1 Message Date
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
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
qctecmdr
b8056e8ba4 Merge "msm: ipa3: enable SYSPIPE_ERR_DETECTION bit for deaggr_err" 2021-03-03 23:53:25 -08:00
Ashok Vuyyuru
3f36f59b7e msm: ipa3: Updating SRAM locations for holi
Updating SRAM locations according to excel sheet for holi target.

Change-Id: I2fc011d4980f25f74f7c96448b033f61fdea9639
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-03-03 21:56:47 -08:00
Michael Adisumarta
03fcf6c49e msm: ipa3: update subsys_local_modem name
Update the subsys_local_modem name to mpss to handle
modem SSR.

Change-Id: I5e5627144748ee6fd33883c2d65acb11b31bf16d
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-03-03 19:05:14 -08:00
qctecmdr
5bf6f49caf Merge "msm: ipa3: Fix to null pointer access" 2021-03-03 17:31:37 -08:00
qctecmdr
7d9d2161da Merge "msm: ipa3: Remove assert to avoid frequent crash" 2021-03-03 15:20:04 -08:00
Ashok Vuyyuru
adfdf790e3 msm: ipa3: enable SYSPIPE_ERR_DETECTION bit for deaggr_err
We observe the IPA RX stall due to the DEAGGR_ERR_IRQ
of PACKET_SIZE > FRAME_SIZE on WAN PROD pipe.
In IPA, some of de-aggregation error handling checks
are dependent on the syspipe_err_detection config bit.
Adding IGNORE_MIN_PKT_ERR bit for WAN PROD as well based
on recommendations.

Change-Id: Ie0fe8f52a1e63750e3db7f2b3fcf42790505fa88
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-03-03 10:33:27 -08:00
Ashok Vuyyuru
815d8d5b90 msm: ipa3: Fix to null pointer access
After PM client deregister trying to access the PM handle causing the
NULL pointer access. Adding changes to avoid NULL pointer access.

Change-Id: Ieee7864989e8c54f09c8df659bfc91dca8e89b3b
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-03-03 09:38:43 -08:00
Ilia Lin
bab7ef34de ipahal: Add IMM modify method
Change-Id: I409864f882287624ea4ab01c15881d046d320396
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-03-03 17:10:42 +02:00
Ilia Lin
b5a39c2051 ipa: Adding support for IP_PACKET_INIT_EX IMM
Adding support for new IMM: IP_PACKET_INIT_EX
The new IMM enables different fields configuration,
extending the older IP_PACKET_INIT.

Change-Id: Icac62d09d4694ab5634fda41579c9de8e4c3afc3
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-03-03 17:06:25 +02:00
Michael Adisumarta
3efc40a0a4 msm: gsi: export 2 gsi symbols
Exporting gsihal_get_reg_nk_ofst and gsihal_write_reg_nk
symbols.

Change-Id: I1852d8d44dee18c08b5135de8131dcbbf653c221
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-03-02 12:18:17 -08:00
Michael Adisumarta
18671cbaa5 msm: ipa: Initialize variable in ipa_test_wdi3
Initialize is_tx1_used in ipa_wdi3_test_multi_transfer3 api.

Change-Id: Iaf11a7469a9a50287944f51567966d3fb691a22c
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-03-01 14:12:32 -08:00
Bojun Pan
4eb2c50ac8 msm:ipa: fix the enum issue on WDI3 reg prop
Use WLAN2 enum on WDI3 protocol.

Change-Id: I1e8f331f61aac7a72fb032ad4ea365a4d0b4c1d3
2021-02-26 16:40:00 -08:00
qctecmdr
d2ed022dbb Merge "msm: ipa3: fix IPA KW p1 errors" 2021-02-25 19:13:50 -08:00
Michael Adisumarta
4e725130da msm: ipa3: fix IPA KW p1 errors
Fixing KW error on LA.VENDOR.1.0

Change-Id: Ie19fc08b9b35581eb6e52b126ccccb20c9ee3f32
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-25 12:11:12 -08:00
Ashok Vuyyuru
1cc2e75647 msm: ipa3: Remove assert to avoid frequent crash
Adding changes to remove the frequent crash during USB disconnect
scenario USB stop channel was failure.

Change-Id: Iec0159a44f109fc9fa585e59f81ea30722511f79
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-02-23 17:21:16 +05:30
Akshay Pandit
9496877331 msm: ipa3: Update metadata register based on vlan id from packets
Update metadata register to pick up metadata value with vlan id
from header of packets.

Change-Id: I04fb0ae5a348c316220cb4667252892397560859
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2021-02-22 13:14:55 +05:30
qctecmdr
fca54c539f Merge "msm: ipa3: Fix the agg_byte_limit update for ioctl_v2" 2021-02-19 22:17:25 -08:00
qctecmdr
ef2c61e385 Merge "msm: ipa: Add new IOCTLs to get and set MTU" 2021-02-19 00:52:06 -08:00
qctecmdr
c6f25b87fe Merge "msm: ipa: fix the IPA clock vote on non-NAPI case" 2021-02-19 00:18:29 -08:00
qctecmdr
cd5c9b4563 Merge "msm: ipa3: immediately return after rx_len is cached." 2021-02-18 23:44:43 -08:00
Michael Adisumarta
6be04c2b1f msm: ipa3: Fix the agg_byte_limit update for ioctl_v2
Includes agg_byt_limit update for ioctl_v2

Change-Id: I21121b10857f0742297694cc2230cdb782b14360
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-18 18:00:42 -08:00
Michael Adisumarta
f8830cf940 msm: ipa: Add new IOCTLs to get and set MTU
Add a new IOCTL that will allow userspace modules to
get and set the v4/v6 mtu for a specific rmnet interface
for IPA driver and IPACM to use.

Change-Id: Iaf0685ef7095960ddd1cd3fff803956a18e0a942
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-18 14:59:55 -08:00
Bojun Pan
35baeb24e7 msm: ipa: fix the IPA clock vote on non-NAPI case
Fix the potiental addition reference counts issue.

Change-Id: Ib01707ab00db7413c46eee7ccb8d74460344d047
2021-02-17 14:04:04 -08:00
qctecmdr
1bcd04848d Merge "msm: ipa: add shared CB support for ETH" 2021-02-17 07:38:40 -08:00
qctecmdr
786b87e54b Merge "msm: ipa3: fix the aggregation disablement" 2021-02-17 04:29:12 -08:00
Michael Adisumarta
0ae88365be msm: ipa3: fix the aggregation disablement
Fixing aggregation disablement on LOW_LAT_CTRL pipe

Change-Id: Ic5705783209d9a158c03429c7f4638ea8a9646b1
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-16 19:16:35 -08:00
qctecmdr
c23adff2eb Merge "msm: ipa: enable SYSPIPE_ERR_DETECTION bit for deaggr_err" 2021-02-16 19:13:54 -08:00
Amir Levy
b20a8dd907 msm: ipa: add shared CB support for ETH
Add support for sharing page tables between IPA ETH
context bank and ETH context bank. In case of shared
CB no need to map ETH buffers.
Fix double mapping in case of two buffers lay on the same
page (non shared CB mode).

Change-Id: Ic52479da3c26a2db4075c260044428a0ef93bb6a
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-02-15 06:30:16 -08:00
qctecmdr
0c35df3986 Merge "msm: ipa: fix usage of ipa driver API" 2021-02-14 09:57:34 -08:00
qctecmdr
29a5ecae64 Merge "msm: ipa: update gsi config for RTK" 2021-02-12 22:19:17 -08:00
qctecmdr
f89c49b162 Merge "msm: ipa: assert on gsi stop channel failure" 2021-02-12 21:10:14 -08:00
Bojun Pan
ac12b70a3c msm: ipa: update gsi config for RTK
1. Change the RTK doorbell to MSI doorbell.
2. Update RTK element size to 32B.

Change-Id: Iec9301e30b51841c139b97abeaa6354a88fdef59
2021-02-11 15:08:17 -08:00
Bojun Pan
d21d7ca509 msm: ipa: assert on gsi stop channel failure
Add assert on all gsi stop channel cases to capture the issue
ahead of time.

Change-Id: I044f192c63a724e00a9559bcb44260f0763ff824
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2021-02-11 15:07:58 -08:00