14 Commits

Author SHA1 Message Date
Jinesh K. Jayakumar
e2c9598d2b msm: ipa: eth: Register upper interfaces with IPA
In certain modes of IPA operation (Ex. VLAN, MACSec, etc.), the upper
interface can be chosen by user space as the primary network device for
LAN management. Register IPA interface properties for immediate upper
interfaces in addition to the real interface.

Change-Id: I2b8c9f9e1ccfddaa0ff23fff16c331f0378ac1f3
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2020-03-16 11:26:57 -07:00
Jinesh K. Jayakumar
c793c3bd89 msm: ipa: eth: Enable support for IPA LAN Rx in NAPI poll
Enable support in IPA ethernet offload sub-system to receive IPA LAN Rx
packets from within NAPI poll context.

Change-Id: I6e91b643c0f6ebd7895ab9140c39d4bcd0e72335
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2020-01-28 06:12:05 -08:00
Jinesh K. Jayakumar
f09e896386 msm: ipa: eth: Support for deleting default filter rules
Add ipa_eth_ep_deinit() for deleting default rules during offload path
deinit.

Change-Id: I083c37cc8e6e902a8bb6abede4972c9a793c8c7c
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-11-05 08:32:04 -08:00
Jinesh K. Jayakumar
098d8066b6 msm: ipa: eth: Remove partial headers during deinit
Add support in IPA offload sub-system to remove partial headers during
deinit of the offload interface.

Change-Id: Ibc9a5bc9605106aa6b238b6652a1ff4e22859498
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-11-05 08:31:21 -08:00
Jinesh K. Jayakumar
e45f73da6c msm: ipa: Concurrency support in offload sub-system
Add support for concurrently executing API calls into the offload
sub-system from network and offload drivers while handling events
arising from different sub-systems (network framework/drivers, PM
framework, IPA driver, PCIe framework, MSM PCIe bus driver, panic
notifier and debugfs) in a safe manner.

Change-Id: I48257effe7b745e0a148fd85dc0cbb0c7f0ff58d
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-09-25 14:48:36 -04:00
Jinesh K. Jayakumar
0a054dfc4c msm: ipa: Add support in offload sub-system to handle netdevice SSR
Add support in IPA offload sub-system to receive device reset events
from network driver and perform offload path reset.

Change-Id: Ie58c5f4dc7c24e22c40b3eccd032382e9a110835
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-09-11 16:29:26 -04:00
Jinesh K. Jayakumar
ae65b03f87 msm: ipa: Enable support for dynamic loading of clients
Enable support in IPA ethernet offload sub-system to permit its
client drivers to be loaded dynamically.

Change-Id: I5db7164b57f3528c2d0c0ab1d150ba06c4c381e1
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-08-04 17:08:50 -04:00
Jinesh K. Jayakumar
8d8dbb541b msm: ipa: Support for offload autostart in offload sub-system
Add support in IPA offload sub-system to automatically start offload for
its clients upon either wake up from suspend or timer expiry.

Change-Id: I2f3d83675eaa4d4b2a60461cd6ad259f663f30bb
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-08-01 23:27:14 -04:00
Jinesh K. Jayakumar
7f34cbab70 msm: ipa: Add support for crashdump in IPA offload sub-system
Enable support in IPA offload sub-system to call into network and
offload drivers to collect device registers during a kernel panic.

Change-Id: I35b1b84d29716f78f19606a3603447df1cfd0c6b
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-07-02 12:10:01 -04:00
Jinesh K. Jayakumar
0f39dc7fd4 msm: ipa: Add support for memory allocator in offload sub-system
Add support for offload and network drivers to use custom memory
allocators for allocating channel and descriptor memory.

Change-Id: I764d96fa80222e6bae14a30240fc45d60b2691a1
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-06-06 15:49:48 -04:00
Jinesh K. Jayakumar
44dc2017c6 msm: ipa: Use work queue for refreshing offload devices
Performing offload init from uC ready callbacks can cause dead locks when
commands need to be sent to IPA uC since the callbacks are executed from
uC response handler itself. Use work queue in the offload sub-system for
performing offload device refreshes.

CRs-Fixed: 2438237
Change-Id: I15b3c088349088cbbf42892835175b74ef42849f
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-04-18 23:57:18 -04:00
Jinesh K. Jayakumar
bd09b9c3a4 msm: ipa: Add descriptor size and count to ipa_eth_channel
Add descriptor size and count fields to ipa_eth_channel.

CRs-Fixed: 2304918
Change-Id: If52b356f97cda4e072a3454740b99060191b0935
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-03-18 01:09:07 -04:00
Jinesh K. Jayakumar
a114e44ff2 msm: ipa: IPC logging support in ethernet offload sub-system
Add support for IPC logging for use by IPA ethernet offload sub-system
and its clients.

CRs-Fixed: 2304918
Change-Id: I8d1336b5136add26f3652f3d3a055291b6c95d35
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-03-18 01:06:04 -04:00
Jinesh K. Jayakumar
5a3f22c957 msm: ipa: IPA offload subsystem for ethernet devices
Add IPA offload subsystem for offloading PCI based Ethernet devices
to IPA.

CRs-Fixed: 2304918
Change-Id: I2752371d58b95a4177acad8e5e8639a6ea987d09
Signed-off-by: Jinesh K. Jayakumar <jineshk@codeaurora.org>
2019-03-06 16:33:06 -05:00