Commit Graph

275 Commits

Author SHA1 Message Date
qctecmdr
3b007394ea Merge "msm: ipa3: Changes to control the IPA BW vote using debugfs" 2020-11-19 18:40:16 -08:00
qctecmdr
9bf25043ae Merge "Revert "msm: ipa3: Assert the device when IPA FW not loaded"" 2020-11-19 15:54:15 -08:00
Ashok Vuyyuru
0d291ba235 msm: ipa3: Changes to control the IPA BW vote using debugfs
Changes to control the IPA BW vote persistent using debugfs.

Change-Id: Ie1edf294558a61af065f3fddec410808dc1abdd5
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-11-20 02:38:42 +05:30
Ashok Vuyyuru
5661882805 Revert "msm: ipa3: Assert the device when IPA FW not loaded"
This reverts commit c3b184eac4.

Change-Id: I0ddaca27bb7c6073026b6c408402903e8141f705
2020-11-18 23:33:24 +05:30
Chaitanya Pratapa
18daf0b0d4 msm: ipa: Fix considering prefetch buf size when mapping
IPA HW tries to prefetch 128 Bytes of additional memory when
dealing with filter/routing tables. This can result in overflowing
of memory if we map only the required size. Make changes to
consider prefetch memory when allocating routing/filter tables.

Change-Id: Id72e4df285a4683dddebb18d98bb9c4dd9667eeb
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-11-17 11:48:41 -08:00
qctecmdr
5b70c8435f Merge "msm: ipa3: Add debug logs to check unregister netdev completion time" 2020-11-17 07:09:11 -08:00
Piyush Dhyani
af06631642 msm: ipa3: Add debug logs to check unregister netdev completion time
Add debug logs to check how long unregister netdev completion taking
time.

Change-Id: I0cd7ec2655d32cfdf9b758f6147628c7fa33f568
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2020-11-17 12:11:55 +05:30
Bojun Pan
ab56bd6371 msm: ipa: vote the ipa clock before enable wdi channel
Move the PM activate before enable WDI channel.

Change-Id: I8146305b1548bdcb0d2c3d60d21854b35433fede
2020-11-13 08:55:13 -08:00
qctecmdr
36669cda18 Merge "msm: ipa3: Fix to move the spin lock handle to starting of struct" 2020-11-11 17:09:17 -08:00
Ashok Vuyyuru
261023d207 msm: ipa3: Fix to move the spin lock handle to starting of struct
Observing spin lock handle corruption in kasan testing. To avoid
handle corruption moving the spin lock handle to starting of struct.

Change-Id: Id77dd2deac1af80fde11418e96c56dd86c67599b
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-11-11 23:12:46 +05:30
qctecmdr
d51372e924 Merge "msm: ipa3: Fix to use proper clock timer" 2020-11-10 04:20:25 -08:00
qctecmdr
71301ad54e Merge "msm: ipa: Add additional trace points for rx/tx" 2020-11-08 15:48:32 -08:00
qctecmdr
a2be0d847d Merge "msm: ipa3: Support uc header proc ctx for DSCP insertion" 2020-11-07 15:34:40 -08:00
qctecmdr
d5309a03be Merge "msm: ipa: Add new IOCTLs to get and set MTU" 2020-11-05 23:05:51 -08:00
qctecmdr
0d30ec3305 Merge "msm: ipa3: Fix to avoid NULL pointer access" 2020-11-04 10:12:11 -08:00
qctecmdr
82e754aa5b Merge "ipa: Support IPA offload on msmnile_gvmq target" 2020-11-02 12:07:34 -08:00
qctecmdr
094097fc8b Merge "msm: ipa: IPA EMAC offload enhancement for HQX" 2020-11-02 09:15:33 -08:00
Akshay Pandit
12a1d076a2 ipa: Support IPA offload on msmnile_gvmq target
- Enable endpoints for msmnile_gvmq
- Dont bail out of preinit when CONFIG_INTERCONNECT disabled and
icc apis are stubbed out
- wait for 1000 msec while processing ioctl when delayed fw load
enabled
- Cleanup uc load notification handler during wdi disconnect.

Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2020-11-02 15:24:23 +05:30
Ashok Vuyyuru
f181465e1f msm: ipa3: Fix to avoid NULL pointer access
Adding changes to check ipa_q6_clnt pointer NULL or not
before accessing it.

Change-Id: I255dd021c9534fe6ca4d7b19c3b576a0d3c80c7d
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-11-01 22:50:55 +05:30
qctecmdr
c7e3334527 Merge "msm: ipa3: Fix to enable the HOLB during enable wdi pipe" 2020-10-29 14:32:04 -07:00
Ashok Vuyyuru
1ab1f500e3 msm: ipa3: Fix to enable the HOLB during enable wdi pipe
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>
2020-10-29 19:23:34 +05:30
Akshay Pandit
142b141245 msm: ipa3: Support uc header proc ctx for DSCP insertion
Add UC header proc ctx support for inserting DSCP in layer 3 hdr.

Change-Id: I976b1f2bbbfda2acb3dd52fdebab09ac1ed90ecd
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2020-10-29 16:15:31 +05:30
qctecmdr
b24be8f10d Merge "msm:ipa4: Fix race condition" 2020-10-28 16:55:22 -07:00
Praveen Kurapati
09b18bfd9e msm:ipa4: Fix race condition
Add change to fix race condition when freeing QMI
handles during SSR scenario.

Change-Id: Ie83f0386ea3bd9b40c4964327415421a144d4715
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2020-10-28 23:29:33 +05:30
qctecmdr
625c41160e Merge "msm: ipa3: Fix race condition during teardwon pipe" 2020-10-27 18:01:51 -07:00
Chaitanya Pratapa
7abd8fd060 msm: ipa: Add new IOCTLs to get and set MTU
Add a new IOCTL that will allow userspace modules to
get and set the v4/v6 mtu for a specific rmnet interface
for IPA driver and IPACM to use.

Change-Id: Iaf0685ef7095960ddd1cd3fff803956a18e0a942
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-10-27 16:33:28 -07:00
Ashok Vuyyuru
056ae77554 msm: ipa3: Fix race condition during teardwon pipe
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>
2020-10-28 00:03:46 +05:30
Bojun Pan
1bc2e39799 msm: ipa: IPA EMAC offload enhancement for HQX
Add support for contigious ring SMMU mapping.
Add Tx notify cb support for completions.

Change-Id: I3fa19a853311dd64ff7d247e6349009d692efb59
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-10-27 22:34:55 +05:30
qctecmdr
fd8a20143f Merge "msm: ipa: removing warn on no client callback" 2020-10-22 01:41:36 -07:00
qctecmdr
491c0e168c Merge "msm: ipa3: Assert the device when IPA FW not loaded" 2020-10-21 18:38:44 -07:00
Praveen Kurapati
c3b184eac4 msm: ipa3: Assert the device when IPA FW not loaded
Even though IPA FW is not loaded device continue perform
other operations. Due to which device moves to unstable
state. Added changes to assert the device when IPA FW not
loaded.

Change-Id: Ibc164ebfef382c0e06b0f9b81f91dcd5928a5f3c
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2020-10-21 18:18:22 +05:30
qctecmdr
59ba38c627 Merge "msm: ipa: Fix use-after-free in ipa3_alloc_counter_id" 2020-10-20 20:01:34 -07:00
qctecmdr
db1950ae4f Merge "msm: ipa3: Add max PDN num based on hardware version" 2020-10-20 02:46:57 -07:00
qctecmdr
c8e9fa2ecb Merge "msm: ipa4: Add change to stop netdev" 2020-10-19 18:16:47 -07:00
qctecmdr
e4e6dab6e5 Merge "msm: gsi: dump channel information" 2020-10-19 11:59:36 -07:00
Pooja Kumari
ccab5b663e msm: ipa3: Add max PDN num based on hardware version
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>
2020-10-19 13:56:00 +05:30
Praveen Kurapati
8fd807809b msm: ipa3: Fix to use proper clock timer
Add changes for active client logging info to use
proper timer and reflect number of active clients.

Change-Id: Ifff1616c88850ef8c604bca54957d953e5154598
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2020-10-16 16:24:33 +05:30
Praveen Kurapati
6e129eb1ea msm: ipa4: Add change to stop netdev
As SSR event is not received to APPS, some data
is sent to modem. Add change to stop netdev first
during SSR events and halt the modem channels.

Change-Id: Id62d5f0cf811a30dc796401c15cf1ed6b8425992
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2020-10-16 14:28:28 +05:30
Michael Adisumarta
d0c1bd6bdf msm: ipa: removing warn on no client callback
Removing warn on whilst no client call back on
pm register.

Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-10-14 15:32:50 -07:00
qctecmdr
9899d28499 Merge "msm: ipa: Fix rndis client disconnection gracefully" 2020-10-13 18:22:52 -07:00
qctecmdr
6be9b12bb8 Merge "msm: ipa3: Send enable force clear only for producer pipe" 2020-10-13 14:48:48 -07:00
Ashok Vuyyuru
5ed3cc3fcd msm: ipa3: Send enable force clear only for producer pipe
Enable forceclear only supported for producer pipe so
avoid sending the force clear command to consumer pipes.

Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
Change-Id: I850f360f18c6598af6914c9cd2c89cacad1ac4c9
2020-10-12 11:26:52 +05:30
qctecmdr
1903fc4aed Merge "msm: ipa: fix to delete napi tx object" 2020-10-10 14:01:25 -07:00
qctecmdr
08bab0a6ce Merge "msm: ipa: Fix setting disconnect in progress flag" 2020-10-09 17:56:28 -07:00
qctecmdr
222ef78f75 Merge "msm: ipa3: Fix to unmap sgt pages with correct size" 2020-10-09 12:49:33 -07:00
Chaitanya Pratapa
63d979273d msm: ipa: Fix rndis client disconnection gracefully
if there are packets coming from rndis client to device
IPA driver tries to gives those packets to network driver.
If at the same time USB disconnection is in progress, there
can be a possibility of race where callback is called with NULL
private data and it can result in a undefined behavior at client
driver. Make changes to add proper checks to handle the scenario
gracefully.

Change-Id: I7b3a5731ae21362dc67c53a2de464b17a223d4ba
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-10-09 18:21:50 +05:30
Bojun Pan
7e92b9e0e8 msm: ipa: Fix setting disconnect in progress flag
When USB is disconnected USB driver deregisters callback
with IPA driver. If there are exception packets coming to USB
driver at the same time there is a possiblity of race condition
where callback is de-registered and IPA driver tries to access it.
Make changes to restrict the callback access when disconnect is
in progress.

Change-Id: I85d2876847bfd0b23f19b2b81e1aab68729b2e31
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
Signed-off-by: Bojun Pan <bojunp@codeaurora.org>
2020-10-09 17:55:51 +05:30
Akshay Pandit
09b94adf7e ipa3: Fix to save sgt table info in proper context
Sg table tables are not contiguous page due to this while copying
total sg table it failing. To avoid this copying the each sg
table individually.

Acked-by: Akshay Pandit <pandit@codeaurora.org>
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-10-09 11:55:28 +05:30
Ashok Vuyyuru
eca7b0f54f msm: ipa3: Fix to unmap sgt pages with correct size
scatterlist pages not unmapped properly, it was leading to
issue when mapping the same pages again. Adding changes
to store scatterlist information properly and unmap the
page with correct length.

Change-Id: If11926608f633ce1d66150b1e4b6c515adc48049
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-10-09 11:48:46 +05:30
Chaitanya Pratapa
4265276331 msm: ipa: Add additional trace points for rx/tx
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>
2020-10-08 18:02:04 -07:00