Android Q update, enable MHI Proxy on msm-4.14 master branch.
Add functional flag to only call MHI proxy functions when MHI
proxy functional flag enabled.
Change-Id: I342d0c9aefcf958226a0b697e6e8fce68bf81d15
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
IPA drvier free the qmi server hdl without notify the qmi
framework which is causing the use-after-free on QMI framework.
The fix is to notify qmi framework before freeing the qmi handle.
Change-Id: I1ec9d3efd29283fddd958561a538b2995222a53c
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
observing the shadow stack overflow due to skb is
chained using the frag_list more than 64. To reduce the
skb chained reducing the NAPI weight to 32.
Change-Id: I1164c7d8e886a1079d30c213c91827b0aa191db2
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Due scheduling the NAPI in suspend path observing race conditions
in updating channel polling context and pipe polling context. To
avoid these scenario scheduling NAPI only from interrupt context.
Change-Id: I8eb0438618aedb9873e6eafc269435cc67c03dd5
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
In low latency ping scenario clock unvoting fastly due to this
ping RTT was increased. To avoid these scenario increased the
inactivity timer to 100msec.
Change-Id: I9b11e2adbe087aa67fa2e7ed751b190abb09d0ed
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
When endpoint in polling mode possible to pipe teardown trigger parallel
it leads to race condition. Adding changes to check in endpoint came out
of polling mode and continue to teardown the endpoint.
Change-Id: I0b22d6a7a1f5229acec2dbc9dd5cb76488c09faa
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
WLAN client disconnect scenario enable HOLB on WLAN consumer,
with timer value 0. if client connected without disabling the
hotspot, it was leading tput impact. To avoid this scenario
during reconnect client configure the holb with timer value
on WLAN consumer pipe.
Change-Id: I33b4c97c4e6adea3107a46d5ca799379d255876c
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
In SSR scenario possiable to receive the contineous interrupt
when IPA HW recovered from temporary stall. Add changes to
remove the max poll count in gsi isr handle function.
Change-Id: Idaf1d9a070426188f3614ebf85010d0107d79dfb
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Currently LOW LAT consumer pipe replnish skb not unmapped
properly. Due to this running into out of memory issue.
Adding changes to unmap LOW LAT consumer replnish buffers
using correct method.
Change-Id: I253519f7c2f5eba11d32074c7b1879feed1f413c
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Changes to control the IPA BW vote persistent using debugfs.
Change-Id: Ie1edf294558a61af065f3fddec410808dc1abdd5
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Add changes to accelerate QDSS diag traffic over IPA
to the PCIe host.
Change-Id: Ice72f8761d092677d4c5434d87bbed295ac435d6
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Send the USB2(Low latency eptype) end point info first then
USB0(General eptype) end point.
Send the CV2x(Low latency eptype) end point info first then
LTE(General eptype) end point.
As per net manager request handle the get peripheral info
ioctl to send ep_info in reverse order.
Change-Id: I798b53ac41056d2229dbfca22b30e6f6625b8ee4
Acked-by: Rishabh Garg <rishgarg@codeaurora.org>
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
Make changes to not to use stack memory to store the content
from descriptors in case of COAL/Defaul pipe.
Change-Id: Icfdad59022a5cad27ec95a0bf9c80e96a2a93da9
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Currently defined max PDN number is generic for all
hardware version which is incorrect. Define PDN based
on hardware version to support correct number of PDN.
Change-Id: I3e898a32104562584b4702132c57b7f1cb8deeca
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
For QMI dpm port to open, control manager needs
to know about usb/mhi ep details corresponding to
RMNET and RMNET_CV2X tethering.
IPA driver has all endpoint info at one place.
So provide IOCTL interface to get ep_pair info.
Change-Id: Ia5ec0df955ef7794ca992129dab538f65af36211
Signed-off-by: Akshay Pandit<pandit@codeaurora.org>
Add proper check to validate table rule count
which may lead to overflow error.
Change-Id: I9bdcafcaae4e4cff1b901929c8dc6ae804f85642
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
1. Fix the db address/value to ethernet driver.
AQC RX is using uC MBOX, TX is using GSI doorbell.
2. Fix the uC init peripheral cmd
Change-Id: Ibc52c9093b85749eff3c2146c7fbc5bc421207b8
Add support for new dtsi entry specifying auto configuration.
Change-Id: Ie27ca9e09ac228c5bfbf8832a9b123f733cab765
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
In Q6 standalone ssr, the mhi host is not aware of the ssr
so it will not stop/start the channel. In this case, the QMI
won't be send again so that Q6 will lose the pipe info.
The fix here is to move the QMI to modem bootup routine so
after ssr, this qmi would be sent again.
Change-Id: I3c9e4830359f05bc9ab729ffca30a1a0bcba7407
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Whenever 2 new low latency pipes setup/enable, we need to send the qmi
endp_desc notification to Q6.
Change-Id: I708c6586a4d625f9308b514abd250a48d59d19f2
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
New dedicated pipe definition for LE MHI use case.
Change-Id: I254ef478757d7de4364a257c645ea91829e0f99f
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
Make changes to add additional trace points for rx
and tx path. Also enhance existing traces to capture more
information.
Change-Id: I40d5bfc4080a47d986e16ac157524c341949e51e
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
When we have no buffer available in HW and switch to irq, a dead-loop is
observed between sending force close comamnd and replenish workqueue.
The fix is to keep in polling mode, wait for napi-poll and replenish again.
Change-Id: Ied0504564f86f41b8b5f9aa25170768027bf3391