Графік комітів

972 Коміти

Автор SHA1 Повідомлення Дата
qctecmdr
452f681fa5 Merge "ipa: Add TSP feature" 2022-04-29 02:08:37 -07:00
qctecmdr
ce18425612 Merge "msm: ipa3: fix to cleanup the dma allocation." 2022-04-28 19:28:15 -07:00
qctecmdr
a9f112c03f Merge "ipa: Added traces in dataipa for rmnet low latency" 2022-04-28 18:50:11 -07:00
Ilia Lin
ce9c934ced ipa: Add TSP feature
The change adds Traffic Shaping and Policing (TSP) feature
to the IPA driver:
* HAL addition for TSP tables translation to and from HW format
* Core TSP for table management
* IOCTL handlers for table management commands from userspace
* Debugfs addition that dumps the TSP configuration

The whole feature is added under CONFIG_IPA_TSP kbuild switch.

Change-Id: I11e444aeb93e10d6809873d02a8b3be7cc366755
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-04-28 21:10:01 +03:00
Abhishek Raghuvanshi
ddcad8036e ipa: Added traces in dataipa for rmnet low latency
Added traces for low latency rmnet path in ipa

Change-Id: Ib1973227cddee797d8d8af680f32abf7427aabaf
2022-04-27 11:15:03 -07:00
Perry Randise
7b95a8005a msm: ipa3: Print debug buffer size reduced
Link loading showed a stack based buffer, used for printing
statistics, was too big.  The sized has been reduced to be more stack
friendly.

Change-Id: Iab6f6d1d7e77c42855205641c20999c2633f3075
Signed-off-by: Perry Randise <quic_prandise@quicinc.com>
2022-04-26 09:49:52 -04:00
qctecmdr
cf2cd24579 Merge "msm: ipa3: debug change" 2022-04-26 05:46:01 -07:00
qctecmdr
300dd21e01 Merge "msm: ipa3: LAN Coalescing Feature Addition" 2022-04-25 10:49:44 -07:00
qctecmdr
d30313f438 Merge "msm: ipa3: WAN Coalescing Feature Enhancement" 2022-04-25 10:09:47 -07:00
Raghavendar rao l
859d283fd8 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-24 20:33:39 -07:00
qctecmdr
619508a35f Merge "msm: ipa3: Reduce the QMI timeout value to avoid race condition" 2022-04-23 01:28:45 -07:00
qctecmdr
0c91e443eb Merge "msm: gsi: Fix the incorrect evt ring pointer" 2022-04-22 19:44:33 -07:00
qctecmdr
94587d3399 Merge "msm: gsi: Read 64-bit ring RP value from registers" 2022-04-22 19:09:02 -07:00
qctecmdr
2dad687749 Merge "dataipa: Remove BSD markings" 2022-04-22 18:25:02 -07:00
Abhishek Raghuvanshi
85078c3c80 dataipa: Remove BSD markings
Removed BSD markings from the files

Change-Id: I37b6b4c574ea1d5da61d207f054c37368e1a4055
2022-04-22 11:32:55 -07:00
Ashok Vuyyuru
aed6bbb321 msm: ipa3: Increment ipa clock count once enable clock complete
In apps resume scenario if start channel not saving IPA registers,
as ipa clock count was not updated. Adding changes to increment clock
count once clock enable success before reg save.

Change-Id: Ie179bfe648373dad0148c65a11f03945292911f5
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-04-22 06:44:43 -07:00
Ashok Vuyyuru
06da196fc1 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:31 -07:00
Jagadeesh Ponduru
1403c31a33 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>
2022-04-21 20:01:47 +05:30
Perry Randise
d409ad54ea msm: ipa3: LAN Coalescing Feature Addition
There are new IPA 5.5 hardware coalescing additions that relate to LAN
Coalescing.  They are attended to herein.

Change-Id: I5c1d8d85aceb48d0a159026fcc7c0d660026d8c6
Signed-off-by: Perry Randise <quic_prandise@quicinc.com>
2022-04-21 04:57:29 -07:00
Perry Randise
49f7ac6e68 msm: ipa3: WAN Coalescing Feature Enhancement
There are new IPA 5.5 hardware coalescing enhancements that relate
to WAN Coalescing.  They are attended to herein.

Change-Id: Ic54e60eec7dde791eae3c877036ebc8f17a39a5a
Signed-off-by: Perry Randise <prandise@codeaurora.org>
2022-04-21 07:53:41 -04:00
Chaitanya Pratapa
d7e1ba10ee msm: ipa: allocate page recycling buffers only once
Order-3 allocations are costly when system is in full use.
Make changes to allocate page recycling buffers only once on boot up.

Change-Id: I445e27ecc03aaa00483e7a46a468ef0a6f4bfcfb
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-04-13 23:28:19 -07:00
Chaitanya Pratapa
ee9eb5478a msm: ipa Add traces for latency measurement
Add traces for latency measurements
Add traces in ipa3_replenish_rx_page_recycle,
handle_page_completion, new qtimer trace to GSI IRQ.

Change-Id: Ie2f9bf5d61a23abded2bced86fd5e172e60cac8d
Acked-by: Abhishek Raghuvanshi <araghuva@qti.qualcomm.com>
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
Signed-off-by: Jennifer Zenner <quic_jzenner@quicinc.com>
2022-04-12 22:30:57 -07:00
Ashok Vuyyuru
168b878b5a msm: ipa3: Fix to destory workqueue only if created
Freepage workqueue created only for few pipes, while handling error
scenarios freeing it for all pipes. So adding check to free work queue
only if created.

Change-Id: I8bf097c02f6acd0a4a22b3d4bc5b66f46884fc1e
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-04-06 03:57:10 -07:00
Ashok Vuyyuru
49899d14a2 msm: ipa3: Deepsleep enable changes
Adding support to deepsleep scenario.

Change-Id: I2b388396cf9a7f26f77bbcd49c1014e16475a980
2022-04-05 00:29:54 -07:00
Raghavendar rao l
e96c9f91de msm: ipa3: debug change
Added workaround change to handle ipa hw version change as
updating ipa hw version in dtsi and kernel cant be performed in
single build.

Change-Id: I78ff16cb7b677e412cf297224f570b4c1c347cbf
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2022-04-01 12:01:35 +05:30
Piyush Dhyani
23f607b8dd 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>
2022-03-31 05:53:03 -07:00
Cheng Zeng
4c160e8d20 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>

Change-Id: Ie091b01ac44e70d450a8d050855b5f3f0f510695
2022-03-31 14:09:51 +08:00
Cheng Zeng
d382527383 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>

Change-Id: I8aa0d102d81fb2632ce988fcc8d816e7fed7b5b1
2022-03-31 12:45:18 +08:00
qctecmdr
f7f3cc3ca5 Merge "msm: ipa: FR 75115: IPA5.5: RSC enhancements for WAN (IPA changes)" 2022-03-29 06:00:40 -07:00
qctecmdr
a6eb91ce50 Merge "msm: ipa3: Configure HOLB for WLAN2 consumer pipe" 2022-03-28 20:29:49 -07:00
qctecmdr
4e669c79e0 Merge "dataipa: Increase IPA SRAM Q6 "hw_stats_quota_size"" 2022-03-28 09:45:34 -07:00
Eliad Ben Yishay
7a7fa3c544 dataipa: IPA HW TTL update offload - debugfs
Count TTL HW updates and add to debugfs status and stats logging.

Change-Id: I72cf48a2aa6cc6fcee0c709d1366920b5430576f
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-03-27 05:32:38 -07:00
Michael Adisumarta
82449ebbd7 dataipa: Increase IPA SRAM Q6 "hw_stats_quota_size"
Increase the hw_stats_quota_size from 72 to 96 bytes on targets
IPA_5_0 and above.

Change-id: Id407138e7b0f684a3bce5ba00059b368cee8156b
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-03-25 09:38:00 -07:00
Jagadeesh Ponduru
2c94c9a1f1 msm: ipa3: Configure HOLB for WLAN2 consumer pipe
To avoid temporary stall on WLAN client enabling the HOLB on
WLAN2 consumer pipe.

Change-Id: I3920205f7f62dbdd240da162fab4158ab8e070b4
Signed-off-by: Jagadeeesh Ponduru <quic_jponduru@quicinc.com>
2022-03-25 01:32:57 -07:00
Abhishek Raghuvanshi
5063941b56 msm: ipa: FR 75115: IPA5.5: RSC enhancements for WAN (IPA changes)
Removed routing_table_index_valid check. This is because
by setting this value to 0, we will inform q6 to apply q6
routing rules instead of AP routing rules

Change-Id: I8415e7812660f2d50fb95959a1111182841bb3e0
2022-03-23 17:05:28 -07:00
Ashok Vuyyuru
7f064cd7a1 msm: ipa3: Flush free page WQ only for page recyle replenish handler
Free page work init only for page recycle replenish handler.

Change-Id: Ieb5e7b2deb109fa46d3ab38be44eaf34fffd4ad2
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-03-20 22:25:45 -07:00
qctecmdr
f55a4ad651 Merge "msm: ipa3: Fix to flush to workqueue during teardown pipe" 2022-03-17 11:17:23 -07:00
Ilia Lin
f8237ab763 ipa: Add macsec strings to debugfs
Change-Id: Ib7aaf94f4f34e48e007d9e9be49ef4a194291219
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-03-14 23:44:03 -07:00
Ashok Vuyyuru
4ee709ab00 msm: ipa3: Fix to flush to workqueue during teardown pipe
Workqueue was getting scheduled after teardwon the pipe.
Adding changes to flush to workqueue during teardown pipe.

Change-Id: I5a6b3464d76a9835bfbf7668e8dbb1cdf00c73fe
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-03-10 17:21:22 +05:30
Michael Adisumarta
49c10e18c6 msm: ipa: Add TTL update test cases
Add basic IPv4 and Ipv6 test cases for TTL update in HW
based on filtering and routing rules. Also, consists of
several minor fixes during bring up.

Change-Id: Ib363434b20ad2fc8cf29c78bb5db667959f2dbfd
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2022-03-09 19:49:51 -08:00
Michael Adisumarta
ec06323b3c msm: ipa: Add support to set exception route table index
Add IOCTL support to configure route table index in case of
NAT suppression and Conntrack suppression being enabled.

Change-Id: Id2ba72c71e8c541ea54488078f30a9103c0d3eba
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-03-09 11:33:40 -08:00
Michael Adisumarta
a986957002 dataipa: ipa-kernel-tests: ulso test, network-traffic fix
* Early stage target does not support every std library operations
* changed vector insert before begin to push_back to eliminate illegal
memory access
* Added virtual destructor PacketModifier

Change-Id: I34041e8b81547d474c050425beac8ae8a78a4799
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-03-07 16:39:53 -08:00
qctecmdr
40dd5065fd Merge "msm: ipa: Add NAT and IPv6 CT suppression tests" 2022-03-04 22:07:21 -08:00
Chaitanya Pratapa
a2fff96c69 msm: ipa: avoid OOM Killer for temp allocations
Make changes to use __GFP_RETRY_MAYFAIL to avoid triggering
OOM Killer when allocating pages for temp allocations.

Change-Id: I2f5843c9a1c0a9f41e215c8241713f4670e4b35c
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-03-04 10:17:13 -08:00
qctecmdr
b58b42f808 Merge "dataipa: IPA_5_5 test pipes configuration correction" 2022-03-04 04:28:36 -08:00
qctecmdr
4054974b41 Merge "msm: ipa3: Following HPG sequence for HOLB enabling" 2022-03-04 02:58:37 -08:00
Michael Adisumarta
d7c12b1fc0 msm: ipa3: Following HPG sequence for HOLB enabling
Correcting the sequence to dynamically change the HOLB timer.

Change-Id: Iefcac36b93f3aee037628e3b0ec81aa5f5636caa
Acked-by: Suhas mallesh <smallesh@codeaurora.org>
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2022-03-03 20:17:31 -08:00
Michael Adisumarta
752cf6dbba dataipa: Add stringify for TTL exception pkt status.
Add missing stringify for TTL exception packet status.

Change-Id: I698c3dbe1c41b461fa26d5907d4b503138c2fbc6
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-03-03 12:51:40 -08:00
Chaitanya Pratapa
8b281fbc53 msm: ipa: Add support to configure COAL_MASTER_CFG
Make changes to configure COAL_MASTER_CFG. Enable IPv4 ID
ignore bit by default. Give provision to configure via DT.

Change-Id: I17d4b368458417f4379d82bbfce754672b5f27aa
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-03-02 10:35:02 -08:00
Ashok Vuyyuru
e3b4e1d460 msm: ipa3: Changes to enhance find free pages from list
Adding changes to enhance find free pages from list,
 1. When free page not available instead of keep trying
    using temporary pages.
 2. In tasklet search for free pages adding to head.

Change-Id: I991336167519322081faf8f82feec4e3f0d7b161
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-02-28 10:36:43 +05:30