Commit Graph

688 Commits

Author SHA1 Message Date
Sivan Reinstein
d1dfec34da msm: gsi: add gsi profiling stats and fw version to debugfs
Add GSI profiling stats data and the GSI FW version to debug fs.

Change-Id: I5749339f5ec9656e636a512668025bb09a97a3ec
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2021-04-29 09:39:20 +03:00
Amir Levy
3a5b18e7be msm: ipa: Add wrb_mod_threshold to AQC evt scratch
Add AQC head_ptr_wrb_mod_threshold to gsi event scratch
and configure according to required value.

Change-Id: Ie1234d76b20fe9e17d5a0a295f748a5876ef4ddd
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-04-29 08:51:07 +03:00
qctecmdr
53ed770d59 Merge "msm: ipa5: check if the default channel is already tore down" 2021-04-28 19:52:18 -07:00
Bojun Pan
c42d56691f msm: ipa: Workaround for MHI target
Remove the gsi type pending irq check for MHI target.
We observe the HW generating the pending IEOB irq for DMA SYNC channel
as well as MHI UL channel.

Change-Id: Ib578e3e7fcf58e7cc20501994a35f14d98eda1b6
2021-04-28 16:49:13 -07:00
Bojun Pan
76a366567e msm: ipa: update the rule priority
Correct the rule priority for IPA5.0.

Change-Id: Iff84c41d1def9b85d221f2fba03d52024ab9b000
2021-04-28 16:44:51 -07:00
Bojun Pan
63287fc3fe msm: ipa: GSB support
Add ODU pipe for GSB support.

Change-Id: I0379ce7e5d4cbd4c6066e5288a373006eb81e2f3
2021-04-28 12:36:20 -07:00
qctecmdr
450cdebeab Merge "ipa: Change IPA EP 34 GSI channel allocation" 2021-04-28 07:04:40 -07:00
qctecmdr
8060032166 Merge "msm: ipa: fix null pointer exception in rmnet_ipa" 2021-04-28 06:14:40 -07:00
qctecmdr
42c809b7b5 Merge "ipa: Move FLT rules to SRAM for ETH PROD client" 2021-04-28 04:28:38 -07:00
qctecmdr
62e9bc1275 Merge "ipa: Update SRAM partitioning for IPA5.0" 2021-04-28 03:39:14 -07:00
Amir Levy
a348c2498b msm: ipa: update IPA SRAM mapping
Update IPA SRAM mapping to accommodate with RQoS Q6
changes. Modem memory is increased and NAT table moved
after modem memory to allow it to expend once needed.

Change-Id: I803693f2a337abb2f7219e6de48d25a57111df5b
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-04-28 13:25:47 +03:00
Chaitanya Pratapa
457beda682 msm: ipa: update IPA clock plan for 5.1
Make changes to vote for right IPA clock frequency for
targets with IPAv5.1 and above.

Change-Id: I156b0ff0886133f8d46b692c99543bc9912d05b0
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-04-27 23:54:25 -07:00
Chaitanya Pratapa
16e202768d msm: ipa: fix null pointer exception in rmnet_ipa
Make changes to check if rmnet_ipa3_ctx is non null before
accessing it.

Change-Id: I26286cb43c2a116d78fbc072291454cc43e02ee5
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-04-27 23:25:49 -07:00
Michael Adisumarta
332e9a23de msm: ipa5: check if the default channel is already tore down
Stop only coalescing pipe if default pipe is not valid or
already tore down.

Change-Id: I9a6f65840bd6bbbb0e302d0d2c048a3e58fc88e1
Signed-off-by: Michael Adisumarta <madiusma@codeaurora.org>
2021-04-27 15:35:31 -07:00
Chaitanya Pratapa
5ad7dff0bc msm: ipa: page pool recycling enhancements
Added the following enhancements to page pool recycling logic.
1) Updated page pool implementation to use list instead of array.
2) Added provision to check for configurable number of list
elements when checking for free pages.

Change-Id: I01c43be5a169c1438fb29b8179854985e199d055
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-04-27 10:44:05 -07:00
Ilia Lin
b107cbe836 ipa: Change IPA EP 34 GSI channel allocation
Change IPA EP 34 GSI channel allocation to channel 8,
as per the latest EP configuration table.

Change-Id: I993c799429555d29120b8181f3d10140ce0c68cf
Signed-off-by: Ilia Lin <ilialin@codeaurora.org>
2021-04-27 16:54:36 +03:00
Sivan Reinstein
ff5fa36289 ipa: Move FLT rules to SRAM for ETH PROD client
Move Non-Hash FLT table for ETH PROD client to SRAM

Change-Id: I03aeb0669ca54bc09f880f2ddfed97d540385a00
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2021-04-27 11:15:21 +03:00
Sivan Reinstein
a33e546e48 ipa: Update SRAM partitioning for IPA5.0
Update SRAM partitioning for IPA5.0 to support
Non-Hash IPv4 and IPv6 filtering rules tables in SRAM
In addition, seperate IPA5.0 and IPA5.1 SRAM partitioning.

Change-Id: I1c11212b0bb86305cd84e447eefbbf6d8f253cc0
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2021-04-27 11:15:15 +03:00
Skylar Chang
90b154b71b msm:ipa: DDR to SRAM optimization for eth
1. Move default rule to hashable.
2. Move empty flt/rt table to SRAM location.

Change-Id: Ic77eecb56bd8808b8e5411cb27acaeae6f7c320a
2021-04-26 16:53:31 -07:00
qctecmdr
e0364fbb38 Merge "msm: ipa3: Remove ep suspend during usb resume." 2021-04-22 22:56:33 -07:00
qctecmdr
ee7a175c69 Merge "msm: ipa: APQ related fixes" 2021-04-22 19:30:43 -07:00
qctecmdr
bb51a5e7a5 Merge "msm: ipa3: add modem BW voting change support" 2021-04-22 17:47:20 -07:00
Michael Adisumarta
ff7b2ecc15 msm: ipa: rate limiting the warning
Rate limitting the warning if client doesn't have
callback.

Change-Id: I09b02181e4c34ecf342e150de76eace9341a0c0a
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-04-20 22:39:40 -07:00
Piyush Dhyani
5cda42ee08 msm: ipa3: Remove ep suspend during usb resume.
With unified API changes, on usb channel during
resume ep suspend bit was not cleared which was set
during suspend channel. Now Removing ep suspend bit
while resuming channel.

Change-Id: Ib165299ac67d05139c7a964ac3464663d61260a1
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-04-20 14:41:01 +05:30
Michael Adisumarta
d8d37f5262 msm: ipa3: add modem BW voting change support
Add the QMI support to change the modem
Bandwidth voting throughput on APQ side
to change the IPA clk scaling.

Change-Id: I904019b4f71fde9edea90dfc62afacb8d65bbd1d
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-04-16 13:20:23 -07:00
Chaitanya Pratapa
9faacc85d2 msm: ipa: APQ related fixes
Make changes to not initialize rmnet_ctrl module
for APQ platforms. Also make changes to fix the TX instance
for MHIP pipe for 5_1.

Change-Id: I2295bf7a0703650f89f18d063297c687604888e0
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-04-15 23:33:37 -07:00
Piyush Dhyani
d07a70bb2c msm: ipa3: Support PM API For WLAN.
Adding wrapper API to support PM
approach for WLAN.

Change-Id: I8c234f71ff4a254dcbd9d68add893d439bcfb0cb
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-04-15 22:56:19 +05:30
Michael Adisumarta
769eda8373 msm: ipa5: avoid NULL access in qmi_send_req_wait
Avoiding NULL ptr access in ipa3_qmi_send_req_wait function.

Change-Id: I24e9650acfc210868a759a4d964023eebfc9d2d2
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-04-13 19:34:58 -07:00
qctecmdr
6342a2adc8 Merge "msm: ipa: fix issue on dump collection" 2021-04-12 21:27:55 -07:00
qctecmdr
2e3c191514 Merge "msm: ipa: Fix TX NAPI handling" 2021-04-12 16:36:37 -07:00
Amir Levy
8bd287bcb4 msm: ipa: add unit tests for NTN3 offload
Add a test suite to test Neutrino 3 hardware offload

Change-Id: I399fdc79dcf0da408ffe41e5638aff1f95461898
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-04-11 10:44:56 +03:00
Amir Levy
4d4a72f1da msm: ipa: Add NTN3 debug stats support
Add debugfs support for NTN3 stats.
Collect stats from uC add print from debugfs.

Change-Id: Iaf31beedb7403ee924a170f3b6c45ce0b78b7680
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-04-11 10:44:56 +03:00
Amir Levy
9115a93389 msm: ipa: add NTN3 offload support
Add NTN3 gsi scratch and protocol.
Add NTN3 support in ipa_eth.

Change-Id: I7dde0f21711617770ea31e325db803108d929565
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2021-04-11 10:44:56 +03:00
qctecmdr
b8c2d297fc Merge "msm: ipa: add support for data warning limit" 2021-04-09 23:44:20 -07:00
qctecmdr
e5903abc32 Merge "msm: ipa3: return fault when adding rt rules fail" 2021-04-09 21:58:20 -07:00
Chaitanya Pratapa
4e0c7883b4 msm: ipa: add support for data warning limit
Make changes to add support for data warning limit.

Change-Id: Ifb80a4b5c8d2c15e39e75c084d149ab754613481
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-04-09 16:46:10 -07:00
Michael Adisumarta
66a2a3a5c7 msm: ipa3: return fault when adding rt rules fail
Return failure when default wan rt table installation fails.

Change-Id: Ia050a06ac7d99ad1dd097b8a88dc7d0133d2825f
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-04-09 16:14:18 -07:00
Chaitanya Pratapa
407bf99e8f msm: ipa: Fix TX NAPI handling
Make changes to ensure NAPI is scheduled only once.
Make changes to use right register
GSI_EE_n_CNTXT_SRC_IEOB_IRQ_CLR_k for clearing interrupt.

Change-Id: I8de97f584ac4915d59b6716e7dff0c181a48cd1e
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-04-09 15:40:50 -07:00
qctecmdr
b6d006b907 Merge "msm: ipa3: enable clk before SRAM memory read" 2021-04-07 23:47:22 -07:00
qctecmdr
d440ac445a Merge "msm: ipa: Fix updating the right pipe mask for hw stats" 2021-04-07 06:02:16 -07:00
Bojun Pan
5737f02b62 msm:ipa:disable flow control for mhi qmap pipe
Disable GSI enhanced flow control for mhi qmap pipe.

Change-Id: I2420ea3f76f070e3491706e76580c50737b87a7e
2021-04-06 12:19:13 -07:00
Pooja Kumari
3694ab4282 msm: ipa3: enable clk before SRAM memory read
If active client is zero, clk is disabled and SRAM
memory read cause for crash. Enable clk before SRAM
based NAT table read.

Change-Id: I29bd035e0251d3f9959e9af4be53a1fd2ef7f710
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2021-04-06 18:18:08 +05:30
Chaitanya Pratapa
b0bdcf56b0 msm: ipa: Fix updating the right pipe mask for hw stats
Make changes to update the right pipe mask for tethering
stats. Also the dst_mask now points only to producer pipes i.e
bit 0 indicates the first producer pipe. Make changes to
right shift by first producer pipe number.

Change-Id: I43776ce96fdda5711e73689040c15a2c46bb6c2f
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-04-05 17:19:40 -07:00
Bojun Pan
3231a465e4 msm: ipa: fix issue on dump collection
Adding the clock reference count back as the clock is not
actually disabled in this assert.

Change-Id: I6532749bd6ffe36e87e725088e13a11bf4635dbc
2021-04-05 12:59:04 -07:00
qctecmdr
5ae5eaa2c4 Merge "ipa: Fix RT \ FLT local tables" 2021-04-05 08:16:57 -07:00
Bojun Pan
6b1e1ff2f9 msm: ipa: remove redundant check for KW issue
Remove redundant NULL check.

Change-Id: Ic9c00ba527bab1063cee0e089184f97356c99048
2021-03-31 15:44:21 -07:00
qctecmdr
6ce2951938 Merge "msm: ipa: enable ULSO for WWAN UL pipe" 2021-03-31 08:29:10 -07:00
Sivan Reinstein
289607eec1 ipa: Fix RT \ FLT local tables
Fix code related to RT \ FLT tables in SRAM

Change-Id: I3f550a19fd0d0b962800cd82b8e23e9af8d9b942
Acked-by: Nadav Levintov <nadavl@qti.qualcomm.com>
Signed-off-by: Sivan Reinstein <sivanr@codeaurora.org>
2021-03-31 15:59:01 +03:00
Chaitanya Pratapa
a138ed4182 msm: ipa: Fix doing polling after NAPI reschedule
Make changes to do polling in same NAPI context after
NAPI is rescheduled as we can be stuck forever in
same NAPI context.

Make changes to not assert in case clock is not active
when handling TX interrupt as the packet would have been
processed already as part of NAPI reschedule.

Change-Id: I65c87fa31899a745ff99cc7708eed79927263815
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-03-26 11:13:03 -07:00
Bojun Pan
d96181ac68 msm: ipa: enable ULSO for WWAN UL pipe
Enable ULSO for WWAN E2E use case.
Change-Id: I3608b15abebea45c9b1b4642f7ec167aba0733d5
2021-03-25 16:09:48 -07:00