Graf commitů

212 Commity

Autor SHA1 Zpráva Datum
Sivan Reinstein
c91a30c1de gsi: HAL fix WDI3 MSI address set
Fix GSI HAL setting of MSI address for WDI3 channels

Change-Id: Ic04e435d75a9e7810c87dcab73c2277328ab86d1
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-19 20:25:54 +03:00
Ilia Lin
ff9baf7207 ipa: test: Add HW stats tests for drop, quota and tethering
Change-Id: Iabf4a1b048fae75c9089e68b7324ecaa6d077c7a
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 09:22:17 +03:00
Ilia Lin
591e1c6870 ipa: test: Fixes for Olympic
Various fixes to get the in-kernel tests running and pass
on Olympic.

Change-Id: I6850a35c488321fd216ef5ac8024d2c70a6c51d1
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 09:22:12 +03:00
Ilia Lin
6367f7cf63 ipa: Add support to IPA FW load prior to kernel start
IPA FW is loaded via XBL to improve boot KPI enumeration
for MHI and USB use cases.Make changes to complete the IPA
initialization as early as possible without waiting for
user space trigger to load the fw.

Change-Id: I6fc6ab0a52784428363154b66237886e738048de
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 09:22:06 +03:00
Ilia Lin
98d4a895e0 gsi: Init props in the context before IRQ enable
Once the interrupt is enabled we could get an interrupt
immediately. To avoid a crash in this case, we have
to initialize the props structure in the gsi_ctx.

Change-Id: Ic595bc9d8ab5f3803ff6e1592358f426dcf51e0a
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 09:22:02 +03:00
Sivan Reinstein
87dced81b2 msm: ipa3: V6 CT mmap and NAT SRAM allocation fix
V6 CT table mmaping was failing due to improper state data being
passed to dma_mmap_coherent. With this change, the proper data are
now passed.
This change also prevent allocation of NAT table on SRAM when SRAM
is not initialized.

Change-Id: I974cb906dbc53ff512dbce6b7424d4d4be1ec1ed
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-08 09:21:58 +03:00
Sivan Reinstein
b7e258da2d msm: ipa: Load IPA_CFG offset from DTS
Load the IPA_CFG offset from the DTS and use it for reg_base
offset.

Change-Id: Ib04349b5f35e8b3b4f5cfdf8eee50eabd886484f
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-08 09:21:52 +03:00
Sivan Reinstein
02b1220243 msm: ipa: Limit imm cmds chain size when submitting filter rules
Limit the number of immediate commands in a chain when submitting
filtering rules in order to prevent chain size from surpassing TLV
fifo size.

Change-Id: Iebdd76501d9965331715fc5d7ae050f9007f9361
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-08 09:21:47 +03:00
Sivan Reinstein
2143cb5dd1 gsi: Add HAL Layer for GSI 3.0 version
Update GSI HAL to support GSI 3.0

Change-Id: I7b3a687ddbf51f71011267d6bb9b559eb4a8fbd1
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 09:21:40 +03:00
Sivan Reinstein
b4f2036141 gsi: Add HAL Layer for GSI
Add Hardware Abstraction Layer infrastructure to GSI
driver. This change includes registers HAL component
for GSI.

Change-Id: I87e7c22ed88117a74af4220b4c05c610bae498cc
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 09:20:40 +03:00
Ilia Lin
4c6c6a1b80 msm: ipa: SWI changes for Olympic driver upgrade
Change-Id: I997bd74704c7203f70e7d41838606c6d3957d91e
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Signed-off-by: Ilia Lin <ilial@codeaurora.org>
2020-10-06 22:19:30 +03:00
Sivan Reinstein
f7fa271d7a ipa: config IPA producers TX_INSTANCE
Config IPA Prodocers with correct TX_INSTANCE

Change-Id: I09201aae0738c0244aa83696bee86416f5a3511d
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-06 10:06:07 +03:00
Sivan Reinstein
2bef2805b3 ipa: Update IP_PACKET_INIT IC for IPAv5
Change-Id: Id2d2ea617e3f2ed70a986e0478538574730199d2
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-06 10:06:07 +03:00
Ilia Lin
af4589c6aa ipa: Add support for IPA v5 packet status
IPA v5 introduced new packet status and frag status bitmaps.
Adding the support for the new bitmaps.

Change-Id: I6f112254d41aaebdbf49d474af33fe24a5551725
Signed-off-by: Ilia Lin <ilial@codeaurora.org>
2020-10-06 10:06:07 +03:00
Ilia Lin
7645eed7c2 ipa: flt\rt changes for IPAv5
adapt flt\rt rules and headers structures to IPAv5

Change-Id: Ib44550ff9639a53aad49cf599e9877de4ad8a701
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Ilia Lin <ilial@codeaurora.org>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-06 10:04:46 +03:00
Amir Levy
9748df5d48 ipa: update hw stats to IPAv5
Adapt to removal of uni dimensional registers and replace
in bi dimensional registers due to increase in IPA pipes
number

Change-Id: Icf8e858d275744d30ffcc09ab6147de52b9ab148
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-10-05 19:50:24 +03:00
Amir Levy
1468e58a12 ipa: adapt to IPAv5 number of pipes
IPAv5 supports up to 256 pipes, update code to support
increased number of pipes and change in bitmaps

Change-Id: I828bd274974fc0af96c90cdb0fcb339e523c7d08
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-09-29 17:06:33 +03:00
Ilia Lin
f241fe4cb0 ipa: update IPAv5 registers
Update IPAHAL to new IPAv5 registers according to SWI.
Remove usage of obsolete registers and use new ep registers
instead.

Change-Id: I5408c0508ff7ec26879d1cd481a04e463a2f91ab
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Ilia Lin <ilial@codeaurora.org>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-09-29 17:06:33 +03:00
Ilia Lin
72392c0952 msm: ipa: Add SDXLEMUR to dataipa MAKEFILE
Compile IPA driver in SDXLEMUR

Change-Id:I854a435319699492a676da8289866e4b6d091518
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-09-10 17:47:11 +03:00
Arnav Sharma
4dc5ce8749 Fastforwarding dataipa tip data-kernel.lnx.1.1 to data-kernel.lnx.1.2
Change-Id: Ib13eddbf3f853c498cb3fbce566f0f20c080a71f
2020-08-25 10:30:46 -07:00
qctecmdr
996d5675d6 Merge "ipa: Fix debugfs tethering stats print" 2020-08-22 13:59:26 -07:00
qctecmdr
85389c4153 Merge "ipa: Fix MHI channel resume after stuck GSI" 2020-08-22 13:28:32 -07:00
qctecmdr
60195e2ad2 Merge "msm: ipa: Fix lan polling to use max budget" 2020-08-20 00:41:34 -07:00
qctecmdr
33b0fd1d1a Merge "msm: ipa4: fix the unclock gsi IPA register access" 2020-08-19 19:14:56 -07:00
qctecmdr
3d503d5b16 Merge "msm: ipa4: Disable uc monitoring stats for holi target" 2020-08-19 18:30:16 -07:00
qctecmdr
08bb775bb1 Merge "msm: ipa4: Configure the destination resource group for DRB-IP" 2020-08-19 17:58:54 -07:00
Ashok Vuyyuru
8cb85b52b3 msm: ipa4: Disable uc monitoring stats for holi target
In holi target due uC memory constraints uC monitoring stats
not support. So disabling the sending monitor command to uC.

Change-Id: I34e319118287fcd82876344bd85ab53c50cf5651
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-08-19 22:02:20 +05:30
Ashok Vuyyuru
7c957296ab msm: ipa4: Configure the destination resource group for DRB-IP
Adding changes to configure the destination resource group for DRB-IP.

Change-Id: I41248e7e7e92a0e4635b8661d1f324be165bd2fa
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-08-19 21:58:56 +05:30
qctecmdr
a32fd77448 Merge "msm: ipa: fix the endp_init_deaggr configuration" 2020-08-19 06:49:25 -07:00
Bojun Pan
72e7088c19 msm: ipa4: fix the unclock gsi IPA register access
The while loop in gsi_handle_irq will cause an extra register
read after handle last interrupt. This read can be the unclocked
read. The fix is to break on ch/evt control interrupt where
could potientially cause IPA clock off.

Change-Id: If4b3bb127ee66648d24b8ca7c16bd6fec42d9fcc
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-08-18 23:43:53 -07:00
qctecmdr
2d19d4a5e6 Merge "msm: ipa3: Fix to use paired PM operation for IPA" 2020-08-18 18:52:32 -07:00
qctecmdr
15bdbefea5 Merge "msm: ipa: avoiding NULL pointer de-referencing" 2020-08-18 17:48:24 -07:00
qctecmdr
10afe9873b Merge "msm: gsi: cache last 20 gsi interrupt for interrupt storm debug" 2020-08-18 14:06:17 -07:00
Ashok Vuyyuru
7aa33aede2 msm: ipa3: Fix to use paired PM operation for IPA
Becauase of using wrong pair of PM operation device
was not resuming if suspend fails. Adding changes to
use correct set of PM operations.

Change-Id: Ib9fdea8f93f0a6dafbd5908dc8fc2bbf4f1e0904
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-08-18 01:55:24 +05:30
Chaitanya Pratapa
37f6ed3720 msm: ipa: Fix lan polling to use max budget
Make changes to use the max budget of 64 for the LAN polling.
Otherwise we will switch between Polling and Interrupt mode
even when there is continuous data.

Change-Id: I6bbf49b77d258e88044c03a33fe20bb015a55019
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-08-14 16:50:43 -07:00
Bojun Pan
b1419bf968 msm: ipa: fix the endp_init_deaggr configuration
In IPA4.9, the wrong end_init_deaggr ipa hal implementation had
been chosen. The fix is to correc the setting.

Change-Id: I63e2c50bc42b13ef9213d4b75d5c22346170a0d3
2020-08-14 16:04:39 -07:00
qctecmdr
717e1ce2fb Merge "msm: ipa: enable drop stats for USB/WLAN and DPL pipes" 2020-08-14 13:45:31 -07:00
qctecmdr
afc5807ba0 Merge "msm: ipa: rate limitting error logs" 2020-08-14 13:05:27 -07:00
Chaitanya Pratapa
a5fbe3bdc5 msm: ipa: enable drop stats for USB/WLAN and DPL pipes
With HOLB monitoring, it is beneficial to enable drop
stats for USB and WLAN pipes. Also enable drop stats for
DPL pipe.

Change-Id: I24df7041a4056d2875f6b14d50ab52beb1459eeb
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-08-12 22:44:52 -07:00
Michael Adisumarta
c5ccae821e msm: ipa: rate limitting error logs
Rate limitting error logs in rndis_ipa file.

Change-Id: Iebd548df1a99553afdabb6375675576fe3776832
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-08-12 19:13:35 -07:00
Michael Adisumarta
8c28530134 msm: ipa: avoiding NULL pointer de-referencing
Avoiding NULL pointer de-referencing for an internal variable.

Change-Id: I9fa3bc24c747c7c04d1d64b29fc63677206252e0
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-08-12 14:33:52 -07:00
Ilia Lin
9d4ff10cc6 ipa: Cleanup after moving internal definitions
Removing the files copied from the kernel:
ipa.h
msm_gsi.h
ipa_fmwk.h
ipa_mhi.h
ipa_odu_bridge.h
ipa_uc_offload.h
ipa_usb.h
ipa_wdi3.h
ipa_wigig.h

and including the original files instead.

Depends-on: 3177533

Change-Id: I485f5545505bfbc4e775a75ae3d0809f9a977a97
Signed-off-by: Ilia Lin <ilial@codeaurora.org>
2020-08-12 10:37:35 +03:00
Ilia Lin
6cdcc3b5ab ipa: Fix debugfs tethering stats print
Currently the ipa_debugfs_print_tethering_stats()
prints values from zeroed buffer.

The ipa_get_teth_stats() has to be called only once,
and ipa_query_teth_stats() to fill the buffer.

Change-Id: I72e6db3c9f2c342e8b635341eee06795b2be9d67
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-08-06 15:25:30 +03:00
Sivakanth vaka
9d023aee86 msm: ipa3: Enable holb as part of usb suspend
When USB is suspended there are DL packets on consumer
channel leading to stall. to avoid the stall enabling
the holb as part of suspend and removing it in resume.

Change-Id: I08e2fe248ee675698da16b6df6aec8f109c73608
Signed-off-by: sivakanth vaka <svaka@codeaurora.org>
2020-08-06 10:38:31 +05:30
Ilia Lin
63f19cf561 ipa: Fix MHI channel resume after stuck GSI
If in the __ipa3_stop_gsi_channel all iterafions
of the gsi_stop_channel returned GSI_STATUS_AGAIN,
channel->stop_in_proc flag has to be set,
otherwise the teardown of the ipa_mhi_suspend_internal
won't resume this channel.

For that the return value of the gsi_stop_channel
has to be forwarded (in case no other errors exist).

Additionally ipa_mhi_resume_channels should check both
IPA_HW_MHI_CHANNEL_STATE_SUSPEND state
and stop_in_proc flag.

Change-Id: I369211456fa949f8c1869b577028ff44ed4e2c95
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-08-05 15:19:10 +03:00
Sivakanth vaka
00100fbf02 MDM:IPA3: Fixes issue with RNDIS and ECM suspend path
PM resources are released even when there are outstanding
packets leading to data stall hence resources are released
only when there are no outstanding packets.

Change-Id: I630737edfc9cadea1d8a99bdb6bb6fcbe76615d8
Signed-off-by: sivakanth vaka <svaka@codeaurora.org>
2020-08-05 16:10:30 +05:30
qctecmdr
9b22e915ef Merge "msm: ipa: Endpoint configuration and IPA driver changes for mannar" 2020-08-04 03:54:50 -07:00
Amir Levy
e45ddd2b4e msm: ipa3: fixed a dependency between tx-napi and LAN rx-napi
Fixed the if condition for enabling the NAPI netdev to init the netdev
if at least one of both features is enabled.

Change-Id: I14d454bf6eaa070a9ba5bab9e0b2d2f3bd4a8cf7
Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-08-03 02:51:33 -07:00
Armaan Siddiqui
9e91a1ef19 msm: ipa: Endpoint configuration and IPA driver changes for mannar
Added Endpoint configuration and IPA driver changes for mannar.

Change-Id: I7424faa1757e7cf81eb9387b63a153cd6b6e607b
2020-08-03 11:28:32 +05:30
qctecmdr
6234b61db8 Merge "msm: ipa: rate limit the error logs from IPA" 2020-08-02 05:29:30 -07:00