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>
L2TP over UDP requires new commands to be send to uC
to use the new header length for additition and deletion
Change-Id: I6c642e745386bad5fb7ef63b4167e91ce561e0dd
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>
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>
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>
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>
Fix pass by value for ipa_pm_set_throughput and activate_sync
Change-Id: I920356e394b3818336c959ef72fc9df4ae3e55eb
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
To avoid the the smmu cb ctx read if smmu is bypassed.
Change-Id: I0b23d413365d9b36cdf560605c9c221f155624cb
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This includes changes to increase the ep pipe number
to 36
Change-Id: I2e54d57cc1c1cc372ff967a7c3337d9e28af98af
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
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>
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>
Make changes to use Kbuild for techpack compilation.
Change-Id: I9d71205f4648f63f04d031bf1a419614e94d9a11
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
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>