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>
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>
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>
Fix the ep config low lat pipes for IPA_5_1
Change-Id: Iba17b8b74e4e3b2c6a7b6bf3d8957e7ca94a5ae6
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Make changes to exercise unit test on new wdi 2.4G tx pipe.
Change-Id: I8f436c1f544d1bad511fea6def0823f3bb0a703a
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Make changes to add new TX pipe for 2.4G interface
Change-Id: If6879a0d4ad33aa21b447f7f70ff78f44802efc0
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
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>
To support setting up ingress and egress ioctl parameters
from netmngr
Change-Id: Ib5aa503c951e6650e34dfa6ee501390a82967ab6
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
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>
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
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
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>
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>
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>