29 Commits

Author SHA1 Message Date
Michael Adisumarta
b93fa59fba 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>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
2024-06-15 15:31:07 -03:00
Michael Adisumarta
8aded3de2b msm: ipa: Add IPv6 NAT uc activation interface
Add IOCTLs for adding and deleting uc activation entries.
Amend Socksv5 add\delete entry algorithm to allow IPv6 NAT
and Socksv5 entries to co-exist in activation table.
Add debugfs entry to dump uc activation table.

Change-Id: I5382a393cb2890cd6c6ee4dc73eadf16c603294a
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-08-09 18:26:12 -07:00
Shilpa Suresh
99cfd27ba3 usb: gadget: f_qc_rndis: Add RNDIS support using IPA over BAM2BAM
On some targets RNDIS function uses BAM to BAM transport,
and is handled by the f_qc_rndis driver. This change
adds RNDIS support using IPA over BAM2BAM.
This is snapshot of the qcrndis driver as of msm-4.9
'commit e4c6a37f8770697d4 ("msm: vidc: avoid OOB
write while accessing memory")'.

Change-Id: I34e9ab6ca25ea515a36ffd54216a09177e5fa746
Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
2020-05-01 13:44:02 -07:00
Sivakanth vaka
c16ceb28b4 ipa3: msm: Standalone CV2X changes
remove QMAP aggregation to Support Cv2X on WAN
pipe by for standalone usecases.

Change-Id: Iea68c9428ec653f192ec03e4a03da1556a77f5fe
Signed-off-by: sivakanth reddy vaka <svaka@codeaurora.org>
2020-04-23 12:56:10 +05:30
Praveen Kurapati
74e5f415b8 msm: ipa2: Add changes compatible to kernel-4.14
Add following changes,
	- Include dependent files.
	- Handle buffer recycling in new kernel.
	- Add WLAN endpoints for IPA_v2_6.
	- Fix indentation errors.
	- Add structure, api changes in QMI files compatible
	  with kernel 4.14.
	- Add changes to support late clk initialization.
	- Add IPA_v2_6 support for platform probing.
        - Add locking mechanism as per the new kernel.

Change-Id: I6f153398f9a11026744c076a67a609cf7af807ba
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2020-03-18 16:20:42 +05:30
Skylar Chang
f0d996ce83 msm: ipa3: add support on socksv5 offload
Add the support to create ipa-uc activation
table and pass the index to user-space module
to configure the v4nat/v6ct rules associated
with the uc-activation table index.

Change-Id: I14b4007dd80b64fb4a151b6b1413bea0c3a468f6
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2020-02-26 10:44:21 -08:00
Skylar Chang
afc7773d10 msm: ipa3: add support on sockv5 info
Add the header file changes for socksv5
info passed from other modules.

Change-Id: Ifa0d37fe09931969dd616c585ee1f08a86827b84
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2020-02-20 11:37:07 -08:00
Ashok Vuyyuru
4864c2459c msm: ipa4: Add changes to support PCIe addr for WDI2 over GSI
Add changes to support PCIe addr for WDI2 over GSI

Change-Id: I9084e735b5eb4a75cefc2daeaa22340a5014b2b4
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-02-18 10:57:09 -08:00
Mohammed Javid
cd6fd44586 ipa: Add support in ipa-usb driver for rmnet_cv2x
Only one RmNET instance is supported till now, so
there was a check to not to support additional
protocol in ipa usb driver.
With respect to auto use case requirement we need to
support two rmnet instance, newly added rmnet_cv2x
along with legacy rmnet.
Modify code to support additional rmnet_cv2x teth
interface with respect to protocol, pm states.

Change-Id: I83984de859919a395f1115c8e2a37004d01f0688
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2019-11-28 22:30:36 +05:30
Jia Ding
c6a9c55671 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: jiad <jiad@codeaurora.org>
2019-11-14 22:15:03 -08:00
Amir Levy
7f0ef3a814 msm: ipa: Add dummy API to check if NAPI LAN rx is enabled
For clients who use IPA LAN rx data path we added our API
to see if we have NAPI enabled. This feature is only enabled
in later versions of the kernel but the API is to support it
moving forward.

Change-Id: I6cdac1d2aa01fc28916a6adad8ecfc8a2bcc7b65
Acked-by: Tal Gelbard <tgelbard@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2019-10-31 11:41:46 +02:00
Bojun Pan
bb1c6d45a2 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-09-29 19:01:55 -07:00
Bojun Pan
4368ab748e msm: ipa: Page recycling on WAN DL data path
Enable the page recycling on IPA WAN DL data path.

Change-Id: I25856082f51fd348e3331ebb031e422a1e627143
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-08-02 15:42:05 -07:00
Bojun Pan
1f626a6184 msm: IPA: FnR stats for IPA4.5
Update the FnR stats related changes for IPA 4.5.

Change-Id: I3f34b5d58862636cba39cff3403102fb7884f769
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2019-04-04 20:31:38 -07:00
Michael Adisumarta
78ca7a0f80 msm: ipa: include file changes fo MHI PRIME channels support
This change enables MHI PRIME channels for IPA tethering
offload support.

Change-Id: Ie92ee012f4aebf2f687237e26b035efecdcfcfe8
Acked-by: Jyothi J <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2019-03-18 11:26:18 -07:00
qctecmdr Service
cef5732668 Merge "msm: ipa: Checksum validation changes" 2018-11-21 12:32:07 -08:00
Michael Adisumarta
ad61e412ab msm: ipa: IPA coalescing changes
Support new IPA coalescing pipe IPA_WAN_COAL_CONS. If coalescing
is enabled, this pipe will become the default pipe and be setup with
its own transfer ring but share an event ring with WAN_CONS. Also adds
a new coalescing ifdef and support coalescing in the RT rule.

Change-Id: I4d09aaa030c427271f59461897354e3a7cf7a563
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2018-11-21 10:33:20 -08:00
Michael Adisumarta
ddcc96409e msm: ipa: Checksum validation changes
Change DL/UL WAN pipe configurations for CS offload.
Add new 8 bytes qmap header for DL CS offload.
Add a CS offload enum for QMAP_DL cS offload.

Change-Id: If23ed20a797db143da6dca61fa4c3080a347af1d
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2018-11-21 10:31:35 -08:00
Skylar Chang
87874f76c6 msm: ipa: pass napi struct from rmnet_ipa
Instead of passing events from IPA driver to Rmnet IPA
to control napi operations, Rmnet_IPA passes the napi
struct to IPA driver and IPA driver controls it directly.
This allows flexibility to call any napi APIs from IPA driver.

Change-Id: I3bd82cb6ad28b7663b8209c32f855ddb62e16e52
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2018-10-05 17:49:36 +05:30
Ghanim Fodi
8e8789e544 msm: ipa: Adapt EE area registers for IPA4.5
Adapt EE area IPA registers to the H/W changes
at IPA version 4.5. This includes e.g. the IPA
interrupt registers.

CRs-Fixed: 2303588
Change-Id: If8ad2fafb0cca0e591c40105a17dcb5c9e2a5256
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2018-08-28 12:37:29 +03:00
Ghanim Fodi
f694d1437e msm: ipa: Update header register configuration for ipa4.5
IPA4.5 introduce changes to IPA headers register configuration.
Length, size and offset fields now are wider and utilizes more
bits across the different register. This change adapt the
configuration accordingly.

CRs-Fixed: 2303588
Change-Id: Ib0d2c30519d8bc12bc1bf0a6ee82ad6388c7173c
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2018-08-27 05:59:52 -07:00
Ghanim Fodi
740bdf6543 msm: ipa: Support IPA4.5 new time scheme
IPA 4.5 time scheme changed to the following:
* Time-stamps are now based on QTIME component.
It is chip level component and keeps ticking even
if IPA is power collapsed.
* Time Counters now works with different discrete
granularity configurable levels based on XO clock

CRs-Fixed: 2291180
Change-Id: Idb5d9d37156c0f1d1f6700baa928f78c30b0769d
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2018-08-06 13:43:13 -07:00
Ghanim Fodi
1e7108411c msm: ipa4: Add IPA endpoints mapping for IPA 4.5
Add IPA endpoints mapping for regular case and MHI
case. For each EP, configure resource group
filtering capability, sequence, QMB, EE, GSI channel,
TLV/AOS and GSI smart prefetch info.

CRs-Fixed: 2275215
Change-Id: I0905d5937ca3d15fabb2d144ce62592145db7caa
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2018-07-15 01:32:27 -07:00
Skylar Chang
269ece2489 msm: ipa: support ipacm cleanup
Support header/filter, routing rules
cleanup when user-space module
crashed like ipacm and also cached
the wlan client connect messages
for ipacm to query.

Change-Id: Ib09cbe0e9114aa5a5673898ff796de7e7944af35
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2018-06-25 10:37:30 -07:00
Mohammed Javid
33df1ca75d msm: ipa3: Added support for ipa 4.2 needed for SM6150
Add new registers and update old registers along with
tables/functions associated with those register to support
ipa 4.2 that is present in SM6150.

Change-Id: I17ae10aa8fe45b774b16b731334c8d3fe13a89e5
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-06-02 00:01:57 +05:30
Amir Levy
8853713d2e msm: ipa4: add IOCTL for reading vlan mode
Add IOCTL for reading LAN interfaces VLAN mode from
user space.

Change-Id: I85634b21adf2b1b79feb1b282597289e89ad1df1
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2018-05-06 16:38:33 +03:00
Michael Adisumarta
0f3ae5fe11 msm: ipa: msm-4.9 propagations to msm-4.14
Propagation of msm-4.9 changes to kernel msm-4.14
upto 5437fc31d957f681a8ce31af74ff3e4cff769b37.

Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Change-Id: Iae70e9682dc16fd6c443191a03c70a8ff4baed69
2018-01-18 12:01:45 -08:00
Michael Adisumarta
251e0b51ab msm: ipa: Compilation errors fix when IPA config flags not enabled
This change fixes a compilation error with missing semicolon
and having an used function when the config flag CONFIG_IPA3
is not enabled for SDM855.

Change-Id: Ic5a51c548c55ce8fb2a83cf22944484e445e31f2
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2017-11-21 19:12:59 -08:00
Michael Adisumarta
c29d902067 msm: ipa: Add snapshot of IPA driver
This is a snapshot of the IPA driver as of msm-4.9
commit '089d1cb5176d3cf8a99eb744027c11b91dba00c9'.

Change-Id: If7d19da967c2851c56b971769d6ff2c38f07465f
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2017-11-15 16:23:09 -08:00