Commit graph

474 commits

Author SHA1 Message Date
Linux Build Service Account
eba9f2a21e Merge 179ab9d536 on remote branch
Change-Id: I89e345365222a2ee3ff56a5b139f0154739990bb
2022-06-17 05:12:48 -07:00
Raghavendar rao l
179ab9d536 msm: ipa3: handling MISRA issue
Added some NULL checks to avoid memcpy with zero size,
Updated checks for unsigned integer variables.

Change-Id: Ia426da6b1af04fb5226ba9bbf22f0fce11e4dff0
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2022-06-01 15:01:15 +05:30
Linux Build Service Account
ba8501751d Merge f2729f4a13 on remote branch
Change-Id: Ie46f75396403dd65a5a50665736782589a7d6bcd
2022-05-10 06:41:08 -07:00
qctecmdr
f2729f4a13 Merge "msm: ipa3: Handle race condition to avoid NULL access" 2022-04-26 08:36:34 -07:00
qctecmdr
00b46c6d86 Merge "msm: ipa3: Reduce the QMI timeout value to avoid race condition" 2022-04-26 06:13:57 -07:00
Raghavendar rao l
1a79536d0e msm: ipa3: Handle race condition to avoid NULL access
Updated change to avoid race condition and NULL pointer access,
In case of SSR and ioctl call while performing QMI transaction.

Change-Id: I09dbf33d76a3a0d9e4917e62aaf1257a1abe2db9
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2022-04-25 08:58:25 +05:30
Ashok Vuyyuru
9c3cb3f994 msm: ipa3: Reduce the QMI timeout value to avoid race condition
In SSR scenario if QMI response delayed SSR events getting timeout,
To avoid this issue reduce the QMI timeout value from 60sec to 10sec.

Change-Id: Ib0113a91f9bd60b3ea0e374bf249d4859a22a040
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-04-22 03:05:53 -07:00
Vinayaka B M
c36b185506 msm: ipa: Set the logbuf NULL after destroy
Set the ipa3_ctx->logbuf NULL after destroy,or
IPAERR will use the ipa3_ctx->logbuf after free it,
that can make crash

Change-Id: I470c4a043d426d7620c01fadac1f1cd12ad54b08
2022-04-22 09:08:14 +05:30
Debadutta Muni
7c043becc9 Merge commit '8aa0d102d8' into data-kernel.lnx.1.1.r6-rel
Change-Id: I84c0af1dee6f1a2a3ddebb8ab7802f8ff3115095
2022-04-18 17:47:22 +05:30
Cheng Zeng
8aa0d102d8 msm: gsi: Fix the incorrect evt ring pointer
The pointer should be event ring pointer, not transfer
ring pointer, it has chance to get wrong upper 32 bits
when smmu is disabled.

Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
2022-03-24 16:09:28 +08:00
Ashok Vuyyuru
1024d06f3f msm: ipa3: In deep sleep scenario destroy/ reinitialize uC interrupts
In deep sleep suspend/resume scenario destroy the uC interrupts
in suspend and reinitialize the interrupts in resume

Change-Id: Ib3631cef8e1e78651b6b79aef7f3d65dae0411c2
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-03-17 19:19:06 +05:30
Linux Build Service Account
56e3978b76 Merge c94d56d42b on remote branch
Change-Id: I83d9329d09877f99ad68a03f17c0c81fec2ee987
2022-03-16 06:29:15 -07:00
Linux Build Service Account
b5f1614d6a Merge 9c90eafb19 on remote branch
Change-Id: I0c2d2df19655904715fe70cfc7b31881abfa949d
2022-02-14 22:03:41 -08:00
qctecmdr
c94d56d42b Merge "msm: ipa3: Changes to resume only suspend operation complete" 2022-02-08 18:03:49 -08:00
Ashok Vuyyuru
3b56c6e41a msm: ipa3: Changes to resume only suspend operation complete
In suspend abort scenario before receving suspend callback and resume
it again causing issues. To avoid this scenario only if suspend completed
doing resume operation.

Change-Id: I0cf08b4e9ab4f74c44d4bcb14f9472b8332b5f7b
2022-02-03 21:49:40 +05:30
qctecmdr
9c90eafb19 Merge "msm: ipa3: Disable gsi fifo and test bus registers" 2022-02-01 22:06:55 -08:00
Jagadeesh Ponduru
dc1c1a2252 msm: ipa3: Disable gsi fifo and test bus registers
Update change to disable gsi fifo and gsi test bus
registers as these cannot be accessed through IPA_AP.

Change-Id: Icd7c85101a8997eff08acc98dbc1ead7b6067c81
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-02-01 22:32:17 +05:30
Himansu Nayak
fd9586ccaf msm: ipa3: Fix to validate the NAT table entries during NAT table init
During NAT table Initialization parameter pass from HLOS, if max/zero
table entries passed it was leading to out of bound read. Adding checks
to validate the table entries before passing to NAT table parameter.

Signed-off-by: Himansu Nayak <quic_himansu@quicinc.com>
2022-01-31 08:07:32 +05:30
Linux Build Service Account
77e4fcfe54 Merge b770fe0aa5 on remote branch
Change-Id: Idbfb76d04540edf7de02c60fb7c06aa68975bfa7
2022-01-27 07:40:27 -08:00
Raghavendar rao l
7705d29b41 msm: ipa3: Fix to avoid the boot up crash in non smmu targets
Updated change to perform ipa pre initialization even before
attempting to load the ipa firmware along with pdev node
initialization for non smmu target.

Change-Id: I04421c1f11f0c7b4d7a0f30135741946b157aa2c
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2022-01-26 21:16:25 -08:00
qctecmdr
858b405f06 Merge "msm: ipa3: Deepsleep enable changes" 2022-01-24 23:22:45 -08:00
Srikanth Vakiti
fd9b880034 msm: ipa3: Disable of ODL offload checksum
ODL endpipe offload checksum disabled

Change-Id: I889bdea3ff6287188292ca17aa3df9b579a4fa8e
Signed-off-by: Vakiti Srikanth <quic_vakiti@quicinc.com>
2022-01-21 08:48:22 -08:00
Ashok Vuyyuru
2a2981c643 msm: ipa3: Deepsleep enable changes
Adding support to deepsleep scenario.

Change-Id: I2b388396cf9a7f26f77bbcd49c1014e16475a980
2022-01-21 21:48:07 +05:30
qctecmdr
a3a1d80439 Merge "msm: ipa3: Changes not allow ODL pipe setup during SSR" 2022-01-20 15:17:11 -08:00
Linux Build Service Account
5294c2b484 Merge a17d83f9bb on remote branch
Change-Id: I41407009f44c659423566d37c7f5a99051cad345
2022-01-18 00:07:03 -08:00
qctecmdr
b770fe0aa5 Merge "msm: ipa3: enable ipa register save when device is about to crash" 2022-01-16 21:55:41 -08:00
Raghavendar rao l
8918458fc7 msm: ipa3: enable ipa register save when device is about to crash
Changes to save the IPA/GSI hardware contents onto ipa_reg_save
structure before to crash from APPS side, This support is
starting from IPA 4.5 version uptill 4.11.

Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>

Change-Id: I1680cf7bfab56d4a4888cf90874b92b999c3c9c9
2022-01-12 19:21:13 +05:30
qctecmdr
a17d83f9bb Merge "msm: ipa: use lower order pages" 2022-01-10 23:14:11 -08:00
Ashok Vuyyuru
0c348e3f80 msm: ipa3: Changes not allow ODL pipe setup during SSR
When SSR in progress not allowing to setup ODL pipe.

Change-Id: Ied44a7bafdf90cff2f3b7619da88fe3c31d18956
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-01-07 00:54:28 +05:30
Ashok Vuyyuru
24278e36be msm: ipa: use lower order pages
When order 3 pages are not available, make changes to use
lower order pages to ensure buffers are provided to HW.

Change-Id: I9eea764d678820b0d3f485525310c506ea29c45e
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-01-03 15:14:56 +05:30
Jagadeesh
1234f5d764 msm: ipa3: fix to cleanup the dma allocation.
When commit header table from memory to HW, adding fix to clean
dma allocation if it fails in multiple mapping attempts and also to
clean the allocated mapping of hdr table after commit to HW.

Change-Id: Icbf1b855e34625ffe8f8356a59cddf85a91b0160
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2021-12-22 23:15:45 +05:30
Linux Build Service Account
2da4708aa6 Merge 93c0b93ba9 on remote branch
Change-Id: Ifce620c136f46450e15f14fd223f6b6fc1d7db16
2021-12-14 05:54:20 -08:00
qctecmdr
1ed7eace10 Merge "msm: gsi: Read 64-bit ring RP value from registers" 2021-12-12 23:27:55 -08:00
Cheng Zeng
37dc636f49 msm: ipa: Get device pointers if smmu is disabled
If arm-smmu is not configured, smmu cb will not be
probed, still need to get pdev and uc_pdev.

Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
2021-12-01 19:04:57 +08:00
Cheng Zeng
e091b01ac4 msm: gsi: Read 64-bit ring RP value from registers
The DMA address allocated may be in 64-bit address
range if dma mask is set to 64-bit, the MSB register
value is required.

Signed-off-by: Cheng Zeng <quic_chenzeng@quicinc.com>
2021-12-01 15:14:48 +08:00
qctecmdr
93c0b93ba9 Merge "msm: ipa: add skb recycle if dma fails during replenish" 2021-11-11 23:49:38 -08:00
Michael Adisumarta
676280f355 msm: ipa: add skb recycle if dma fails during replenish
Add skb recycle when dma mapping fails during rx cache
replenishing.

Change-Id: I4ea2b1581f4d9a404248ce39bb916e58e368b7e4
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-11-11 09:48:53 -08:00
Michael Adisumarta
f34eede3cb msm: ipa: remove initing head again if dma mapping fails
Remove Initializing rx_pkt link if dma mapping fails.

Change-Id: I49d08555c875fc9039805ef8775be3b676f51d08
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-11-11 09:48:14 -08:00
Linux Build Service Account
d24c105290 Merge c01e8606be on remote branch
Change-Id: I5a521752d2884fdb510be43ad984bf3222e815f9
2021-11-10 22:25:18 -08:00
qctecmdr
c01e8606be Merge "msm: ipa3: Adding changes to support the deep sleep mode" 2021-10-29 14:28:41 -07:00
Raghavendar rao l
7f159650b1 msm: ipa3: Retry to attach smmu nodes if fails
Updated change to retry attaching smmu nodes if it fails, in a
deffered work queue with 500msec delay.

Change-Id: Ia54d801543224caf81085fedfd16305eca99995e
Signed-off-by: Raghavendar rao l <rlomte@codequrora.org>
2021-10-29 12:23:19 +05:30
Ashok Vuyyuru
1573aa5bb1 msm: ipa3: Adding changes to support the deep sleep mode
Adding changes to support the deep sleep mode on monaco
target.

Change-Id: I50016848fde9533a856203bc2ad89bf851179a7b
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2021-10-29 00:29:29 +05:30
Ashok Vuyyuru
cfe6d558b2 msm: ipa3: Fix to NULL terminate the header pointer in proc header table
While resetting the header rules if it find invalid header ID it
will return before freeting proc header table it was leading to use
after free when accessing the header pointer from proc header table.
Adding changes to NULL terminating header pointer in proc header table
after header table deleted from the list.

Change-Id: If270d855d3907e61368336316161a250053e1e62
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-10-20 01:13:15 +05:30
Jagadeesh Ponduru
22bd494f8e msm: ipa3: Pointer Check and Fix overflow in Header Deletion
During header deletion, if there is a HPC referencing to a header,
and the header is deleted, the later commit will cause
writing garbage values to the HW during commit.

Change-Id: Ib8bb490e38c57d975c21e5848850cd79263c95fe
Signed-off-by: Jagadeesh Ponduru <jponduru@codeaurora.org>
2021-10-19 11:42:33 +05:30
Linux Build Service Account
c6a4540a6e Merge 7db2d04afd on remote branch
Change-Id: I96150648dba8e883966547ece305d01941d97000
2021-10-11 07:04:59 -07:00
qctecmdr
0a09ea53e5 Merge "msm: ipa3: Add change to not reset HOLB timer" 2021-10-09 10:26:20 -07:00
Piyush Dhyani
53b139775c msm: ipa3: Queue nop desc again if it fails.
Currently during nop desc send, we are setting
nop pending flag to false before queing desc,
due to which we are not able to queue nop desc
again if it fails for first time. Now setting
nop pending flag to false only if we successfully
queued nop desc.

Change-Id: Ice0b3726f2ff0e81c0e5b041346e0ba06619ef62
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-10-08 02:33:07 -07:00
qctecmdr
282b45f3c2 Merge "msm: ipa3: increasing the uC interrupt timeout value" 2021-10-07 09:24:55 -07:00
qctecmdr
a2f7bb1dbd Merge "msm: ipa3: Add retry attempts for subsystem loading" 2021-10-07 03:40:05 -07:00
Jagadeesh Ponduru
2b90d4b534 msm: ipa3: increasing the uC interrupt timeout value
Increased the timeout value of ipa3_uc_send_cmd
from 10 to 20 in ipa3_uc_debug_stats_alloc function.

Change-Id: I5be5839c60b84226872a22e8a05bb712e395e62d
Signed-off-by: Jagadeesh Ponduru <jponduru@codeaurora.org>
2021-10-07 11:05:59 +05:30