Commit Graph

289 Commits

Author SHA1 Message Date
Praveen Kurapati
db842a7f7d msm: ipa3: Add change to increase timeout value
Add change to increase the stop channel retry timeout value
to avoid race condition cause by AP retrying to stop channel
and GSI trying to send stop channel command.

Change-Id: I405f923d9bc87f7b8612ded9137d7b8d23eb37e8
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2020-12-16 12:58:09 +05:30
qctecmdr
737c914a99 Merge "msm: ipa3: Fix to unlock mutex before return" 2020-12-08 09:44:28 -08:00
qctecmdr
4034f52fad Merge "msm: ipa: add check to see if pm client is not NULL" 2020-12-03 18:02:16 -08:00
Ashok Vuyyuru
d355b6fe56 msm: ipa3: Fix to unlock mutex before return
Adding changes to unlock mutex before return from QMI
send request.

Change-Id: I39c32219db69fbc41b30507759bed16acb976005
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2020-12-03 20:32:25 +05:30
qctecmdr
c19f806104 Merge "msm: ipa3: Fix to remove max poll count in gsi isr handle" 2020-12-02 17:02:42 -08:00
Ashok Vuyyuru
c341ec01cc msm: ipa3: Fix to remove max poll count in gsi isr handle
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>
2020-12-03 01:15:37 +05:30
qctecmdr
f9ecad48ac Merge "msm: ipa: fix stats dump" 2020-12-01 21:32:30 -08:00
qctecmdr
07d9797978 Merge "msm: ipa3: Add check to validate rule_cnt" 2020-11-25 19:01:51 -08:00
Chaitanya Pratapa
cb6aad2d4d msm: ipa: fix stats dump
Make changes to fix the stats collection.

Change-Id: Ib8ea3ca44951186ec472578fd13218bbc8c0120c
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2020-11-24 12:28:55 -08:00
Akshay Pandit
d71a7a3641 msm: gsi: Define scratch reg for gsi v1 header
Define scratch register 6 & 7 for gsi v1 targets to avoid
compilation failure.
Derive the hw_type index after platform type and auto/mhi configs
are already stored in ipa3_ctx.

Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2020-11-24 11:07:52 +05:30
Praveen Kurapati
fd57264b26 msm: ipa3: Add check to validate rule_cnt
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>
2020-11-24 10:09:16 +05:30
qctecmdr
3da31ea0a2 Merge "msm: ipa3: Fix to unmap LOW LAT consumer pipe buffers" 2020-11-20 04:33:27 -08:00
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
Michael Adisumarta
fb711db3c7 msm: ipa: add check to see if pm client is not NULL
Add check to see if it is freed in pm deregister context
and trying to read again after free.

Change-Id: I764f012d0c7cd53f126aee221f7c1d6a914b7390
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-11-19 13:04:19 -08:00
Ashok Vuyyuru
3b10b9d33b msm: ipa3: Fix to unmap LOW LAT consumer pipe buffers
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>
2020-11-20 00:44:26 +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