Revīziju grafs

1004 Revīzijas

Autors SHA1 Ziņojums Datums
qctecmdr
e2e87a34e2 Merge "dataipa: Added logic to avoid sending NAT table remove unless requested" 2022-07-05 18:34:31 -07:00
qctecmdr
a335234cf6 Merge "msm: ipa3: add check in odl pipe cleanup" 2022-07-05 10:08:17 -07:00
Jagadeesh Ponduru
d50c831f28 msm: ipa3: add check in odl pipe cleanup
Adding a change to check whether the pipe has been
setup or not before going to teardown the pipe.

Change-Id: Ibb408fdf3509facd6c18e3238bdbfd7da0b4a643
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-07-04 20:20:59 -07:00
Jagadeesh Ponduru
af148419bf msm: ipahal: modify parameter from eq_bitfield[i] to i
From IPAv4.5 versions IPA_TOS_EQ is considered as not supported
and it made to 0XFF, instead IPA_IS_PURE_ACK is given support.
So, when validating the bitfield equations of them, passing
eq_bitfield[i] will throw shift overflow warning as it takes 0xFF.
So, added change to ensure there are no overflow warnings.

Change-Id: I84384723433706784a4ef21b88f33b036edb0a5d
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-07-04 20:17:50 -07:00
Abhishek Raghuvanshi
c6cdc08ae0 dataipa: Added logic to avoid sending NAT table remove unless requested
Added logic to send QMI_IPA_MOVE_NAT_COMPLETE_IND_V01 only when modem
requests it and hence we initialize nat_move_qmi_disabled with our change

Change-Id: I155ef21726a43a780cd25bd766c3d4cb2a586f84
2022-06-30 14:09:06 -07:00
qctecmdr
257165583a Merge "msm: ipa: fix to NULL terminate the pointer" 2022-06-21 11:24:06 -07:00
qctecmdr
44688a3426 Merge "msm: ipa3: Added changes to check QMI pointer valid or not" 2022-06-21 07:33:46 -07:00
Prashanth Reddy Baddam
d1ac28da7b msm: ipa: fix to NULL terminate the pointer
Fix to NULL terminate the peers list ptr
after freeing it, to get rid of use after
free issue.

Change-Id: Ide9fde9e7648a7af561a5b0ae0fa085810e59ea6
Signed-off-by: Prashanth Reddy Baddam <quic_pbaddam@quicinc.com>
2022-06-21 06:13:48 -07:00
Eliad Ben Yishay
898eb15748 dataipa: ipa_eth, ipa_uc: Refactor before EMAC over GSI feature
* Changed channel tear down command to match standard naming
* Pretty code formatting

Change-Id: I523b86dd76483f40a686dd3027f2b1febea7c0dc
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-06-18 10:43:51 +03:00
Eliad Ben Yishay
4f49c7b090 dataipa: ipa_uc: Command size calculation fix
* sizeof was used on a pointer rather than actual type

Change-Id: I2a57af6353ce166697af43a35da549532e5ec45c
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-06-16 15:58:46 +03:00
Ashok Vuyyuru
43e895d04c msm: ipa3: Added changes to check QMI pointer valid or not
After passing ipa_q6_clnt pointer to function, if it freed in
different thread it may lead to NULL pointer access. So adding
check to see passed pointer valid or not.

Change-Id: I22e272ebdecc62756ee140081524ab4efdd3d02a
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-06-13 23:02:05 +05:30
qctecmdr
64d92d1407 Merge "msm: ipa3: Add resource index for second pine instance." 2022-06-13 07:27:37 -07:00
Piyush Dhyani
82289770f0 msm: ipa3: Add resource index for second pine instance.
To correct unmap the addresses for first and second
pine, add resource index for second pine instance.

Change-Id: I883a4c45ff516619c834c18e25aec6d7b18b86e2
Signed-off-by: Piyush Dhyani<quic_pdhyani@quicinc.com>
2022-06-12 23:51:45 -07:00
qctecmdr
903d7df37b Merge "ipa-kernel-tests: fixed IPAHeaderInsertionTest004" 2022-06-12 23:18:27 -07:00
Dor Deri
efb13fad03 ipa-kernel-tests: fixed IPAHeaderInsertionTest004
Add Header with len value of 0 is valid.
Removed the part in the test which expect to fail with value of 0.

Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2022-06-09 17:21:31 +03:00
Eliad Ben Yishay
354acb221d dataipa: ipa_eth: ntn3: Change #packets interrupts' moderation to 2
* 2 packets threshold proved to perform best in terms of throughput
* Changing function name ntn -> ntn3 to stress the exact use case

Change-Id: I251cdff2612c568021e649deb7723708022f2495
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-06-09 10:22:02 +03:00
Chaitanya Pratapa
8ccaf333a3 dataipa: Add KERNEL_DLKM check for module compilation
Compile vendor DLKMs only if the system wide flag is true or
if the project specific override flag is set.

Change-Id: I744fce818c59d5072c0e085a41c9225fc317e711
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-06-06 22:10:27 -07:00
Abhishek Raghuvanshi
c971d0e011 ipa: Removed logs priority to reduce logs flooding
Modified log type in ipa_fltrt_generate_hw_rule_bdy_5_5 since it is
causing redundant logs

Change-Id: Ia759f17c8f475aa5fb6405880d2a3f224a650c84
Signed-off-by: Abhishek Raghuvanshi <quic_araghuva@quicinc.com>
2022-06-03 18:21:01 -07:00
qctecmdr
073cf7dabb Merge "ipa: Support ipanat and kernel-tests compilation in LA" 2022-05-31 16:38:31 -07:00
Michael Adisumarta
11eaa09da2 ipa: Support ipanat and kernel-tests compilation in LA
Change-Id: I36ec8c36f88dbe4cd67bb3c340fa5187c22f7d13
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-05-31 10:32:39 +03:00
Dor Deri
365a558618 ipa: Add missing range in access control for ipa_save_registers().
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2022-05-26 09:44:59 +03:00
Raghavendar rao l
441253fedb Revert "msm: ipa3: debug change"
This reverts commit e96c9f91de

Change-Id: I6b48e5186fdf5bfd4d7d22761e7891b951c38908
2022-05-23 12:31:07 +05:30
Dor Deri
2a7102637f ipa: Fix Typo in struct ipa_pkt_ctntx_s
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2022-05-09 12:03:10 +03:00
qctecmdr
6ac7530788 Merge "msm: ipa3: Adding support to save ipc logs in minidump" 2022-05-05 12:43:58 -07:00
qctecmdr
e7b629ee85 Merge "msm: ipa3: Initial version of minidump support in IPA" 2022-05-05 12:05:44 -07:00
Ashok Vuyyuru
33ed3c00f9 msm: ipa3: Adding support to save ipc logs in minidump
Adding support to save ipa/gsi ipc logs in minidump.

Change-Id: Ic83b173140aae5c985a497f7333596c540b094ff
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-05-05 00:25:18 -07:00
Abhishek Raghuvanshi
20168fa7aa msm: ipa: Reduce stack memory used in ipa_init_drop_stats
Reduce stack memory in ipa_init_drop_stats to avoid stack
overflow.

Change-Id: I38d7284430f24e726aaf0b8e8b6c41d960eb89cd
2022-05-03 09:14:35 -07:00
qctecmdr
5e3850bf68 Merge "msm: ipa3: creating new ipc log file for IPA Clocks" 2022-05-02 21:18:38 -07:00
Jagadeesh Ponduru
c02892812e msm: ipa3: creating new ipc log file for IPA Clocks
Created new ipc ipa_clk log for adding more debug prints
for IPA Clocks in which provides the explicit time taken
by IPA ICC Voting for BW Paths and IPA Enable/Disable Clocks.

Change-Id: I53b7b5baba0ff72df286c86a4b45b0f860014474
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-05-02 10:18:16 -07:00
Jagadeesh Ponduru
ea1fc852eb msm: ipa3: changes to return correct variable value
When GSI stop channel is failing, & retrying & IPA_HW < 4.0,
the return variable is being updated by the immediate other
function as well, there it results in updating & returning
a wrong value, finally leading to exit without removing endp_delay
on that pipe, results in without stopping the channel thereafter
so corrected it with adding a new variable.

Change-Id: If0ee3986ae40941ce4409d6fb5d74b37db9b7190
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-05-02 10:17:02 -07:00
Ashok Vuyyuru
7318b0ef5a msm: ipa3: Initial version of minidump support in IPA
Initial version of minidump support in IPA driver.

Change-Id: I73e98fd647dd487dda90049f5b0c5609f558aa92
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-05-02 14:23:49 +05:30
Eliad Ben Yishay
837ab5874a dataipa: ipahal: Filtering & routing rules generation extra word pointer fix
* In case extension header exists the rule is 2 bytes into the extra words
area
* Subtract extension header size to point to the next whole 8 byte word
right after the header

Change-Id: Ic6e4fc05ca8e03408530cc9815f4ce7455bd7c57
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-04-29 07:23:22 -07:00
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