Commit graph

15 commits

Author SHA1 Message Date
Sunil Paidimarri
0dfb2feb3e msm: ipa: Recycle wan buffer
Enable recycle wan buffer support in IPA driver
to support napi in rmnet ipa0 net device.

Change-Id: I54efe72b5cf4ecdf50c7c642a8b453c46d057e57
CRs-Fixed: 1072443
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-09-28 17:23:43 -07:00
Linux Build Service Account
0cf5c85f8a Merge "msm: ipa: header change for SMMU wlan VA mapping" 2016-08-26 14:48:47 -07:00
Skylar Chang
a4720ff813 msm: ipa: header change for SMMU wlan VA mapping
Wlan need to pass the VA to let the IPA-driver
decide when to suspend the WDI pipe in SMMU
enabled scenario.

Change-Id: I00ae7f088c7411c8a6420f5e7ab12276d65fd269
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-08-24 14:57:46 -07:00
Ghanim Fodi
0f44e4f131 msm: ipa3: Update registers configurations for IPAv3.5/3.5.1
IPA v3.5 and v3.5.1 introduces changes to several IPA registers.
Some registers have new fields, some fields are shifted and
others are removed.
This change updates IPAHAL to support these changes.

CRs-fixed: 1055677
Change-Id: I2046318ba40beca75bdc2f40554fc9a458da5581
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-21 02:07:53 -07:00
Utkarsh Saxena
b17ffbbf40 msm: ipa: disconnect sequence change for USB 2.0
For USB 2.0 there is a requirement to not to flush the
USB endpoints after the pipes are disconnected. Otherwise
this can result into NOC errors. Make a change to modify the
disconnect sequence as below.

1) USB driver first disable the pipes
2) New API is provided from IPA to disable the endpoint.
3) As part of disable, make sure pipes are empty and reset
the pipes.
4) USB resets its BAM and flushes the ep.
5) USB then disconnects both IPA and USB pipes.

Change-Id: I917f025678e6abb03058d5be4ec42d9e6d76835f
CRs-Fixed: 1038623
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2016-08-02 19:50:47 +05:30
Sunil Paidimarri
238f9c0973 msm: ipa: Add napi support to rmnet ipa device
Add napi framework to use napi API's to poll
embedded data from IPA HW.

Change-Id: Icb6ec9d060ca4fb02e95c1e98bded89422bb1fff
CRs-Fixed: 1002026
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-06-10 15:11:23 -07:00
Amir Levy
8f0763f7c7 msm: ipa3: add ipa_mhi to ipa_clients
As part of of IPA driver refactoring a separation has been made
between IPA core driver and the IPA clients.
MHI specific code in ipa_mhi.c has been transferred to a new file
called ipa_mhi_client.c.
IPA clients drivers are the interface between IPA core driver
and external drivers. Specifically, ipa_mhi driver is the
interface between the MHI driver and IPA core.

CRs-fixed: 989505
Change-Id: Iebcde6d233ff8580aa83b1885f1e8a01644dd1f4
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-05-24 17:57:55 -07:00
Skylar Chang
81d9bef7e6 msm: ipa3: use user parameter for GSI ring len
Calculate GSI ring length based on the input parameter to
setup pipe API.

Change-Id: I151400624f374262a955a04d211a96c43feb6d98
CRs-Fixed: 996292
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-04-27 19:04:46 -07:00
Amir Levy
3e8eeb698a msm: ipa3: remove odu_bridge functions from ipa.h
As part of IPA driver refactoring, a separation has been made
between IPA core driver and the IPA clients.
odu_bridge driver has moved to the ipa_clients folder and a
dedicated header file has been created in order to provide
a direct interface between IPA odu_bridge client driver and
other drivers without a direct interaction with the IPA core
driver.
This change moves odu_bridge functions and structure from
ipa.h to the ipa_odu_bridge.h header.

CRs-fixed: 999935
Change-Id: I1b24c4e13daaae3e63c5cacefcbda12b8cfbeeb8
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-04-07 15:59:32 -07:00
Skylar Chang
b63c02a618 msm: ipa: header change for wlan VA mapping
wlan will pass the VA to IPA-driver to let
IPA-driver access the values of rdy_ring_rp
and rdy_comp_ring_wp to decive when can
suspend the WDI pipe

Change-Id: I73447c5557d42817ac2214532273e0de638e13d9
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-04-07 15:58:23 -07:00
Skylar Chang
ff717b7dab msm: ipa: header file change for WDI2.0
structure changes for WDI2.0, wlan needs pass
comp_ring_base_pa and comp_ring_wp_pa to ipa-uc

Change-Id: Ib0cdd0c7614916e53f2731f61d0399959d4b739d
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-04-07 15:58:01 -07:00
Nadine Toledano
f875ef9dcb msm: ipa3: Add the ability to set dynamically HPS/DPS seq type
HPS/DPS sequencer type is configured statically for PROD EPs
according to ipa3_ep_mapping table. This change adds the ability
to set a different HPS/DPS sequencer configuration for PRODs,
which mainly be used in testing

CRs-Fixed: 986167
Change-Id: I47dec10e757694596385f5118486603c702fe302
Signed-off-by: Nadine Toledano <nadinet@codeaurora.org>
2016-03-25 16:03:11 -07:00
Skylar Chang
55b24c8c5a msm: ipa: add support for AGGR_SW_EOF_ACTIVE
Configure AGGR_SW_EOF_ACTIVE for WAN_CONS pipe in order to
allow modem to close aggregation on this pipe.
This is needed in order for modem to ensure
a QMAP command packet always resides in the end of aggregated frame.

Change-Id: I7412f1f0af8d2109853e311de815a1f1ec3220e3
CRs-Fixed: 979484
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-03-25 16:03:04 -07:00
Skylar Chang
f36ae7405a msm: ipa: snapshot of IPA changes
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>
2016-03-23 21:25:09 -07:00
Skylar Chang
14bf6793b8 msm: ipa3: support IPA driver
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-03-23 20:09:44 -07:00