26 Commits

Author SHA1 Message Date
Krishna Nagaraja
fd3f99504d msm: ipa: Add support for Private IP Forwarding
Changes for new uCP commands, and IOCTL to support this feature

Change-Id: Idd7de3f18fc557b54b3c2d965802065b3f6dd982
Signed-off-by: Krishna Nagaraja <quic_krisnag@quicinc.com>
2024-01-31 15:08:32 +05:30
Michael Adisumarta
833f1ea3b0 msm_rmnet.h: Add new ioctls for rmnet to reg/unreg for notification
Add new ioctls for rmnet to reg/unreg for yellow water mark hit
notifications.

Change-Id: Ib1162213e8fc463efaaa1149330e889110dc3dab
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-10-20 11:19:39 -07:00
Michael Adisumarta
d75403bb07 msm: ipa5: Adding rmnet_ll module APIs to ipa_fmwk
To support 2 new low latency data pipes for LA.

Change-Id: Icb001633adcf379d752371d83c55b76193452df8
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-04-13 18:00:24 -07:00
qctecmdr
bfd929085d Merge "msm: ipa: IPAv5 ULSO" 2021-02-25 22:06:54 -08:00
Amir Levy
1e52b5bfc0 msm: ipa: IPAv5 ULSO
Adding struct definitiond and updating
existing definitions.

Change-Id: I3c894c4a26f7165ca342b5ccb5aa441c7862d094
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-02-24 11:03:15 +02:00
Piyush Dhyani
af46da5732 msm: ipa3: Adding IPA defconfig WLAN dependent on this flag
Adding changes to enable IPA defconfig for WLAN.

Change-Id: Ibe944dc00e0fdda8b823bad2abd2e7e0fb330264
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-02-19 13:46:53 +05:30
Michael Adisumarta
b2340800e8 msm_rmnet.h: Add new ioctl to add any number of parameters of any size
This also includes new extended ingress-egress ioctls for configuring
system pipe.

Change-Id: I96f3d57037f32e1f904737439cacc8026f7cdb1f
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-01-29 12:19:36 -08:00
Chaitanya Pratapa
f87dd2902a msm: ipa: add mechanism to configure aggregation timeout
Make changes to configure aggregation timeout for WAN/LAN and
RNDIS pipes to support low latency use cases.

Change-Id: I58d5c99cd1672f184ca2c8f55b5ecdd399804184
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-01-15 23:06:07 +05:30
Bojun Pan
48017f137f msm: ipa: enable more SIDs
Enable SMMU on eth/eth1/wlan1 SIDs.

Change-Id: I3b96e6cf89817f47b6b9fb4501f7e8c6bffcde14
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2021-01-12 11:38:40 -08:00
Armaan Siddiqui
d3634cfade msm: ipa3: add support on sockv5 info
Add the header file changes for socksv5
info passed from other modules.

Change-Id: I24c0bbb3344fd97d0468a78b9d5fa95f05fbe198
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2020-12-03 12:07:09 +05:30
Mohammed Javid
a604ebfe67 msm: ipa: CV2X header file changes
For QMI dpm port to open, control manager needs
to know about usb/mhi ep details corresponding to
RMNET and RMNET_CV2X tethering.
IPA driver has all endpoint info at one place.
 - provide IOCTL interface to get ep_pair info.
 - Add support for new dtsi entry specifying auto config.
 - Add support in ipa-usb driver for rmnet_cv2x.

Change-Id: Ia5ec0df955ef7794ca992129dab538f65af36211
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2020-11-20 12:28:18 +05:30
Amir Levy
7d0bf74852 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-08 10:44:48 +02:00
Pooja Kumari
f7cc520c67 msm: ipa4: Add changes to support PCIe addr for WDI2 over GSI
Add changes to support PCIe addr for WDI2 over GSI

Change-Id: I6021ea79a44c0981cf2656de2976574f7ce79f7d
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2020-10-04 06:15:21 -07:00
Ilia Lin
682c5acff2 msm: ipa: IPAv5 updates
Add IPAv5 HW definitions and update structures

Change-Id: I9991ba7be9dbbcb009b901f55c32e223d20b8c31
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2020-08-31 23:35:32 +03:00
Ilia Lin
da9aa3e8ae msm: ipa: Move internal definitions to the techpack
Moving the defines used only internally from the global files:
ipa.h
msm_gsi.h

Moving completely the following files from the kernel tree:
ecm_ipa.h
rndis_ipa.h.

Change-Id: Ia55050c2f0b27587459b6d95368f278281329809
Signed-off-by: Ilia Lin <ilial@codeaurora.org>
2020-07-29 01:35:58 -07:00
Amir Levy
2926b2b8d0 msm: ipa: Add more ipa API to ipa framework
Add IPA framework support for the following ipa clients:
ipa_wdi3
ipa_gsb
ipa_uc_offload
ipa_mhi
ipa_wigig
this comes as an addition to ipa_usb support.

Add all remaining IPA core driver API functions.
remove internal functions from ipa.h header file.

Change-Id: I03ac94c351649c7c59a3894e6e18bb504d488af9
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-06-23 09:41:56 -07:00
Bojun Pan
95c177f166 msm: ipa: 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 rndis.
 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 rndis as well based
on recommendations.

Change-Id: Iad1c816bf3371696bf665a8702fcf27490e230d0
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-05-11 12:27:13 -07:00
Bojun Pan
4aa37836f1 msm: ipa4: function prototype for new qmap flow control
Add new function prototype for rmnet_ctl module to support new
qmap flow control with new IPA pipes.

Change-Id: I5b2cfa5c7575dc67096cc11fd74402946fb71617
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-03-25 14:25:09 -07:00
Amir Levy
26fe8fee6f msm: ipa: create ipa framework
IPA driver is moving to teckpack.
create a thin kernel framework for IPA driver that will
allow dependent drivers to dispatch IPA APIs from teckpack.
Disable IPA and GSI kernel drivers compilation. This change
comes in parallel to IPA and GSI drivers enablement in teckpack.

Change-Id: I35f2918b935423637e21d6f871a113dc0224f878
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-02-26 01:27:47 -08:00
Jia Ding
35a816d085 msm: ipa: fix ipa_disable_apps_wan_cons_deaggr declaration
ipa_disable_apps_wan_cons_deaggr() has different declarations when
CONFIG_IPA or CONFIG_IPA3 are not set. Thus fix the declaration to
align with CONFIG_IPA or CONFIG_IPA3 enabled one.

Change-Id: Ic09cac2484c9cfbcd0833583c05c6fc19a3c2aed
Signed-off-by: Jia Ding <jiad@codeaurora.org>
2020-01-06 13:34:53 -08:00
Bojun Pan
fd4caf0f73 msm: IPA: uC debug stats for loadable modules
Add uC debug stats support for AQC/loadable modules.

Change-Id: I21cd3807c8e8973065b79f4ec43a0da382595653
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-12-30 15:20:31 -08:00
Bojun Pan
b8aa4a8d4d msm: ipa: Update IPA register offsets and fields
Update offsets and fields for basic IPA registers in IPA4.9 -IPA_CFG,
IPA_DEBUG and IPA_EE modules.

Change-Id: Icf1511f74e5c1f75c6da71df22df3bb955b53ca3
Acked-by: Priyadarshini Rajagopal <prajagop@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-12-15 12:11:16 -08:00
Ghanim Fodi
92bb3a5b57 msm: ipa: Adapt IPA driver to several DLKMs
Arrange driver to be separated into several DLKMs
per functinalities. Adapt the Makefiles,
add needed EXPORT_SYMBOLS(), and replace #ifdef X
to #if IS_ENABLED(X) to capture module state.

Change-Id: I5cc0a7c43358e3caa099cb3e9968b0837753972c
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2019-11-19 14:04:29 +02:00
Bojun Pan
d45037d3ca msm: ipa: Enable NAPI on IPA LAN CONS pipe
LAN RX optimization, change LAN RX data path bottom half
to run in softirq using NAPI. Also added an API for other
clients to see if we are using NAPI.

Change-Id: Iecd47f7412975b58786d81a5df3460de9aeffa21
Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-11-05 07:43:52 -08:00
Skylar Chang
566b07e021 ipa3: add hasting AP+STA quota/stats support
Add uc event ring to have ipa-uc monitor the
quota and bw-voting threshold to generate the
irq to ipa-driver to inform if quota or and bw
threshold is hit.

Change-Id: I7ce9c1a0048016fc6b6248a1632365f51717422c
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2019-09-26 10:55:19 -07:00
Bojun Pan
329744721f msm: ipa: Add snapshot of IPA driver
This is a snapshot of the IPA and GSI drivers
from msm-4.19 to msm-lahaina as of
'commit <2df7c68f038d13a4d278ecd858bc5ccebb3f569b>
(Merge "sched/core: fix possible out-of-bounds
access in updown_migrate_value)'.

Change-Id: Ie654ca46181248854ddc33c3033b5808aa32e628
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-09-06 01:15:38 -07:00