Commit Graph

401 Commits

Author SHA1 Message Date
Bojun Pan
d21d7ca509 msm: ipa: assert on gsi stop channel failure
Add assert on all gsi stop channel cases to capture the issue
ahead of time.

Change-Id: I044f192c63a724e00a9559bcb44260f0763ff824
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2021-02-11 15:07:58 -08:00
qctecmdr
6a476e89a2 Merge "msm: ipa: fix updating the rx_buff size from netmngr" 2021-02-11 07:40:30 -08:00
qctecmdr
d68dfd51ff Merge "msm: ipa3: Remove suspend bit for ep consumer" 2021-02-10 21:21:40 -08:00
Michael Adisumarta
cff624a76c msm: ipa: fix updating the rx_buff size from netmngr
Change includes updating non-napi rx_buff size configured
from netmngr through ext_ioctl_v2.

Change-Id: I76656ff898b69872bdb62806f45bf6ee23f0627f
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-10 11:15:17 -08:00
Piyush Dhyani
35fd44b9e8 msm: ipa3: Remove suspend bit for ep consumer
During usb client disconnect, ep suspend bit was
set on usb consumer pipe which was not removing
during usb client reconnect and causing stall
on the pipe. Now Removing ep suspend during
client disconnect.

Change-Id: I5fbb646ab9eed8cc7d7def7f318a8eab144ad2ac
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-02-09 23:21:57 +05:30
Ashok Vuyyuru
7aa1dc1510 msm: ipa4: Enhanced flow control changes
Adding changes to support enhanced flow control.

Change-Id: Id656319703a27f5073c6fd129fb4202a37b49aad
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-02-09 17:13:28 +05:30
qctecmdr
a4dc1b2178 Merge "msm: ipa: add new unit test case for wdi 2.4G Tx pipe" 2021-02-08 10:19:18 -08:00
qctecmdr
4e84082c57 Merge "msm: ipa: add new TX pipe for wdi 2.4G interface" 2021-02-08 09:44:07 -08:00
qctecmdr
38d2ee460a Merge "msm: ipa3: fix low lat prod/cons channel config" 2021-02-07 21:00:57 -08:00
Michael Adisumarta
77c87454bc msm: ipa3: fix low lat prod/cons channel config
Fix the ep config low lat pipes for IPA_5_1

Change-Id: Iba17b8b74e4e3b2c6a7b6bf3d8957e7ca94a5ae6
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-07 11:31:29 -08:00
qctecmdr
b9d424a20e Merge "msm: ipa3: adding new wwan extended_v2 ioctl" 2021-02-06 12:34:18 -08:00
Michael Adisumarta
e9bb16b440 msm: ipa: add new unit test case for wdi 2.4G Tx pipe
Make changes to exercise unit test on new wdi 2.4G tx pipe.

Change-Id: I8f436c1f544d1bad511fea6def0823f3bb0a703a
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-05 16:43:06 -08:00
Michael Adisumarta
3b01837536 msm: ipa: add new TX pipe for wdi 2.4G interface
Make changes to add new TX pipe for 2.4G interface

Change-Id: If6879a0d4ad33aa21b447f7f70ff78f44802efc0
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-05 11:29:30 -08:00
qctecmdr
fe7afbed79 Merge "msm: ipa: Fix reading the VLAN parameters" 2021-02-03 20:05:48 -08:00
Akshay Pandit
5228ce9529 msm: ipa: Add support for auto
cv2x endpoint configuration changes

Change-Id: Idcb36a43375fc29d68c68a7ba207e95dccc3518c
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2021-02-03 08:40:51 +05:30
qctecmdr
c2c52bff46 Merge "msm: ipa: Return error if inited and disconnect flag is set" 2021-02-02 03:20:55 -08:00
Michael Adisumarta
7de33f54a1 msm: ipa: Fix reading the VLAN parameters
When IPA_FW is loaded via bootloader, ipa post initialization is
complete even before ipa3_write is executed. As a result
when ipa3_write is called with VLAN parameters, VLAN
info is not updated and VLAN offload fails. Fix reading the
VLAN parameters even if post initialization is complete.

Change-Id: I6f61e0ef4bfa9787b5b5d68bb323d69c443e9645
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-01 18:18:20 -08:00
Michael Adisumarta
528d18939c msm: ipa3: adding new wwan extended_v2 ioctl
To support setting up ingress and egress ioctl parameters
from netmngr

Change-Id: Ib5aa503c951e6650e34dfa6ee501390a82967ab6
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-02-01 17:45:49 -08:00
qctecmdr
0b3c307ac4 Merge "msm: ipa: remove the ODL pipe for MHI configuration" 2021-02-01 17:01:33 -08:00
Armaan Siddiqui
ec0c63cf86 msm: ipa: Return error if inited and disconnect flag is set
Changes done to return try again error if inited and disconnect
client both are set.

Change-Id: Ia15eede7cb3a5c83ffe613be9c18ef473476668c
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2021-02-01 14:43:38 +05:30
qctecmdr
93215f82d4 Merge "msm: ipa: fix race condition on PM vote on sys pipes" 2021-01-30 01:17:04 -08:00
qctecmdr
2c287970e1 Merge "msm: ipa: update WAN DL pipe for MHI configurations" 2021-01-30 00:46:47 -08:00
qctecmdr
fba764fba9 Merge "msm: ipa: update the ethernet client to proper CB" 2021-01-28 08:26:41 -08:00
qctecmdr
2b8660500a Merge "msm: ipa: IPA driver changes for H/w fnr stats" 2021-01-28 06:27:41 -08:00
qctecmdr
73d27ba533 Merge "msm: ipa: Add support to L2TP over UDP" 2021-01-28 05:55:30 -08:00
qctecmdr
bb3dbd360e Merge "msm:ipa: enable more SIDs" 2021-01-28 02:02:07 -08:00
qctecmdr
046f1fd972 Merge "techpack: ipa: Read number of cb supported from dtsi" 2021-01-28 01:27:54 -08:00
qctecmdr
5df1a80196 Merge "msm: ipa: fix the register value of EE scartch register" 2021-01-27 20:54:54 -08:00
qctecmdr
0493fdc3f3 Merge "msm: ipa: Use mdt-loader and scm apis to boot IPA firmware" 2021-01-27 18:58:44 -08:00
qctecmdr
5015c14a5a Merge "msm: gsi: Fix gsi stop channel fail for old target." 2021-01-27 18:29:11 -08:00
qctecmdr
7598a2b36b Merge "msm: ipa3: Fix null pointer dereference error" 2021-01-27 17:57:55 -08:00
Bojun Pan
e9498ecc89 msm: ipa: update the ethernet client to proper CB
Below IPA5.0, all ethernet client are in IPA AP CB.
IPA5.0+, AQC/RTK/ETH move to IPA PER 2 CB.
ETH2 move to IPA PER 3 CB.

Change-Id: I98d6a40588eee7587f0b7787dbdbfadb4961c534
2021-01-27 12:47:13 -08:00
Bojun Pan
84c7c1dc22 msm: ipa: fix race condition on PM vote on sys pipes
There is race condition on PM defer deactive and PM active where
the PM active triggered by new NAPI scheduling would be accidently
unvoted by PM defer deactive after last NAPI completion. This
is causing the NoC error on packet handling due to no clock.
The fix here is to using ACTIVE_CLIENT_NO_BLOCK for clock voting
and still use PM handle for BW voting so that we would have
reference count to make sure this unexpected devote not happens.

Change-Id: If1ece48dc16256dae9a810b3efa6eb4f533f06a8
2021-01-27 11:15:12 -08:00
Bojun Pan
7b42e056c9 msm: ipa: update WAN DL pipe for MHI configurations
EP update for WAN DL pipes.

Change-Id: If010aac643a2a52c30dd5c4349601e4df35ecab9
2021-01-26 12:25:16 -08:00
Bojun Pan
6b963dec00 msm: ipa: fix the register value of EE scartch register
Fix the register value of EE scartch register.

Change-Id: I01dadd55309e7c500c409a6a6fccfb009a873e24
2021-01-25 16:36:14 -08:00
Chaitanya Pratapa
11dcec93e1 msm: ipa: use qcom #defines from qcom-iommu-util.h
Internal qcom #defines have been moved to  qcom-iommu-util.h.
Make changes to use the new header file.

Change-Id: I594ad0ef79580f618fc4f33f14cdc8ef1786577c
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-01-25 14:10:05 -08:00
Armaan Siddiqui
9480789d06 msm: ipa: IPA driver changes for H/w fnr stats
Modify ipa driver to use ipa-hw stats instead
of querying stats from ipa-q6 driver via QMI.

Change-Id: Ie0932923188b83762d93855007736027d6dff400
Signed-off-by: Abhishek Choubey <abchoube@codeaurora.org>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2021-01-25 11:22:03 +05:30
Armaan Siddiqui
5cafe9bb19 msm: ipa: Add support to L2TP over UDP
L2TP over UDP requires new commands to be send to uC
to use the new header length for additition and deletion

Change-Id: I6c642e745386bad5fb7ef63b4167e91ce561e0dd
2021-01-24 22:59:19 +05:30
Michael Adisumarta
662f45bfb0 msm: ipa: Use mdt-loader and scm apis to boot IPA firmware
Convert IPA driver to use mdt-loader and scm apis to load/reset IPA
firmware instead of registering to PIL framework. This change
includes both PIL and mdt loading based on CONFIG_QCOM_MDT_LOADER.

Change-Id: I62283e5955b549519ecab13017633fe51322c1ff
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-01-20 15:13:18 -08:00
Piyush Dhyani
6da4954462 msm: ipa3: Fix null pointer dereference error
If smmu is not enabled, smmu context device check
was missing before accessing it which was resulting
in null pointer dereference. Now adding check
before accessing it.

Change-Id: I94393524c79847a165ba605d34906525640b359a
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-01-18 06:13:09 -08:00
Amir Levy
64f902e835 msm:ipa: enable more SIDs
Enable SIDs for eth/eth1/wlan1.

Change-Id: Ifc4f2c5b46c4c5c4a7ad44c8e099c20978c2c762
2021-01-15 10:07:47 -08:00
Akshay Pandit
9e9824bcc6 techpack: ipa: Read number of cb supported from dtsi
Read the the max number of cb supported from dtsi. When expected number
of cb's are probed, mark IPA_FW_LOAD_EVNT_SMMU_DONE.
Calculate hw_type_index after auto & mhi config is already saved in
ipa context.

Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2021-01-15 10:07:34 -08:00
Piyush Dhyani
953369c4de msm: gsi: Fix gsi stop channel fail for old target.
In older target we may not receive gsi interrupt while
stopping the channel in first retry, so we inject dma
1B packet while retrying. We were observing crash during
stop channel as we were reading channel current state
only after interrupt recieved. Now reading channel
current state in case we not recieved interrupt for
older target.

Change-Id: I4f436bee610ce6ccd5e0f4c982689c15291a2011
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-01-15 19:57:28 +05:30
qctecmdr
894d1fee7b Merge "msm: ipa: update the MHI channel for qmap flow control" 2021-01-14 12:13:41 -08:00
qctecmdr
3646b55f08 Merge "msm: ipa3: pass the hdl instead of pointer" 2021-01-14 11:49:57 -08:00
Michael Adisumarta
45bbdaa355 msm: ipa3: pass the hdl instead of pointer
Fix pass by value for ipa_pm_set_throughput and activate_sync

Change-Id: I920356e394b3818336c959ef72fc9df4ae3e55eb
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-01-13 22:14:08 -08:00
Chaitanya Pratapa
dddff2741e msm: gsi: remove usage of devm_ioremap_nocache
devm_ioremap_nocache is deprectaed in newer kernels. Make
changes to remove the usage.

Change-Id: I84ad1a8fb707b516a6976d3038878b55ba0dd6b4
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-01-12 17:26:24 -08:00
Bojun Pan
7770dce837 msm: ipa: update the MHI channel for qmap flow control
Use ch 105/106 for qmap flow ctrl for IPA5.0.

Change-Id: I3d818ce253472b638f055e85af7f178a03e34e8b
2021-01-12 15:25:13 -08:00
qctecmdr
328b2e5ab9 Merge "msm: ipa: add check to see if pm client is not NULL" 2021-01-11 11:44:57 -08:00
qctecmdr
1e4e569a6a Merge "msm: ipa: compile ipa driver as part of DLKM" 2021-01-08 22:20:30 -08:00