Commit Graph

688 Commits

Author SHA1 Message Date
Ilia Lin
593bccb51c ipa: Fix dangling HPC entry rndis/ecm composition switch when
ULSO enabled in dts

Rndis/ecm use hpc based header insertion for ulso. HPC entry and
a linked header entry are added on init and removed on destruction
of rndis/ecm. Previously, the HPC entry was left dangling, pointing
to a deleted header entry.

Change-Id: I59ed7ed5ee8b3dd012f3b7d4104370dd6deac60a
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-07-06 10:28:26 +03:00
qctecmdr
eec24e2539 Merge "ipa: Fix overflow in header deletion" 2021-07-02 19:08:25 -07:00
Perry Randise
80b50ead8c msm: ipa3: EoGRE feature fix
Three functional changes:

1) Eogre to uC header corruption (ie. first byte) fixed with this
   change by adding the DUMMY consumer to the IPA's endpoint
   configuration.

2) Removed the ethernet conditional from the reconfigure ep metadata
   reg to override mux-id.

3) Added IPA_PROC_CTX_TLV_TYPE_HDR_ADD tlv back to the
   IPA_HDR_PROC_EoGRE_HEADER_REMOVE process context message.

Change-Id: I08a1af3156724f965ccad5a6c1026ef2e62bc063
Signed-off-by: Perry Randise <prandise@codeaurora.org>
2021-06-30 14:08:40 -04:00
qctecmdr
fc361c9655 Merge "msm: IPA: NTN3 offload BU: modify interrupt moderation values" 2021-06-29 22:31:58 -07:00
Ilia Lin
1b186d274b ipa: Fix overflow in header deletion
During header deletion, if there is a HPC referencing to a header,
and the header is deleted, the later commit will cause
writing garbage values to the HW during commit.

Also adding more security checks in the same flow.

Change-Id: I1f2e42673f030aca622c2b232ac5d463fefc485f
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-06-29 09:50:40 +03:00
qctecmdr
3861667798 Merge "msm: ipa: remove condition to avoid crash in wrap around case" 2021-06-28 21:39:23 -07:00
Ilia Lin
4a9b74c041 msm: IPA: NTN3 offload BU: modify interrupt moderation values
Modify the values used for Tx tail pointer update per completion.

Change-Id: Id6ed8e9d7ca05a8b8611407f05c69633d09a9c82
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-06-28 16:38:48 -07:00
qctecmdr
eb16241db6 Merge "msm: ipa: fix the double free for the queue transfer failure" 2021-06-24 16:12:23 -07:00
Michael Adisumarta
a723c6dc69 msm: ipa: remove condition to avoid crash in wrap around case
Rbase ptr and wp can be same in wrap around case, due to which
channel allocation fails and crash occurs.

Change-Id: I3546d77a0c41ea3fc5c86703bc79e6932af35404
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-06-24 12:48:41 -07:00
qctecmdr
cc367777e8 Merge "msm: ipa: configure right HPS DPS sequence for QDSS PROD" 2021-06-23 16:18:31 -07:00
Michael Adisumarta
5ca2645be4 msm: ipa: fix the double free for the queue transfer failure
Fix the double free cache for the queue transfer failure.

Change-Id: Ife6abe3f4c06e6fc5c5ac15544f040d5c8cc831d
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-06-23 12:56:20 -07:00
Skylar Chang
c0beeec184 msm: ipa3: fix the debugfs events
Fix the event counts from ipa-driver
to ipacm.

Change-Id: I4bd5f6deaa472bb49a7f34c20200f85323635bcf
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2021-06-22 05:12:35 -07:00
Ilia Lin
1d099c8f21 msm: IPA: ULSO LAN USB - ECM driver change
Support for ULSO LAN USB use case in ecm datapath.

Change-Id: Ia58e95a38f7fef660c37ba73e2a271076df1ff18
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-06-21 18:55:38 +03:00
qctecmdr
33a35a879d Merge "msm: ipa3: Support usb config in pcie mode" 2021-06-18 15:37:11 -07:00
Michael Adisumarta
e0ce40402b msm: ipa: configure right HPS DPS sequence for QDSS PROD
Configure right HPS DPS sequene for QDSS PROD pipe and
configure correct channel property.

Change-Id: Ib06b30b1a12a84962fe260fa36c7e5392ef1439a
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-06-18 14:26:56 -07:00
qctecmdr
2c05da96d9 Merge "ipa3: mpm: remove WARN_ON for security concern" 2021-06-17 17:56:36 -07:00
qctecmdr
504e7ce320 Merge "msm: ipa3: msm: ipa: Update metadata register for ETH" 2021-06-17 03:54:06 -07:00
Pooja Kumari
9b1f0b387e msm: ipa3: Support usb config in pcie mode
Defines new ep config of usb in pcie use case.

Change-Id: I5041c825cef73a0f769b5a219fa25e31590ed41b
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2021-06-17 13:29:08 +05:30
qctecmdr
2eb2091087 Merge "msm: ipa: Add change to fix out of bound access issue" 2021-06-16 22:29:12 -07:00
qctecmdr
f7c5db45dd Merge "msm: ipa3: dynamic change ul/dl ring/aggre/uc-threshold" 2021-06-15 16:31:51 -07:00
Skylar Chang
98048ef0cb msm: ipa3: msm: ipa: Update metadata register for ETH
Update metadata register to pick up metadata value with vlan id
from header of packets for AQC and RTK pipe.

Change-Id: I336adb6fac3c4a633ea5eea802097c4cdecf9e1f
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2021-06-14 22:18:05 -07:00
Michael Adisumarta
b08436c840 msm: ipa: disable rmnet_ll and rmnet_ctl flags for APQ
Disabling rmnet_ll and rmnet_ctl init on APQ target.

Change-Id: I070f362f0eb1ad1c51dc34cdb0eb772c250fc9f9
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-06-14 15:57:00 -07:00
qctecmdr
ecde2909f3 Merge "msm: ipa3: Fix IPA clk is not going to gated state." 2021-06-14 06:09:08 -07:00
qctecmdr
415c2978d5 Merge "msm: ipa: error handling check for flt table check" 2021-06-14 05:25:52 -07:00
qctecmdr
d96f1965a5 Merge "ipa: Fix HPC KW static analysis error" 2021-06-13 18:18:48 -07:00
qctecmdr
322ed51165 Merge "msm: ipa3: Added pdn config type check" 2021-06-13 17:04:53 -07:00
qctecmdr
b0c5084b4d Merge "msm: ipa3: Add check to avoid Quota indication for WLAN" 2021-06-13 16:28:01 -07:00
Praveen Kurapati
dd7d524777 msm: ipa3: Add check to avoid Quota indication for WLAN
Quota indication is not yet supported on WLAN Iface.
Add check to return if the request comes for WLAN Iface.

Change-Id: Ib183d0ed21a87f6f759af8d4e5bc4093dffd9374
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-06-10 09:34:24 -07:00
Michael Adisumarta
a33c3267ac ipa3: mpm: remove WARN_ON for security concern
Removing the WARN_ON on dmesg due to security
concern to expose device address, change to
use IPA_MPM_ERR in ipc logs for debugging
reference.

Change-Id: I73d5ba9ad43cb43c7eb89801e1131482310b8464
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2021-06-08 17:08:03 -07:00
Michael Adisumarta
8a8748f70f msm: ipa3: dynamic change ul/dl ring/aggre/uc-threshold
This change dynamically sets MHIP ring size ul/dl, aggregation
parameters, uc threshold from debug FS.

Change-Id: Ib189c50de86b01beebcac10c75e0afec56c8da42
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-06-08 17:07:17 -07:00
Michael Adisumarta
9cbd252bc9 msm: ipa: changing to sleep in the range during sdci reset
Changing the sleep range to 1010 - 1050 microsecond if
xdci reset is called after xdci stop.

Change-Id: Ic4aa4c98f61b45cd222b9021e46cc6c00857762c
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-06-07 20:15:46 -07:00
Piyush Dhyani
5403d2fe9f msm: ipa3: Fix IPA clk is not going to gated state.
Due to improper decrement of some IPA clients, the
active client count is greater than zero, due to
which clk not going to gated state. Now doing
proper decrement of those clients.

Change-Id: I57301cdfc34d48874d26fe0b0ee90913c5e6c44b
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-06-08 00:51:26 +05:30
Michael Adisumarta
1225463004 ipa: Fix resource group config for IPA_5_0_MHI HW
Update the QDSS node for IPA_v5_0_RSRC_GRP_TYPE_DST_DPS_DMARS
to the correct values.

Change-Id: Id9e46c5b24765b69d25501dd4fba12b8a13819be
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-06-03 23:45:21 -07:00
qctecmdr
ab5ba65d1e Merge "msm: ipa3: EoGRE feature" 2021-06-03 20:47:00 -07:00
qctecmdr
4e50a61fc3 Merge "msm: ipa : index mismatch fix for stats buffer" 2021-06-03 16:17:07 -07:00
qctecmdr
ed20a016bc Merge "msm: ipa: Don't return EAGAIN error " 2021-06-03 15:35:23 -07:00
Michael Adisumarta
706a1de8cc msm: ipa3: EoGRE feature
This feature will add support for the encapsulation of Ethernet VLAN
frames in IP/GRE on uplink, while also stripping IP/GRE headers on
downlink.

Change-Id: I33025405f7a5d738be3c86a6f5ec2fdfd4e37395
Signed-off-by: Perry Randise <prandise@codeaurora.org>
2021-06-03 13:51:05 -07:00
Ashok Vuyyuru
6c17392056 msm: ipa3: Decrement the IPA clock in delayed workqueue
While handling the suspend interrupt due aggregation timeout
possible to IEOB interrupt will be delayed. To handle this
scenario adding changes to decrement clock in delays work queue.

Change-Id: I4b9afebf5a9582f6c94aa5a9cd2eb0904b7171b8
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-06-03 01:28:42 -07:00
Ilia Lin
a1c2b8ad51 ipa: Fix HPC KW static analysis error
The static analysis reported potential null pointer dereference
in the __ipa_add_hpc_hdr_insertion(), which is caused by potential
null pointer returned by the ipa3_id_find().
In fact the ipa3_id_find() may only return null, if the radix tree
was destroyed after a failure in the ipa3_pre_init(). But in this
case, the whole driver will fail much earlier.

Change-Id: I1a3ed08ba59c2efa9c2c5a9f9da97c4218ab9129
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-06-03 09:45:36 +03:00
Sivan Reinstein
a01e383814 msm: ipa: error handling check for flt table check
Check test client prod isn't null before dereference

Change-Id: I3a0f04c91bdcb6af5ae9aa953f1940917c03762c
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
2021-06-03 08:07:28 +03:00
Armaan Siddiqui
f7290e40a6 msm: ipa : index mismatch fix for stats buffer
For more than one wlan clients, if other than first
gets disconnected, stats  was not updating at index zero,
due to which stats were showing as zero.

Change-Id: Ie83edeb977f758420334bf30295f978532462de3
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2021-06-02 12:50:11 +05:30
Armaan Siddiqui
90c8a139b6 msm: ipa: Don't return EAGAIN error
QCMAP queries for stats then disconnect Wlan client in case
of IPPT, so EAGAIN causes 60 retries with failure logs.


Change-Id: Ifaaeec3caed12da4765a3b9546bec84d854076c8
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2021-06-02 12:35:48 +05:30
qctecmdr
f25153074e Merge "msm: ipa: Update TARGET_PRODUCT to TARGET_BOARD_PLATFORM" 2021-06-01 22:26:16 -07:00
qctecmdr
ffde45c394 Merge "ipa: Fix local address if the HPC HW format constructor" 2021-06-01 08:35:36 -07:00
qctecmdr
7e75a41fe6 Merge "msm:ipa: Request QMI BW indication only when tethering is enabled" 2021-05-31 20:58:30 -07:00
qctecmdr
94494ce54f Merge "msm: ipa: update the MHIP rp moderation threshold for APQ IPA" 2021-05-31 20:22:07 -07:00
qctecmdr
2c34341e8d Merge "msm: ipa3: start odl remote-ch based on ODL connect" 2021-05-31 19:46:06 -07:00
qctecmdr
d4884d4f53 Merge "msm: ipa3: Configured new ep for modem throughput." 2021-05-28 15:41:44 -07:00
qctecmdr
419df39937 Merge "msm: ipa: Fix incorrect common bufffer cache size" 2021-05-27 23:12:40 -07:00
qctecmdr
cdcf7c86c2 Merge "msm: ipa3: set HOLB on eth-tx when getting disconnect" 2021-05-27 17:52:26 -07:00