Graf commitů

372 Commity

Autor SHA1 Zpráva Datum
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
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
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
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