| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
|
| |
To resolve the timing issue between usb-driver
and android framework, made the change on rndis
ipa to send the usb-connect msg when usb-driver
connect the IPA pipes.
Change-Id: I51de37bc7610cb0a94659c64146f10ed322210b2
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Set the ifalias status to unidentified_net_dev to
indicate whether modem is connected or down
CRs-Fixed:2091838
Change-Id: Ic7bac3dd1a238540f828babe641d4f6669bc96b9
Signed-off-by: Prasad Malisetty <prasadm@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Few functions have variables which might get used with out
proper initialization. Initialize variables to default values.
CRs-Fixed: 2087109
Change-Id: I7645940e8d466e0ef67a5b8b7702b18b160cc10f
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
It's possible for MHI host to send sys error notification
signal before sending channel enable notification. Attempt
to cleanup resources only if netdev is allocated.
CRs-Fixed: 2037971
Change-Id: I2bd1f10966a042c6f3372adff89572a5795e7daf
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Add support to handle system error and shutdown notification
from MHI host.
CRs-Fixed: 2022936
Change-Id: Id36097dffd7571490d7d53d2e496bfe024702a42
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
mhi_rmnet support both hardware accelerated path,
and software path for IP traffic. Add support to
configure interface name through device tree.
CRs-Fixed: 2022229
Change-Id: I8356c599ce22ae45e0f3c03272ebf50251a73a59
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
MHI host require clients to provide maximum payload size
during active transfer so MHI host can pre-allocate bounce
buffers.
CRs-Fixed: 1110280
Change-Id: I9a8fcb8dbb711cdd35dfc12b47b4381bf0985134
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
MHI_RMNET layer not required to reserve for IP headroom
data since rmnet_data layer will create a new skb if
headroom reservation is needed.
CRs-Fixed: 1085031
Change-Id: Ic04e73510140e6c00ee18107a8edc9ead0b53863
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
In order to support multiple MHI devices connected
to same host we have, re-organize struct mhi_device_ctxt
such that all information related to device is included inside
struct mhi_device_ctxt. Created an abstract power management
layer to operate MHI in bus master, and slave mode. PCIe bus,
device, slot are extracted from DT to identify physical device.
CRs-Fixed: 1086301
Change-Id: I27a12b7412db75e4843794d80146ca7475b02fdc
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Disable MHI from going into low power mode when
processing inbound transfers.
CRs-Fixed: 1081654
Change-Id: If8af0805501901a15981bbc6db0c92d2e040eb78
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
In order to support multiple instances of mhi_rmnet
net devices re-architect how the driver initialize
by adding support for platform device.
CRs-Fixed: 1027069
Change-Id: I038f9dcb2e9bffb2637d82fb30794f6e6d4c578c
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
If MHI failed to queue the buffer, do not attempt to re-queue.
Instead wait for transfer completion event and restart
the UL queue.
Change-Id: Id57db52e0eb2e5930ec228a920d109fef941389f
CRs-Fixed: 1055681
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
|
| |
On memory stress conditions, host could
fails to allocate memory on atomic context.
Schedule a background worker to allocate
memory in such conditions.
CRs-Fixed: 1037593
Change-Id: Ia48b31622fcb043d31d197fab0a84ab40fc5c0ba
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
The debug message does not accurately describe the reason
for rmnet to reschedule the request.
CRs-Fixed: 1016968
Change-Id: I49fa6a0dbdd9dec7a36f5705b9e8d27bc7352286
Signed-off-by: Tony Truong <truong@codeaurora.org>
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Validate the channel prior to proceeding further.
Unlock spin lock before jumping to error handler.
CRs-Fixed: 1016969
Change-Id: Ie3328f878b582a333ae15f3b950c258ec42fd768
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Incorrect checks in MHI drivers may crash the system.
Fix these checks so that MHI drivers will handle the
errors gracefully.
Change-Id: I462263799c2e76573300ed43b51e39ecba42914b
Signed-off-by: Tony Truong <truong@codeaurora.org>
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a spinlock to protect the state transitions in rndis ipa
driver.
Change-Id: Ia5eab252d9a53e6a2f4db07912967a5f466982a6
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Acked-by: Javid Mohammed <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
Do not consider debug file system init failure as
functional failure.
Modify the code to proceed further
driver initialization.
Change-Id: I821af8970b6c2ced55d6464b8a7b56a458fa7d79
Acked-by: Javid Mohammed <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
|
| |
|
|
|
|
|
|
| |
Remove ECM_IPA debugging capabilities which are no longer needed, nor used.
CRs-Fixed: 1112912
Change-Id: I20765d84ca7351c436d39d0f10b7f7a819bcc40b
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Rndis_ipa loopback functionality at rndis_ipa driver
is a debug functionality that is not used.
Change-Id: Ibbcb26d3871cffeb46b028efcf4d428e88eb9e10
CRs-fixed: 1104431
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Change the feature flag to compile rndis_ipa
on cobalt target with msm-4.4 kernel, also
fix the compile warnings.
Change-Id: I82d3dd00e003d8eab63ca6bcc3bb91d51f122606
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
|
| |
|
|
|
|
|
|
| |
This snapshot is taken as of msm-3.18 commit
d5809484b (Merge "msm: ipa: fix race condition
when teardown pipe" )
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
|
| |
|
|
| |
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
| |
Replace the MHI defined enum for return codes with
kernel standard return codes. This greatly improves readability
and parsing of errors by userspace clients.
Change-Id: Ica47f8c3a149f23243b5fb6a4aabcdc0a36b1535
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Enable logging based on MHI defconfig option. This
avoids excessive logging in secondary boot image.
Change-Id: Ie22d56d781feadb2d484e6117c9c25ee29aa5299
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
Signed-off-by: Tony Truong <truong@codeaurora.org>
|
| |
|
|
|
|
|
|
| |
Enable the queueing of virtual buffers to MHI instead
of buffers obtained from streaming DMA.
Change-Id: I3f77c7d5d9924659ce13e454646d5a65402353cc
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
MHI driver stack logging to the private IPC log buffer can be quite
expensive from a MIPS perspective. Enable such MHI logging
if and only if such logging is desired in defconfig.
Change-Id: I4a16eedc2424d250129b1b44a91d1fa32be399f5
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
When the netdev interface is released, NAPI is disabled.
This condition can occur while the device is still sending RX data
causing a potential kernel panic.
Wait for all incoming data to be received, before releasing
the interface.
Change-Id: If33ff721a581fdafb9712fe3cf9243996187f09d
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
| |
MHI RmNet will now wait for all packet fragments from MHI before
sending the received packet up the network stack.
Change-Id: I3f0958d029a5763e7e0b1e4ab43f17fd98583a48
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Resolve a race condition whereby a buffer could be freed
by the SSR handler while being operated upon by the transfer
callback.
Change-Id: I5e62b04166b2a8a9867047574c7232739229c911
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Enabled sanity check for LPM IOCTL in MHI. IOCTL should not
be called into MHI, if the device is not ready.
CRs-Fixed: 749894
Change-Id: I52627a94e70e3b17130653b7b73a86b417807842
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
| |
Resolve issue whereby a deadblock is encountered when trying
to put the interface down.
Change-Id: I757492fceff56014b28ec50307f6d84b1bb81889
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
|
| |
Fixed a race condition in MHI RmNet where the RX interrupt
could remain masked forever.
CRs-Fixed: 723355
Change-Id: I9606963b8b2d6d1cb125c0bc7be8610b06f67be3
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fix race condition in MHI RmNet whereby the outbound
MHI ring could be empty while the network stack believes
it is full. This leads to a non recoverable data stall.
Add rwlock to ensure checks for full and empty conditions
are atomic.
CRs-Fixed: 733646
Change-Id: If54baa4be762a976d64213d0ec52e969f2497036
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|
|
|
Add MHI RmNet driver to support exposure of an
MHI device as a network interface to the Linux
networking stack.
The MHI channels are exposed as a standard network
interface which supports the NAPI framework.
IOCTLs for setting MTU/MRU and LPM are also enabled.
CRs-Fixed: 689329
Change-Id: I9540c78acccec35aff4ee4dc36241c6f08cdf04c
Signed-off-by: Andrei Danaila <adanaila@codeaurora.org>
|