Commit Graph

447 Commits

Author SHA1 Message Date
Linux Build Service Account
db37144643 Merge 86100918ae on remote branch
Change-Id: I81ea7be9139d6652ab4988e5da9aa2aa15e02070
2021-08-27 00:05:14 -07:00
qctecmdr
86100918ae Merge "msm: ipa3: Change spin lock in release_gsi_channel" 2021-08-17 16:19:48 -07:00
Sivakanth Vaka
c0b30d82be msm: ipa3: Change spin lock in release_gsi_channel
Changed the spin_lock in ipa3_release_gsi_channel
to spin_lock_irqsave to avoid getting interrupted
while stop channel is command is executed.

Signed-off-by: Sivakanth Vaka <svaka@codeaurora.org>
2021-08-17 21:10:15 +05:30
Jagadeesh Ponduru
194b0bdb4d msm: ipa3: code changes to fix kernel panic error
This Issue is seen by Enabling CONFIG_DEBUG_ATOMIC_SLEEP=y and boot the 
device.To avoid going into kernel panic state,changed the function
calls order of spin_lock() and idr_preload() after calling 
kmem_cache_zalloc().Originally, these two functions were called 
before calling kmem_cache_zalloc().

Change-Id: I2738548abd4148828e7d9436415c5c4d769680b9
Signed-off-by: Jagadeesh Ponduru <jponduru@codeaurora.org>
2021-08-16 16:32:06 +05:30
Linux Build Service Account
9727063733 Merge 56b50e9752 on remote branch
Change-Id: I20cd1c8e0978c98afc544281e0319c19246e117c
2021-08-13 00:46:14 -07:00
Goutam Bose
56b50e9752 Revert "ipa: Fix to match correct values after..."
This reverts commit bdbc1bf0a9.
2021-08-05 19:32:42 +05:30
qctecmdr
2b6bed5efc Merge "msm: ipa3: ODL endpoint configuration for monaco" 2021-08-04 07:13:48 -07:00
Armaan Siddiqui
bdbc1bf0a9 ipa: Fix to match correct values after copying
Changes done to copy num of rules from user space to
kernel side as earlier only payload was being copied.

Change-Id: I14e15fe0c6746226cc44d224d33c00e809cd69ca
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2021-08-04 10:37:41 +05:30
qctecmdr
68ed62f34f Merge "msm: ipa: fix potential race condition ioctls" 2021-08-03 17:15:28 -07:00
qctecmdr
209711a4fc Merge "msm: ipa3: Changes to remove the CNTXT_SCRATCH_1 config" 2021-08-03 15:49:38 -07:00
Ashok Vuyyuru
5ed13cc181 msm: ipa3: ODL endpoint configuration for monaco
ODL endpoint configuration for monaco target.

Change-Id: Ic842430d38287d02d44e15a4ee371bad912494c5
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-08-04 01:24:39 +05:30
Armaan Siddiqui
2cdeb1993e msm: ipa: fix potential race condition ioctls
There are potential race condition ioctls in
the IPA driver when it copies the actual
arguments from the user-space memory to the
IPA-driver. The fix is to add check on the
2nd copy to make sure the same payload size
is copied to the pre-allocated kernel memory
as during the 1st copy.

Change-Id: I3d31cb11a24e969db4fd1728cf6ab1ce983a75e9
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
2021-08-04 00:10:44 +05:30
Ashok Vuyyuru
50e1ec6d09 msm: ipa3: Changes to remove the CNTXT_SCRATCH_1 config
Context scratch 1 register configuration not required, So removing
these changes.

Change-Id: I91e336b1a37959cd20024170694db5c4498c13d7
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-08-02 23:55:50 +05:30
qctecmdr
c6ba8c1111 Merge "msm: ipa: fix use-after-free of rt_tbl" 2021-07-23 09:00:21 -07:00
Linux Build Service Account
0723d04520 Merge b6e679fd85 on remote branch
Change-Id: I811eec16034535a94fc85746389cf221c5fed665
2021-07-23 03:50:30 -07:00
qctecmdr
bbeb3bfa7a Merge "msm: ipa3: Disable HOLB for ODL pipe during suspend" 2021-07-20 15:05:50 -07:00
Piyush Dhyani
b6e679fd85 msm: ipa3: Fix to prevent Integer Overflow
The value of `req->filter_spec_ex2_list_len`
is user input via ioctl and it's type is uint32,
so an integer overflow may occur. Which can result
in out of bound access in the following loop. Now
add changes to prevent Integer overflow.

Change-Id: Ia29b9ddc674e5dd3d5baf6623cf0a464c156d8f7
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-07-16 02:40:06 -07:00
qctecmdr
39c0e50d30 Merge "msm: ipa3: ignore multiple crash" 2021-07-13 14:37:07 -07:00
qctecmdr
fa0195fc76 Merge "msm: ipa: fix IPA_COALESCE_DISABLE handling" 2021-07-13 07:21:13 -07:00
Pooja Kumari
842d33d296 msm: ipa3: ignore multiple crash
Ignore recursive panic and multiple crash instances.

Change-Id: If76d8bb095fa68979bf6a98929fd4629cc3a9c75
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2021-07-13 04:35:49 -07:00
Chaitanya Pratapa
76d313e0f7 msm: ipa: fix IPA_COALESCE_DISABLE handling
Make changes to populate qmap_id when disabling coalescing.

Change-Id: Iaf0981bd22948b87bb8f9c548fe74e789eaf689c
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-07-12 23:07:22 -07:00
Linux Build Service Account
585751dd4f Merge 21cd955642 on remote branch
Change-Id: I3887b77735e7a5cd992d6cfe366f1bba5f4120c5
2021-07-09 08:50:15 -07:00
qctecmdr
c9428af37c Merge "msm: ipa3: Add change to retry memory allocation on failure" 2021-07-08 02:52:11 -07:00
Praveen Kurapati
579642679d msm: ipa3: Add change to retry memory allocation on failure
Adding changes to retry with GFP_KENREL flag when memory allocation
fails with GFP_ATOMIC flag. Panic the device if after max retries
also memory allocation fails.

Change-Id: Ic9ad827757de92715be5acc5645b7e860b4bd0e4
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-07-07 18:00:39 +05:30
Ashok Vuyyuru
6a1c52956f msm: ipa3: Enable hardbyte limit for WAN consumer pipe
Enable hardbyte limit WAN consumer pipe.

Change-Id: I27c5af71aeadfb40e6870da24c0b69f1cd60d806
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-07-05 21:47:48 +05:30
qctecmdr
21cd955642 Merge "msm: ipa3: Add proper check for FNR stats query" 2021-06-30 18:33:21 -07:00
Goutam Bose
bf9c2b1168 msm: ipa: fix use-after-free of rt_tbl
Fix use-after-free of rt_tbl in __ipa_del_flt_rule
by checking if the rt_tbl is already freed.

Change-Id: I09541f65f474dc42f262c603d99f6bbcbb0ce8ec
Signed-off-by: Goutam Bose <gbose@codeaurora.org>
2021-06-30 12:04:40 +05:30
qctecmdr
7eee966ca0 Merge "msm: ipa3: Add proper check for incoming skb" 2021-06-28 08:00:07 -07:00
qctecmdr
61e1e42e6b Merge "msm: ipa3: Adding changes to read the return code if IRQ not received" 2021-06-25 04:40:41 -07:00
Praveen Kurapati
73e7ec7292 msm: ipa3: Add proper check for incoming skb
There is a chance that incoming skb can is NULL in TX direction.
Add proper check to avoid any NULL ptr access issue.

Change-Id: I8bd4524e20ddefb4bd30a3ca4a09b65370b9b4ae
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-06-24 21:59:18 +05:30
Praveen Kurapati
de4c6e68ce msm: ipa3: Add proper check for FNR stats query
In some targets, FnR tethering stats query support
is not present. Add changes to check for support
present or not before query.

Change-Id: I415e019ff0cb01cf09c8ba6cd9fef44ae815c11b
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-06-24 10:23:21 +05:30
Linux Build Service Account
0953ca8713 Merge 3cb33329d4 on remote branch
Change-Id: Ib1689840b6e0758e6f7c5ce4f1d8131659f44d6d
2021-06-23 05:14:52 -07:00
Ashok Vuyyuru
719233800c msm: ipa3: Disable HOLB for ODL pipe during suspend
1. Disable HOLB for ODL pipe during suspend to avoid dropping the packet
2. Enable HOLB while unsuspend the pipes.
3. Enable drop stats for ODL pipe.

Change-Id: Id0a5871ebe4a0925c60dea39f197af9e1892d05e
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org
2021-06-16 21:05:25 -07:00
qctecmdr
3cb33329d4 Merge "msm: ipa3: add rmnet_ctl enablement check" 2021-06-13 15:43:06 -07:00
Praveen Kurapati
b3f4d167be msm: ipa3: add rmnet_ctl enablement check
Add changes to check if rmnet_ctl support present
or not.

Change-Id: Ic99811ffcedbe474eeb80637e61901b55e448372
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-06-12 21:19:19 +05:30
qctecmdr
65331c0b33 Merge "msm: ipa3: Add check to avoid Quota indication for WLAN" 2021-06-08 10:38:38 -07:00
Linux Build Service Account
27fbf2ce27 Merge 04a5cec7b7 on remote branch
Change-Id: I6d689f1715663f9ff682d563da488c9cba82c285
2021-06-08 02:25:11 -07:00
Praveen Kurapati
b946aea8f0 msm: ipa3: Add check to avoid Quota indication for WLAN
Quota indication is not yet supported on WLAN Iface.
Add check to return if the request comes for WLAN Iface.

Change-Id: Ib183d0ed21a87f6f759af8d4e5bc4093dffd9374
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-06-08 11:05:04 +05:30
qctecmdr
3f28e535f6 Merge "msm: ipa3: Fix to changes the ring variable type" 2021-06-07 04:32:18 -07:00
Ashok Vuyyuru
e15d5ede0b msm: ipa3: Adding changes to read the return code if IRQ not received
In some cases GP_INT1 interrupt not receiving even GSI FW send the
interrupt. In those cases cases reading the flow control command return
code to check completion.

Change-Id: I329550ab94af9caac870c6050761d3701f0517cd
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-06-05 16:25:56 +05:30
Ashok Vuyyuru
a890ae3b7b msm: ipa3: Fix to use right casting to avoid the compilation issue
Caller function passing the constant value converting to int
pointer will cause the problem. Adding changes to use right casting
to avoid compilation issue.

Change-Id: I8440f16e4e53e0788c2d1eae35f4b6ebf3178ead
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-06-05 00:46:16 +05:30
Raghavendar rao l
92fa5bc4f6 msm: ipa: Issue with Pointer type conversion.
Updated the pointer type cast with valid data type.

Change-Id: Ibd1f87eab0aac78551f307534508cfa84eae988a
Signed-off-by: Raghavendar rao l <rlomte@codeaurora.org>
2021-06-02 15:24:10 +05:30
Ashok Vuyyuru
e16fcc6ee1 msm: ipa3: Fix to changes the ring variable type
With u16 variable not fitting the higher ring size. So
adding changes to change ring type to u32.

Change-Id: I8443508fee8eb5180d5300611bc01bc4df68bcbd
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-06-01 22:00:10 +05:30
qctecmdr
04a5cec7b7 Merge "msm: ipa3: Fix to changes the ring variable type" 2021-05-27 15:57:22 -07:00
Ashok Vuyyuru
9eea30c773 msm: ipa3: Fix to changes the ring variable type
With u16 variable not fitting the higher ring size. So
adding changes to chnage ring type to u32.

Change-Id: Ib16e2426071c642f7e25beb022661dfa914cd0c4
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-05-27 13:39:00 +05:30
Praveen Kurapati
94386db8e6 msm: ipa3: Add proper checks for low lat pipe and 32-bit specific
For some targets lowlat support is not present.
Add changes to check if low lat support is present
or not. Also for 32-bit targets observed count shift error.
Added proper checks to overcome the issue.

Change-Id: Iab3b7d460b48ce8ff4e98da297eb2e7b69e3db13
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-05-26 17:04:44 +05:30
qctecmdr
68c091ef5e Merge "msm: ipa3: Adding trace in lan path" 2021-05-25 03:31:33 -07:00
qctecmdr
570b553426 Merge "msm: ipa3: Changes to call uC setup event ring in connect WDI pipes" 2021-05-24 16:25:55 -07:00
qctecmdr
6d4627dfdc Merge "msm: ipa: Add MONACO to dataipa MAKEFILE" 2021-05-24 14:59:23 -07:00
qctecmdr
d99ca844e1 Merge "msm: ipa: Clear IEOB for stopped channels with MSI IRQ" 2021-05-24 13:33:16 -07:00