Graphe des révisions

1182 Révisions

Auteur SHA1 Message Date
qctecmdr
b03c20a4cd Merge "msm: ipa3: Adding changes to use new deepsleep API" 2022-09-09 08:43:45 -07:00
Piyush Dhyani
88c20c8e4d Revert "Revert "msm: ipa3: Changes to support 2X PINE.""
This reverts commit 3518342e1b

Change-Id: I7e12f2ee01101f42e665fbc6f080eee60e9a72ca
2022-09-09 04:53:53 -07:00
qctecmdr
06f0a4359c Merge "gsi: Add clock voting before IO access in debugfs" 2022-09-05 02:19:11 -07:00
qctecmdr
4463296678 Merge "msm: ipa3: Adding changes to compile IPA driver for khaje target" 2022-09-03 15:45:58 -07:00
qctecmdr
c6eca606be Merge "msm: ipa3: set aggr hard byte limit for IPA HW <= 4.2" 2022-09-02 00:31:17 -07:00
qctecmdr
6be7c6863f Merge "msm: ipa3: Adding version check while accessing register" 2022-08-31 19:15:37 -07:00
Raghavendar rao l
77aecb8a97 msm: ipa3: Adding version check while accessing register
Added version check to access COAL_MASTER_CFG register, as this
is needed for 5.5 and above target.

Change-Id: Ic5a50bb8e5cf02609e8a01478d1e6419dc8e3c62
Signed-off-by: Raghavendar rao l <quic_rlomte@quicinc.com>
2022-08-31 11:08:05 -07:00
Chaitanya Pratapa
27453333a8 msm: ipa: send smem size to Q6
Make changes to send the device tree configured smem
size to Q6 to avoid conflict with apps.

Change-Id: I9a01e9a50621dfe19916b80961c02c1828c58ef4
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-08-31 10:54:37 -07:00
Ashok Vuyyuru
77b5b5c460 msm: ipa3: Adding changes to compile IPA driver for khaje target
Adding changes to compile IPA driver for khaje target.

Change-Id: Ie7adc0005ebd3c772031616dc4140c5d596ba673
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-08-29 19:26:52 -07:00
Jagadeesh Ponduru
b22fe830bc msm: ipa3: set aggr hard byte limit for IPA HW <= 4.2
Adding changes to set aggregation hard byte limit for
WAN CONS Pipe.

Change-Id: I27c5af71aeadfb40e6870da24c0b69f1cd60d806
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
2022-08-29 21:21:03 +05:30
qctecmdr
d0da0dd148 Merge "msm: ipa3: Adding changes to check pass-ids DT entry present or not" 2022-08-24 13:36:50 -07:00
Ashok Vuyyuru
02db829ceb msm: ipa3: Adding changes to check pass-ids DT entry present or not
Before passing pass-id information to TZ checking IPA driver had
valid DT pass-id entry added in DT file or not.

Change-Id: Ie6a5a8af860b6bd54794b23c007bb7830a883b78
Signed-off-by: Ashok Vuyyuru <quic_avuyyuru@quicinc.com>
2022-08-24 01:29:32 +05:30
qctecmdr
9d18331ad2 Merge "ipa: updates for ipa_reg_save()" 2022-08-22 01:34:37 -07:00
qctecmdr
2ec713fe2c Merge "dataipa: ipa_eth: Dynamic NTN3 client moderation configuration" 2022-08-20 14:09:29 -07:00
Dor Deri
9a8ec9379d ipa: updates for ipa_reg_save()
* update number of channels to collect in reg_save
* enable collection for uC channels
* parse gsi fw version

Change-Id: Iae5bd9e56b076717e7a157b0883b1efb7681c061
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2022-08-18 14:43:23 +03:00
Eliad Ben Yishay
5e275fe032 Revert "dataipa: ipa_eth: ntn3: Change #packets interrupts' moderation to 2"
This reverts commit 354acb221d.

Change-Id: Ie917f7ed7ca10cfc1e74a9fa8ece9fa9b07436c3
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-08-17 11:23:05 +03:00
Ilia Lin
a5a43987e1 gsi: Add clock voting before IO access in debugfs
The debugfs functions may be called while the GSI is not clocked.
This will lead to kernel panic due to bus error.
Fixing by clock voting before IO access and unvoting after.

Change-Id: I99b1f69df9be5774d688029886b1aef8dfacc657
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2022-08-14 11:45:13 +03:00
Eliad Ben Yishay
3b1c5ac624 dataipa: ipa_eth: Dynamic NTN3 client moderation configuration
* Added the ability to dynamically configure a NTN3 client
moderation on setup

Change-Id: I8838850a69635fa168eeb43195ac0fb896179994
Signed-off-by: Eliad Ben Yishay <quic_ebenyish@quicinc.com>
2022-08-11 01:19:22 -07:00
Dor Deri
9bd2f7157f msm: ipa3: update IPA_QMB R/W values.
Added the values of IPA_QMB_INSTANCE_DDR/PCIE for IPA5.5

Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
Change-Id: I602b663edbab760b7d44d3782ecf8f167c3a0f92
2022-08-10 11:00:13 +03:00
Michael Adisumarta
d7e4bd13f3 dataipa: Includes changes for IPA Peripheral stats for Q6
Definition and support for MDM/MSM peripheral stats structure,
shared to Q6 on the first 2KB of already existing FILTER_TABLE smem.

Change-Id: I1742beeb131beb97340d494135880b1906110a2e
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-08-02 08:35:24 -07:00
qctecmdr
1409670495 Merge "dataipa: Fix spearhead generic stats data type" 2022-07-30 00:48:34 -07:00
Michael Adisumarta
612d0a953c dataipa: Fix spearhead generic stats data type
Use correct data type while generic stats pointer calculation.

Change-Id: Iea54abcc6bafeccaff8d23f28066e7f1d4cfc5b3
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-07-29 03:50:54 -07:00
Michael Adisumarta
4f27eaffc5 dataipa: Add ipa_lnx_stats support for NTN3
Add support for both instances of NTN3 for spearhead.

Change-Id: Ia3f322ef882fd3a9027730930a0f8704aaf75006
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2022-07-29 03:00:20 -07:00
Abhishek Raghuvanshi
825bdee31e dataipa: Add traces for napi schedule
Added traces for napi schedule

Change-Id: Idef355e6b0cf8270c995de23e1c548c3e6e1e032
2022-07-26 17:22:35 -07:00
Chaitanya Pratapa
d733f3f036 msm: ipa: add safety SSR check for QMI message handling
When QMI_IPA_INIT_MODEM_DRIVER_REQ_V01 message is sent just before
modem crash there is no gurantee we will get proper response to
handle gracefully. Make use of remoteproc notifications to
handle the timeout gracefully when in SSR condition.

Change-Id: Icdf90ab2abcba9ab01f9e3bc9be9c32686e2d172
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2022-07-11 11:12:25 -07:00
qctecmdr
c32f794de9 Merge "msm: ipa: Added notification when free page tasklet gets scheduled" 2022-07-08 16:07:46 -07:00
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
Abhishek Raghuvanshi
0768d04e16 msm: ipa: Added notification when free page tasklet gets scheduled
Added a logic to send notifications to rmnet data driver when ipa
runs out of recycling buffer and temp buffer

Change-Id: Ia3eb2fa9ec81fe0375b569222c9a0693fec08432
2022-06-14 10:28:19 -07: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
Ashok Vuyyuru
62baf29205 msm: ipa3: Adding changes to use new deepsleep API
In latest kernel version old variable are depreciated so
adding changes to use new deepsleep API to check deepsleep state.

Change-Id: I135b2397b88234bec0a7f3d66b2f18f1520a2c71
Signed-off-by: Ashok Vuyyuru quic_avuyyuru@quicinc.com
2022-06-09 17:33:20 +05:30
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