Commit Graph

358 Commits

Author SHA1 Message Date
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
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
qctecmdr
a7f2198ef2 Merge "msm: ipa3: Add change to increase timeout value" 2021-01-08 15:58:33 -08:00
qctecmdr
a20c7b228a Merge "msm: ipahal: Add uCP exception case for status pkt" 2021-01-07 18:28:53 -08:00
Michael Adisumarta
2390ccee5c msm: ipahal: Add uCP exception case for status pkt
Add a new enum for uCP exception pkt status.
Handle the case where this pkt status exception is received.

Change-Id: Ib69e307548efed3482d4636db9161f423c051570
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-01-07 04:29:20 -08:00
Michael Adisumarta
183e1fedd4 msm: ipahal: add uC activation registers and ucp structs
Add relevant structs and functions to modify the
address registers for NAT uC and conntrack UC
for external, local, and shared activation tables.
Add ucp fields to ipv4 nat and ipv6ct entries.

Change-Id: Iadb3232fb45052b643bbf36bc48043df8619d2fb
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-01-07 17:37:09 +05:30
Chaitanya Pratapa
2c4f0c1e17 msm: ipa: compile ipa driver as part of DLKM
Make changes to enable IPA driver as part of vendor
component and compile as a DLKM. Disable ECM driver
for GKI configuration.

Change-Id: I6e2500fa31e3b53e23559bda6104a92958c5430d
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-01-06 11:37:26 -08:00
Chaitanya Pratapa
d10d7d54b9 msm: ipa: align to latest kernel version
Make changes to align to the latest kernel version.
Fixes to compilation errors and forbidden warnings.

Change-Id: I5c7a7b8a8ce2ccd98af3d6458bd6a9bdddeb361b
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-01-06 11:36:48 -08:00
qctecmdr
aff5cc54ab Merge "msm: ipa: use Kbuild for techpack compilation" 2021-01-05 18:19:32 -08:00
qctecmdr
c915c26659 Merge "rmnet: Convert to use remoteproc notifications" 2021-01-05 15:28:48 -08:00
Praveen Kurapati
3df19d625c msm: ipa3: Add change to increase timeout value
Add change to increase the stop channel retry timeout value
to avoid race condition cause by AP retrying to stop channel
and GSI trying to send stop channel command.

Change-Id: I405f923d9bc87f7b8612ded9137d7b8d23eb37e8
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-01-05 09:40:51 +05:30
qctecmdr
356fa45853 Merge "msm: ipa3: Changes to support to IPA HW version 3.0 target" 2021-01-04 16:34:52 -08:00
qctecmdr
d9ce9ccfab Merge "msm: ipa3: Add sram memory regions for ssdxnightjar target" 2021-01-04 12:35:08 -08:00
Ashok Vuyyuru
8c07a7fdfc msm: ipa3: Changes to support to IPA HW version 3.0 target
Adding changes to support the IPA HW 3.0 version in latest
kernel release.

Change-Id: Id9ac11015f4752bddb8070e179c7b7284b0abe31
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-01-05 00:59:23 +05:30
qctecmdr
72370c317e Merge "msm: ipa: fix to not use stack memory to store descriptors" 2020-12-31 07:57:57 -08:00
qctecmdr
09f671ef51 Merge "msm: ipa4: Add ratelimit log in per client stats case" 2020-12-30 04:08:44 -08:00
Ashok Vuyyuru
fd0b35711b msm: ipa3: Add sram memory regions for ssdxnightjar target
Add sram memory regions for ssdxnightjar target.

Change-Id: I544c65cac9bf0c61b5ac004a89a7e053f260899b
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-12-30 17:05:51 +05:30
Michael Adisumarta
eb1d4087ae rmnet: Convert to use remoteproc notifications
Support rmnet_ipa driver to register for remoteproc notifications
along with legacy subsys notifier.

Change-Id: Ibce7ad0efa5c264f9649f69ee2f98fc0bdc66ad9
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-28 17:57:05 -08:00
Pooja Kumari
14f2078189 msm: ipa4: Add ratelimit log in per client stats case
Log is over flodded during bootup if per client stats
is not configured. Add ratelimit log to control the log.

Change-Id: I918984f58b4de07be45d1d5e094c694593262c45
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2020-12-24 04:18:17 -08:00
Ashok Vuyyuru
b54510f96d msm: ipa3: Send enable force clear only for producer pipe
Enable forceclear only supported for producer pipe so
avoid sending the force clear command to consumer pipes.

Change-Id: I6c63abe68e737463b0a189bf85a92c79648ea767
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-12-24 00:01:15 -08:00
Michael Adisumarta
d069ef5432 msm: ipa: Avoid buffer over read of smmu ctx
To avoid the the smmu cb ctx read if smmu is bypassed.

Change-Id: I0b23d413365d9b36cdf560605c9c221f155624cb
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-23 14:48:01 -08:00
Michael Adisumarta
a3fae14f20 msm: ipa: increase pipe number bit map to include 36 pipes.
This includes changes to increase the ep pipe number
to 36

Change-Id: I2e54d57cc1c1cc372ff967a7c3337d9e28af98af
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-23 14:47:42 -08:00
Michael Adisumarta
ab9b8b1263 msm: ipa: Add test pipes for IPA5.1
This change adds the ep configurations needed for IPA5.1 test pipes
and add hw version for required conditions.

Change-Id: Ibcbb4307224964f52d07264cd15d09792f551d74
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-23 14:46:59 -08:00
Michael Adisumarta
4d23e28754 msm: ipa: SWI changes for Waipio driver upgrade
Adding new pipes and new hardware version.

Change-Id: I54ca4f962a4fa45a21f4551d025670c9a415df3f
Acked-by: Suhas Mallesh <smallesh@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-23 12:08:09 -08:00
Chaitanya Pratapa
0d41c117a8 msm: ipa: use Kbuild for techpack compilation
Make changes to use Kbuild for techpack compilation.

Change-Id: I9d71205f4648f63f04d031bf1a419614e94d9a11
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-12-23 11:59:18 -08:00
qctecmdr
df066ec864 Merge "msm: ipa: Add SDXNIGHTJAR to dataipa MAKEFILE" 2020-12-23 05:56:21 -08:00
Ashok Vuyyuru
dfb6f3ef3b msm: ipa: Add SDXNIGHTJAR to dataipa MAKEFILE
Compile IPA driver in SDXNIGHTJAR.

Change-Id: Ib4bdbc1e653fa16d0c0e71fa997e69670c1b8e6d
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-12-22 23:57:55 +05:30
Akshay Pandit
a6dcb35a8a 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>
2020-12-21 21:26:08 -08:00
qctecmdr
22da033dc8 Merge "msm: ipa: Fix cyclic dependency between ipa_net and ipa modules" 2020-12-18 20:28:06 -08:00
qctecmdr
861086a56a Merge "msm: ipa: export these 3 symbols" 2020-12-18 20:15:19 -08:00
Michael Adisumarta
080938d57f msm: ipa: avoid accessing ipa3_ctx from clients
Use ipa_get_hw_type instead of directly accessing ipa3_ctx
from ipa_clients

Change-Id: I5098df3c048b7105c9174df33b37d8c42d2c6a45
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-17 20:05:02 -08:00
Michael Adisumarta
3a72c22a7f msm: ipa: export these 3 symbols
ipa3_eth_debugfs_add_node
ipa3_eth_debugfs_init
ipa3_uc_mhi_print_stats

Change-Id: I60dd9e7dc83329c9464948e1ed25934bc3fbdff7
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-17 15:53:22 -08:00
Michael Adisumarta
baa4879411 msm: ipa: Fix cyclic dependency between ipa_net and ipa modules
ipa_net module calls into rmnet_ipa driver and ipa driver tries
to access ipa_net_initialized variable. This creates a cyclic
dependency between the modules. Make a change to move
ipa_net_initliazed flag to rmnet_ipa driver.

Change-Id: I47eae899329144445b40bb9b2d8e95ec7e6ca145
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-12-17 15:50:43 -08:00
qctecmdr
c3e6e94e4b Merge "msm: ipa3: Extend suspend/resume pipe functionality" 2020-12-16 22:09:06 -08:00
qctecmdr
cd2b507872 Merge "msm: ipa3: Move ipa_hw_stats structure from ipa_context" 2020-12-15 03:54:58 -08:00
qctecmdr
ed5ee6ebdc Merge "msm: ipa: Add RG10 Workaround Changes" 2020-12-15 02:01:45 -08:00
Piyush Dhyani
b8f56b250a msm: ipa3: Move ipa_hw_stats structure from ipa_context
Made the change to only allocate ipa_hw_stats if IPA HW
version supports it (i.e., higher then equal to IPA_HW_v4_0).

Change-Id: I6eaea8dd1d8ddb22f502622b4bf61ad697429815
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2020-12-15 12:37:34 +05:30
Amir Levy
930033d715 msm: ipa: fix aqc msi address
fix aqc msi address type to build succesfully for
msm and mdm. add gsi offset to returned address.

Change-Id: I36ed6f20daeff90837d5b022c0b51a0c3ea07dec
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2020-12-13 16:26:18 +02:00
Bojun Pan
d25c0c9310 msm:ipa: enable ECM from config
Enable ECM module.

Change-Id: Ie88f26eed985e0d530ba5243b774216029a993ed
2020-12-11 18:03:37 -08:00
qctecmdr
6c8c648c2a Merge "msm: ipa: Fix rndis client disconnection gracefully" 2020-12-11 09:45:20 -08:00
Piyush Dhyani
2cbda3cd36 msm: ipa3: Extend suspend/resume pipe functionality
Currently suspend/resume pipe functionality not supported
for IPA HW version less than 4 so updating it to support for
those HW version.

Change-Id: I7928835d2e6acacbc62aab909bab95c6689c699a
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2020-12-11 20:01:51 +05:30
qctecmdr
72b77b0a94 Merge "msm:ipa4: Fix race condition" 2020-12-10 23:32:58 -08:00
qctecmdr
d3f58590db Merge "msm: ipa: correct the doorbell for AQC and RTK phase 1" 2020-12-10 23:19:07 -08:00
qctecmdr
308beb4d74 Merge "msm: ipa: update ep config for IPA_5_0" 2020-12-10 19:55:06 -08:00