コミットグラフ

401 コミット

作成者 SHA1 メッセージ 日付
qctecmdr
780b631df3 Merge "msm: ipa: add rmnet_ctl enablement check" 2020-11-16 12:53:12 -08:00
qctecmdr
c69e51e13a Merge "msm: ipa: Fix mhi mutex unlock in mhi connect function" 2020-11-16 05:17:04 -08:00
Amir Levy
40fcad23c6 msm: ipa: add AQC support in ipa_eth client
Add AQC support in ipa_eth client framework.

Change-Id: I1eb17ebf02813d59977c8c792923e70f348c9ea9
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-11-15 22:52:32 -08:00
Amir Levy
ace2384057 msm: ipa: create ipa_client for ethernet
Create the ipa_client interface for ethernet offloading.

Change-Id: I8120b0cca9e42a75153fb1468dc1b8bcbd43484c
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-11-15 19:30:00 -08:00
Bojun Pan
6837550294 msm: ipa: add rmnet_ctl enablement check
Check rmnet_ctl enablement before print successful.

Change-Id: I22300d2d996847c64d23cb55ccb454866e75e0a1
2020-11-13 14:10:24 -08:00
Bojun Pan
a6248c0430 msm: ipa: add Q6 ep config for IPA_5_0
Add q6 ep configures.

Change-Id: I2bbe9ae5384ea79a299ea00e6161dd708e0f67a1
2020-11-13 13:20:35 -08:00
qctecmdr
acf7b17ece Merge "ipa: Fix teth and quota stats init stack overflow" 2020-11-12 10:33:49 -08:00
Ilia Lin
7b7e114c30 ipa: Fix teth and quota stats init stack overflow
The decs array allocated on the stack was smaller
than the following code required. Therefore the stack
memory after the array was overwritten.

Change-Id: Ife68f8eb98b775a88d3f3988f6f21d487a083cc4
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-11-12 16:00:59 +02:00
qctecmdr
91ea57fbe6 Merge "msm: ipa: Fix to remove duplicate proxy vote" 2020-11-12 05:24:34 -08:00
qctecmdr
e03000d1d9 Merge "msm: ipa: fix to delete napi tx object" 2020-11-12 03:30:46 -08:00
Chaitanya Pratapa
636249150c msm: ipa: fix to delete napi tx object
Make changes to delete NAPI TX object when pipe setup fails.

Change-Id: Ie7124fc9f996795b1a955166a9cae198f6a57f03
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-11-11 22:24:35 -08:00
Chaitanya Pratapa
90117c5d61 msm: ipa: Fix to remove duplicate proxy vote
In case if modem crashes even before uC is loaded, there is
a possibility that we hold the proxy vote twice and the clock
will not be disabled. Make changes to avoid duplicate proxy vote.

Change-Id: Id62994c79eff6868e3a491aa53963ec127ea1213
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-11-11 22:23:20 -08:00
Chaitanya Pratapa
cdca892ba0 msm: ipa: Fix to set holb discard
As part of HOLB monitoring, uc will clear the HOLB discard if
it was set as part of HOLB monitoring or it can clear if
peripheral recovers just before receiving HOLB_DEL command.
Make change to set HOLB discard back if it was intended to be
configured from AP as part of disconnect scenarios.

Change-Id: I6659a62499150844c3b540fadb4ba8b9535f5e45
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-11-11 22:21:16 -08:00
Chaitanya Pratapa
948fe7a1d8 msm: ipa: disable status on ODL_DPL_CONS pipe above IPAv4.5 targets
ADPLv3 targets do not require status to be enabled on ODL_DPL pipe.
Make changes to disable the status for targets with IPAv4.5 and above.

Change-Id: Ica07a25a01e742928d3ecb19a88b7ee2305235ae
Signedo-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-11-11 22:19:34 -08:00
Michael Adisumarta
ce5030647d msm: ipa: Fix mhi mutex unlock in mhi connect function
Move mutex_unlock in ipa_mhi_connect function to unlock on the last
goto statement to prevent deadlock.

Change-Id: Ib524d726ac45000da65114b48f8650c8025e44b9
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-11-11 13:08:35 -08:00
Akshay Pandit
97c75c42b9 msm: ipa: device assisted low power states support in IPA
This change supports device assisted low power modes -M1/M2 states
in IPA. For M1/M2 states, GSI is continued to be in poll mode where
as for M3 state GSI is moved to doorbell mode.

Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2020-11-11 04:57:13 -08:00
qctecmdr
cf817b5009 Merge "msm: ipa: fix the return on pipe setup when rmnet_ctl disabled" 2020-11-11 01:07:37 -08:00
Bojun Pan
e83d8c37ae msm: ipa: fix the return on pipe setup when rmnet_ctl disabled
return 0 instead of -ENXIO when rmnet_ctl disabled.
If we give error return to egress ioctl, ingress ioctl
is not even getting called anymore.

Change-Id: I948daa6ccb46a87b36eb3bc54c0f62d67546624c
2020-11-10 20:59:35 -08:00
Bojun Pan
4e0fc6cbf8 msm: ipa: add state for rmnet_ctl tx/rx pipes
When ssr happen in middle of egress ioctl, only tx pipe is setup
and the current state in teardown cannot handle it.
The fix is to add state for tx/rx setup separately.

Change-Id: I0eb4011ce91139acce3a619a8179d84066873953
2020-11-10 19:49:53 -08:00
qctecmdr
310ed2e912 Merge "msm: ipa: ioctl to receive mac addr list and parental control flag" 2020-11-09 05:52:41 -08:00
qctecmdr
7239de2c11 Merge "msm: ipa: interface to provide pdn configuration" 2020-11-09 03:05:09 -08:00
qctecmdr
a88b4a4d0c Merge "ipa: MHI: Fix CH Scratch & MHI testing" 2020-11-05 04:31:44 -08:00
Ilia Lin
3d32099b40 ipa: Fix drop stats init stack overflow
The decs array allocated on the stack was smaller
than the following code required. Therefore the stack
memory after the array was overwritten.

Change-Id: Iedf2947489c657d7c5e05ab2c756f6a5da39d5e5
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-11-04 10:23:48 +02:00
Sivan Reinstein
29f6c65440 ipa: MHI: Fix CH Scratch & MHI testing
Fix MHI channel scratch struct and fix MHI testing

Change-Id: I764b11435af3d0cff2fead8a750d22136c7f1ee7
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-11-03 08:03:17 +02:00
qctecmdr
fdec5444de Merge "gsi: HAL fix GSI_IRQ_STTS parsing function" 2020-10-20 06:20:05 -07:00
qctecmdr
6d862df13a Merge "gsi: HAL fix WDI3 MSI address set" 2020-10-20 05:55:00 -07:00
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
Sivan Reinstein
f462f1ef9d gsi: HAL fix GSI_IRQ_STTS parsing function
Fix GSI 3.0 HAL to use GSI_IRQ_STTS parsing function

Change-Id: Ibdf5a4b995f999400ee9d2e71f742b3bec03df81
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2020-10-19 16:59:11 +03:00
qctecmdr
410b2231ca Merge "ipa: Fix drop count mask register name for IPA 5.0" 2020-10-15 18:10:01 -07:00
qctecmdr
dfd091481a Merge "ipa: napi_schedule only after subsys_init" 2020-10-15 13:34:43 -07:00
qctecmdr
01e242c631 Merge "ipa: Add late init module" 2020-10-15 13:09:42 -07:00
Ilia Lin
99fa34146b ipa: Fix drop count mask register name for IPA 5.0
The IPA_STAT_DROP_CNT_MASK_n is deprecated in IPAv5.0.
Changing it to IPA_STAT_DROP_CNT_MASK_EE_n_REG_k.

Change-Id: I6435af7fdb2140f633696b7644aaa7af05e73acf
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-15 21:09:40 +03:00
Ashok Vuyyuru
79aca73c33 msm: ipa3: Send enable force clear only for producer pipe
Enable forceclear only supported for producer pipe so
avoid sending the force clear command to consumer pipes.

Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Change-Id: I850f360f18c6598af6914c9cd2c89cacad1ac4c9
2020-10-14 14:40:15 +05:30
Chaitanya Pratapa
e4a682ff2d msm: ipa: Fix rndis client disconnection gracefully
if there are packets coming from rndis client to device
IPA driver tries to gives those packets to network driver.
If at the same time USB disconnection is in progress, there
can be a possibility of race where callback is called with NULL
private data and it can result in a undefined behavior at client
driver. Make changes to add proper checks to handle the scenario
gracefully.

Change-Id: I7b3a5731ae21362dc67c53a2de464b17a223d4ba
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-10-13 10:24:23 -07:00
Bojun Pan
1022df8dfa msm: ipa: Fix setting disconnect in progress flag
When USB is disconnected USB driver deregisters callback
with IPA driver. If there are exception packets coming to USB
driver at the same time there is a possiblity of race condition
where callback is de-registered and IPA driver tries to access it.
Make changes to restrict the callback access when disconnect is
in progress.

Change-Id: I85d2876847bfd0b23f19b2b81e1aab68729b2e31
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-10-13 09:25:46 -07:00
Ilia Lin
3deeace86e ipa: napi_schedule only after subsys_init
In case napi_schedule() called before the net_dev_init(),
which is called sometime in the subsys_initcall,
the napi_schedule() call will cause null pointer dereference.

This change sets dependency on passing the subsys_init for
the napi_schedule() calls.

Change-Id: I5688a845d98d8939e0d5df7efb8e1d293b19a37e
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 08:08:43 -07:00
Ilia Lin
bccb3c099f ipa: Add late init module
Some init operations may cause race within initcall.
To avoid that race, those operations have to be postponed
till later initcall (fs_initcall for now).

This change introduces the ipa_late_init module, which (for now)
will take care of RMNET platform driver registration,
which would have caused race with core net_dev,
if was called in the subsys_initcall.

Change-Id: I9664c3ea67fc2e758979bbf744cabc476176b57d
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-10-08 08:08:33 -07: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