Not able to unmap the buffers due not saving data buffers
when SMMU disabled on EMAC side. Adding changes to save the
data buffer list in EMAC SMMU disabled case also.
Change-Id: Ia22110b450477927c35942f2161c2730086da892
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Ethenet driver npn phy address was same for UL/DL
pipes, currently this address was mapped twice.
Added changes to map the map npn phy address only
once.
Change-Id: Icd713943326aad38ecf8e080a73d1d6bb8f641d2
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
1. Device side GSI event channel allocated for MHI event channel
need to be sequential.
2. The device side evt_id = host_evt_id - host first_evt_idx +
device side offset (ipa3_ctx->mhi_evid_limits).
Change-Id: Ieab7596caa6880d2daf75c3bc45cd59375dd7589
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Add support to handle disabling of CONFIG_DEBUG_FS.
Change-Id: I5164e0690e7e5165909ddfe759aa9694ad969f93
Signed-off-by: Rahul Shahare <rshaha@codeaurora.org>
In case of Vlan mode, verify that registered header is of
correct type and warn otherwise.
Change-Id: Ic5c529f1c9cabf77d0ef9f996105014d4a272c7c
Signed-off-by: Amir Levy <alevy@codeaurora.org>
The macro definition of 'TRACE_INCLUDE_PATH' would
result in a warning. This patch fixes the warnings
when used in a GCC environment.
Change-Id: Ie3ed621f16964237ddf1d001cb5816222590a663
Signed-off-by: Anant Goel <anantg@codeaurora.org>
Correcting the sequence to dynamically change the HOLB timer.
Change-Id: Iefcac36b93f3aee037628e3b0ec81aa5f5636caa
Acked-by: Suhas mallesh <smallesh@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Add required EP config for QDSS accelerated logging for MHI and
adding a new consumer pipe.
Change-Id: I4f7325f234279cf00760e6be5d174b0810485f9b
Acked-by: Suhas mallesh <smallesh@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
New dedicated pipe definition for LE MHI use case.
Change-Id: I254ef478757d7de4364a257c645ea91829e0f99f
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Due to incorrect condition gsi over ipa flag is always
false and ipa path is broken. Correct condtion to fix it.
Change-Id: Idda3e64b16191b5fa5cd6f82a4a8e466e758ec1b
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
Add changes to support PCIe addr for WDI2 over GSI
Change-Id: I9084e735b5eb4a75cefc2daeaa22340a5014b2b4
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Currently only WDI3 is supported in SDx55 target.
Enable WDI2 and dynamic switching between WDI3
and WDI2 based on wlan input.
Change-Id: I063ef6cd6dc80a237f9f30946abb243dd1a81b67
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
Only one pair of MHI ep's are supported till now.
With respect to auto-pcie use case requirement
we need to support one more MHI ep pair for cv2x.
Modify ipa-mhi driver to support additional mhi ep pair.
Change-Id: I301dc7c46c6bfcc995db5a6a56c677481588d20b
Signed-off-by: Mohammed Javid <mjavid@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>
This change supports device assisted low power modes -M1/M2 states
in IPA. For M1/M2 states, GSI is continued to be in poll mode where
as for M3 state GSI is moved to doorbell mode.
Change-Id: I48a7c9f2c27da0be69a6bb50dfec0a542e46caec
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
When MHI pipes are disconnected, host doesn't expect any
further communication from device. Make a change to not
to update the state during pipe disconnect.
Change-Id: Ia2315e3a94049ba3adda4b42d363ce2f7108d89f
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Add uC debug stats support for AQC/loadable modules.
Change-Id: I21cd3807c8e8973065b79f4ec43a0da382595653
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
This change does code clean up for tethering use cases such as
Rndis and WiFi on MHI Prime IPA offload path.
Change-Id: Iba9191ae8dcfdda79711327902d9df33550e7c69
Acked-by: Jyothij <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Update MAX channel on query for uC debug stats protocols.
Change-Id: I7a913f2cb60a1dccbacf2bbbfc25a2a823897992
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
New code support on uC debug stats for gsi offloading protocols.
This change is specific to MHIP and USB support.
Change-Id: I9cb0543330a8c66b52dbedbbc1059f3dc17ec705
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Fix to resume MHI Prime pipes for USB resume with a prior suspend
with no remote wakeup.
Change-Id: Ib95eb07f1d62c78eaa4aca02f75dd59abe225076
Acked-by: Jyothi J <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
This fix disconnects MHI Prime channels for USB suspend usecases.
Change-Id: Ia8beb668f9cfe87161bd225766f0468aedc4d826
Acked-by: Jyothi J <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
In case of USB/MHI connect/ disconnect the callback registered
is becoming NULL. So, registering the callback at the time
of module initialization.
Change-Id: I2af9206b575728af7f2b8b413022710674ceb485
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
MHI initializtion doesn't need to wait till uC is loaded as it
is independent. Make a change to decouple.
Change-Id: I63cc9887d6e69416d933ee17097e0c7d0ee707c9
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Rndis to Rmnet switch has no issues and should
be enabled.
Change-Id: I0415895f872503bcbf3e13fe20dfac11ae47b004
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Add validation to USB tethering protocol switches
where valid ones should be only allowed.
Change-Id: Ie544467aa2329df542ad04c56951da20e4a7e654
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
Suspend request issued by GSB interface
to ipa-sw. While suspend is in progress, data
transmit also initiated before ipa completes
its suspend sequence. Due to which, we see
un-clocked access on NOC, since IPA-sw submits desc to
IPA-hw after clock is GATED.
So, prevent data transfer if the iface's suspend
in progress or completed.
Change-Id: I9d2c1d0803352dcc1907777d03403722afb879db
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Add the check to not send the remote wakeup again if last remote
wakeup hasn't taken effect and usb state not been changed yet.
Change-Id: I55b2285264f85dfa4befedae4a1af5e6eaf71c4b
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Update the aggregation time limit from 1 to 1000 since the unit
is us and the granularity at least 100.
Change-Id: Ic1e6d2c5f4c9dae90f3f854b11cec7863d91c671
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
add changes to resolve warnings in different drivers.
Change-Id: Iea74591f78a383be9e82d42b2821371c41d3b6d9
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
Move reset_dma_mode to before the USB disconnect and suspend
to ensure that the USB pipe is configured correctly on reconnect.
Change-Id: I890e4f1422ace9db05c0b0375114143d8d3ff622
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Make a change to handle packets coming from MHI pipe
when modem is in SSR to clean up the host state. Otherwise
host state is not clean up as packets are not processed by
IPA.
Change-Id: I4f30301d390b36bb673e0006b9f58a943b191fd8
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Observing the race condition without USB pipe connected
try to start/stop channel during SSR. Added changes to
start/stop channel only if when USB connected.
Change-Id: I06756481c93395885a527b5d01b75719ccf9405e
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Parameters used for regitering client can contain garbage
values. Initialized those parameters to avoid it.
Change-Id: If593d1aee081d84f80f85fb738470121d73d9423
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Notify IPACM about new wigig clients and FST changes.
Change-Id: I9d6ba25b273a160de96fa5a3512526e245b64e81
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Make changes to suspend both the DL pipes (data pipe and ADPL pipe)
whenever MHI pipes are suspended to avoid stale access from IPA HW.
Change-Id: I0592bd92bab1fda4b7a51c7bcd2712f95cec9e6b
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Add required EP config for MHI DPL and a new consumer pipe (73)
and disable burst mode while starting gsi channel for the same.
Change-Id: If8794639e735d0c9b1e94f9047284247ab897824
Signed-off-by: Abhishek Choubey <abchoube@codeaurora.org>
Bug fixes and configurations changes requested by GSI FW.
Change-Id: I5b736115213bef1feda7184ca839426b6aba0848
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Make a change to use the right channel state size when
updating the state info to avoid overwriting other fields
in the MHI context.
Change-Id: Ic0483dedaacfd3d74452f561b4e25953a1e24fb0
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
WDI2 and WDI3 pipe configuration will be different, differentiation
is needed to support both cases.
Change-Id: I6b6b51faf0b3b098522f18e84f3f1d8706b65988
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
This commit resolves compiler warnings due to missing if braces or
due to incorrect indentations.
Change-Id: I388b084fe7a8c242caa31c69b95ad1f95ff2a80f
Signed-off-by: vkakani <vkakani@codeaurora.org>
Add IPA client named ipa_wigig. This client provides API for
the 11AD protocol driver to configure IPA for 11AD clients offload.
Currently up to 4 clients are supported. The clients share the RX
pipe and have a separate TX pipe. The ipa_wigig client shall SMMU map
11AD HW registers and buffers and shall configure IPA uC and GSI for
11AD clients offload.
Signed-off-by: Amir Levy <alevy@codeaurora.org>
Change-Id: I6c87dcea5d6e8e0b861cc402d52a83d8388af90d
Decode wrong iface handle from mux header of
corrupted packet, leads to invoke invalid index
of iface's tx_dp_notify, in turn leads to
segmentation fault.
So, validate the iface handle which is received
from status packet's mux header before invoking
tx_dp_notify of iface handle.
Change-Id: I21fd54a5c07d25f69a81d67eb4482ea1cc135ea9
Signed-off-by: Mohammed <mjavid@codeaurora.org>