Commit Graph

16 Commits

Author SHA1 Message Date
Amir Levy
a5361ab005 msm: ipa4: add IOCTL for reading vlan mode
Add IOCTL for reading LAN interfaces VLAN mode from
user space.

Change-Id: I85634b21adf2b1b79feb1b282597289e89ad1df1
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2018-05-01 16:50:27 +03:00
Skylar Chang
68c37d886a msm: ipa: support ipacm cleanup
Support header/filter, routing rules
cleanup when user-space module
crashed like ipacm and also cached
the wlan client connect messages
for ipacm to query.

Change-Id: Ib09cbe0e9114aa5a5673898ff796de7e7944af35
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2018-04-24 14:19:04 -07:00
Sundara Vinayagam
93ab52c123 usb: gadget: Fix ci13xxx compilation issues
Resolved compilation dependencies.

Change-Id: Ic83489eb781db1dfd6cc5f1c4f961dc18ba96d4b
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2018-03-16 15:14:08 +05:30
Amir Levy
2da9d45e50 msm: ipa4: add VLAN mode to rndis_ipa and ecm_ipa
IPA core driver will receive at boot information about which LAN
interfaces should support VLAN. rndis_ipa and ecm_ipa will query
that info and will register the correct header accordingly.

Change-Id: I9cf0875e94373e06aa6a4200d629e5934199a345
CRs-Fixed: 2156924
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2017-12-12 10:09:46 +02:00
Michael Adisumarta
d04e6d6b61 msm: ipa: Add API support for getting IPA SMMU status
for WLAN

This is an API for getting IPA SMMU status, this API
will currently report if IPA SMMU is enabled or not
for WLAN Context Bank.

Change-Id: I9dec309c74043e259aa01ba9a49d9537e9d92208
Acked-by: Jyothi Jayanthi <jyothij@qti.qualcomm.com>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2017-11-09 17:46:35 -08:00
Amir Levy
479cfdd61a msm: ipa4: add IPv6CT support
IPAv4 HW presents new IPv6 connection tracking functionality.
This change adds SW support of this feature.

Change-Id: I7545af08f090405db80bbd8c10223ca7521080d9
Acked-by: Dmitry Kogan <dmitryk@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2017-10-26 12:23:14 +03:00
Skylar Chang
48afa0582d msm: ipa3: add an API to unlock PCIe memory regions
TZ now locks all PCIe accesses by default, This API allows to
dynamically unlock specific memory regions over PCIe bus. The unlock
mechanism is required by MHI and WLAN drivers.

Change-Id: Ia44fe2ad4b7b6fe4efef7807e60f24b6f12e4398
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-10-25 09:34:47 -07:00
Skylar Chang
448d8b8dc3 msm: ipa3: add LOWSVS frequency votes
On device bootup and embedded call scenario,
need vote for LOWSVS.

Change-Id: Ie733d0aa4e5b57fa9a478fa0f285fe0ba4d81b58
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-08-29 14:13:41 -07:00
Amir Levy
dc65f4cbc2 msm: ipa4: configure IPv6CT on ep and parse IPv6CT exceptions
This change configures IPA to perform speculative IPv6 connection
tracking calculation on producer pipes and differentiate between
NAT exceptions and IPv6CT exceptions.

Change-Id: Ia742649a08b0d3eaac651c3a1a556677b3acc76a
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2017-07-12 06:34:53 -07:00
Skylar Chang
fcf36c2ada msm: ipa3: header file change for wdi-stats
Add structure changes for querying WDI-stats, wlan needs
register the callback functions for IPA to query WDI stats
and sets the quota limit on STA mode.

Change-Id: I62de66e9b0bb1eeeac3c94d1ac1037285811b631
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-04-03 13:42:57 -07:00
Skylar Chang
6b41f8dab1 msm: ipa3: support AP+STA IPA stats
Add IPA stats support on AP+STA mode when
CNE queries. Also add metering funtionality
on WIFI interface to stop the data transfer
when quota reached on WIFI-case.

Change-Id: I85da89f681170acf21674a8f1a34778014c92892
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-03-29 14:10:39 -07:00
Amir Levy
a59ed3f9f8 msm: ipa3: Remove BAM code from IPA3 driver
BAM support is not required in IPA3 driver as GSI
is being used instead. Removal of BAM specific
code significantly simplifies and reduces the IPA3 code.

Change-Id: I8c27da3b9b04aacf4308d283419cfa431235bfcf
Acked-by: Dmitry Kogan <dmitryk@qti.qualcomm.com>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2017-03-08 11:16:12 -08:00
Amir Levy
3be373ce3d msm: ipa: merge ipa_gsi_ep_info into ipa3_ep_mapping
On sdm845, an IPA endpoint can be used for more than one configuration,
where each configuration has its own set of parameters. Therefore, the
endpoint configuration cannot be saved as an array according to endpoint
index.

CRs-Fixed: 1097871
Change-Id: I74e1a61e5785a0a80c5e164dd4cf8e98e385cb17
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2017-03-05 16:31:30 +02:00
Utkarsh Saxena
971a03c23b msm: ipa: Fix WDI2.0 stats
New stat param "num_qmb_int_handled" is added to rx_ch_stats
by IPA uC in WDI2.0. This results in a size mismatch and
WDI stats feature is broken. Make a change to update the
new param "num_qmb_int_handled" in rx_ch_stats structure.

Also make a change to read all the rx_ch_stats to avoid
printing stale values.

Change-Id: I5d141f531f1cfdab0bd0056041e22acb26657960
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-02-20 22:28:34 +05:30
Gidon Studinski
3021a6fce4 msm: ipa: update IPA driver to the tip of msm-4.4 kernel
The commit contains changes from the following original commits:
commit c114fe5555d0 ("msm: ipa: fix potential race condition ioctls")
commit c6d606203352 ("msm: ipa: WDI2.0: hotspot offload using WDI 2.0
interface")
commit 634732c1bb02 ("msm: ipa3: fix GSI ring DMA allocation
parameters")
commit 915354544a81 ("msm: ipa3: Fix timeout period of IPA resource add
dependency")
commit a1e8c020b542 ("msm: ipa3: Fix wrong parameter to xdci release
function")
commit bd09eb993a1a ("msm: ipa: fix skb recycle logic")
commit b2c8a0dbe6c8 ("msm: ipa: fix memory leak on QMI")
commit c4fddbc45db0 ("msm: ipa: mhi: add perf vote")
commit 7bd2a476f7d8 ("msm: ipa: Allocate memory on send message")
commit b544de499e55 ("msm: ipa3: increase SSR tag timeout")
commit 15dc347f5272 ("msm: ipa3: hal: change FnR prints to low")
commit b0756920f39f ("msm: ipa: unlock WLAN doorbell register access")
commit 0dfb2feb3e79 ("msm: ipa: Recycle wan buffer")
commit 1966a333f80b ("mam: ipa: always add default flt rule at the
end")
commit 9ba1638c4bdb ("msm: ipa3: change FnR prints to low")
commit 8b81dd70999c ("msm: ipa3: fix benign prints on ipa3_usb_init")
commit d51f2f62e4bc ("msm: ipa3: Add specific logs to improve debugging
capabilities")
commit 21fab3e70330 ("msm: ipa: fix mutex_lock with task->state !=
RUNNING")
commit bdb22900877b ("msm: ipa3: Do not wait for IPA DMA_TASK H/W
ACK for GSI")
commit fc5f71883677 ("msm: ipa: fix reference count in rm")
commit cd5f5121db9a ("msm: ipa: update wan pool size on napi enable")
commit 7e079d086ffe ("msm: ipa: Remove obsolete IOMMU domain
attribute")
commit 38b227b0c22f ("msm: ipa: Add guard around nat entries read")
commit 9dc2df841d20 ("msm: ipa: fix static analysis sign issue")
commit 3ce1ef220c57 ("msm: ipa3: add check on qmi-client handler")
commit 5334ff493a3f ("msm: ipa: Fix ipa ready cb return value")

All of these changes come to complete the initial IPA driver snapshot:
commit 9659e593c8 ("msm: ipa: initial commit of IPA driver")

Change-Id: Iad2c7633eb15393202d5ba8b3209363442410160
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-11-16 11:40:03 +02:00
Amir Levy
9659e593c8 msm: ipa: initial commit of IPA driver
This is a snapshot of IPA from kernel msm-4.4 based on
commit ebc2a18351d4 ("msm: ipa: WA to get PA of sgt_tbl from wlan")

CRs-Fixed: 1077422
Change-Id: I97cf9ee9c104ac5ab5bc0577eb9413264b08a7a5
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-10-27 18:08:27 +03:00