نمودار کامیت

836 کامیت‌ها

مولف SHA1 پیام تاریخ
Chaitanya Pratapa
38bfaa540a msm: ipa: Fix considering prefetch buf size when mapping
IPA HW tries to prefetch 128 Bytes of additional memory when
dealing with filter/routing tables. This can result in overflowing
of memory if we map only the required size. Make changes to
consider prefetch memory when allocating routing/filter tables.

Change-Id: Id72e4df285a4683dddebb18d98bb9c4dd9667eeb
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
2021-12-12 18:15:11 -08:00
Himansu Nayak
b7482ec109 msm: ipa3: code security concern for IPA-QMI driver
Added checks for input validation to handle request from ipa3_wan_ioctl.

Change-Id: I4deddba21a4754ea3b5137b13ef5c450fdb3b73b
Signed-off-by: Himansu Nayak<quic_himansu@quicinc.com>
2021-12-03 20:12:43 +05:30
qctecmdr
a023c0bab0 Merge "msm: ipa3: Instaed of msec to jiffies passing the timeout value" 2021-11-30 21:53:11 -08:00
Ashok Vuyyuru
37ea2d2798 msm: ipa3: Instaed of msec to jiffies passing the timeout value
In wait for completion timeout function using the right conversion
not required to pass the msec to jiffies value. So passing the
timeout value directly.

Change-Id: Ic151c5570778595774919b02c2fec0eabf0245ce
2021-11-28 18:55:55 +05:30
Praveen Kurapati
375a64e206 msm: ipa: Add change to register offset
Add changes to register offset. Due to which
GSI channel allocation fails.

Change-Id: Iba36fe8c9124339316788a4396127bc7a9b1485f
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2021-11-25 18:13:26 +05:30
qctecmdr
096127576d Merge "msm: ipa: Use secondary flow control for mhi control pipes" 2021-11-25 02:19:29 -08:00
Ashok Vuyyuru
70ec0883a2 msm: ipa: Use secondary flow control for mhi control pipes
Ehanced flow control, used secondary flow control for mhi pipes.

1.	TX/RX MHI QMAP pipe setup before modem QMI server is up
•	Part of MHI_QMAP UL pipe, AP will set secondary FC.
•	When both UL and DL MHI QMAP pipes setup, since modem not up yet, no-op.
•	When modem server is up, AP will send ENDP_DESC QMI for QMAP control pipe from rmnet_ipa driver.
2.	TX/RX MHI QMAP pipe setup after modem QMI server is up
•	When modem server is up, don’t send ENDP_DESC QMI for QMAP control pipe.
•	Part of MHI_QMAP UL pipe setup, AP will set secondary FC.
•	After both UL and DL MHI QMAP pipe setup, send ENDP_DESC QMI for QMAP control pipe from mhi client driver.
3.	Modem QMI server is up in middle of TX/RX MHI QMAP pipe setup
•	Part of MHI_QMAP UL pipe, AP will set secondary FC.
•	When modem server is up, if only single pipe setup, don’t send ENDP_DESC QMI for QMAP control pipe.
•	After both UL and DL MHI QMAP pipe setup, send ENDP_DESC QMI for QMAP control pipe from mhi client driver.
4.	MHI control pipe teardown and setup again while device modem remains up
•	Part of MHI_QMAP UL pipe re-setup, AP will set secondary FC.
•	After both UL and DL MHI QMAP pipe setup, send ENDP_DESC QMI for QMAP control pipe from mhi client driver.
•	Q6 need to make sure it can support duplicate QMI of same ENDP_DESC info. Instead of skip the same QMI, we should do same operation based on QMI.
5.	Modem SSR while MHI control pipes remain connected
•	AP need to set secondary FC part of modem SSR handling.
•	When modem server is up, AP will send ENDP_DESC QMI for QMAP control pipe from rmnet_ipa driver.

Change-Id: Iad7d4006d65cc71320b9fbf29c644dc31ef50c4b
2021-11-24 23:59:57 +05:30
Ilia Lin
e1eceb1b3f dataipa: network-traffic: unit test compile-time fixes
1. Use size static member instead of method
2. Add missing arguments in a call inside default constructor

Change-Id: Ib1b508e7d67742957551012c73f40d399651bb15
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-11-21 04:03:43 -08:00
Michael Adisumarta
a5b712a9ed 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>
2021-11-17 14:11:08 -08:00
qctecmdr
27d5e24101 Merge "ipa: added more missing registers to ipa_reg_save struct" 2021-11-10 22:23:40 -08:00
qctecmdr
a41166a48a Merge "msm: ipa: add changes to incorporate only 2 ioctls for spearhead" 2021-11-10 17:52:29 -08:00
Chaitanya Pratapa
1c90691b31 msm: ipa: fix to clean up memory
In case of pipe setup failure, make sure to free up the DMA
mappings along with freeing up memory.

In case of tag process, make sure to free up the dummy
memory allocated for ULSO WA.

Change-Id: I70a2ef484c7e2a9ac871dfce95bf63c9f3dc9755
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2021-11-08 21:24:16 -08:00
Dima Birenbaum
a752482c60 ipa: added more missing registers to ipa_reg_save struct
Added more DEBUG registers, checked and fixed existing structs
in ipa_reg_save

Change-Id: I95add61146e45d1faf8fd1c625cdb34749395f1e
Signed-off-by: Dima Birenbaum <quic_dbirenba@quicinc.com>
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-11-08 13:11:49 +02:00
qctecmdr
64d1ea146e Merge "ipa: Fix reg_save SRAM offsets" 2021-11-04 16:40:32 -07:00
qctecmdr
635d6a65f5 Merge "ipa: added missing ipa 5.0 registers support" 2021-11-04 15:02:01 -07:00
Ilia Lin
1b61a89386 ipa: Fix reg_save SRAM offsets
Although the offsets are configured correctly in
the access map struct, the defines used in the loops
are copypasted from the older HW version.
Fixing this.

Change-Id: Ib976da2b2b2ae253d99df8410aad1654cc2313b0
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-11-04 10:52:44 +02:00
Michael Adisumarta
891af01e87 msm: ipa: add changes to incorporate only 2 ioctls for spearhead
Reduce number of ioctls on spearhead to reduce stats pull
timings.

Change-Id: Ia77ab68b71f4824e8c94cfa46fff9ca828c525a1
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-11-03 15:50:12 -07:00
Ilia Lin
5f16b09c14 ipa: added missing ipa 5.0 registers support
Added Q6 Channel and Event context registers.

Change-Id: I0541c2de555d5ad5d663321abbd3e5b3867274dd
Signed-off-by: Dima Birenbaum <quic_dbirenba@quicinc.com>
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-11-03 09:15:00 +02:00
Pooja Kumari
9861c7b45a msm: ipa3: add v2x ethernet support
Add the v2x ethernet pipe connect support
for offloading v2x traffic.

Change-Id: I5e84f7e1d07722eeb5a7b9fbfbccb69451c72934
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
2021-11-02 23:36:15 -07:00
qctecmdr
2c6c923133 Merge "msm: ipa: Add API to set IPA client filtering table SRAM priority high" 2021-11-01 23:36:46 -07:00
qctecmdr
900a7432c4 Merge "msm: ipa: includes raw notifier for rmnet_data" 2021-11-01 18:26:01 -07:00
Ilia Lin
6cf42d86a8 msm: ipa: Add debugfs support for Dual NIC
Retrieves debugfs data for both ethernet clients in case of Dual NIC mode.

Change-Id: I62eb6af1dedaa738674979520d393c753c0f0190
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-10-31 00:31:01 -07:00
qctecmdr
754f226ac2 Merge "dataipa: unlock qmi mutex before the workqueue" 2021-10-29 17:41:25 -07:00
Michael Adisumarta
ca5cf8cba8 msm: ipa: includes raw notifier for rmnet_data
Supports APIs for rmnet to register for buffer high/low
notification on WAN and WAN_COAL pipes.

Change-Id: I0b8fd7287f5a25a695243d2aaad93bbc8fb505c1
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-10-29 11:45:21 -07:00
qctecmdr
35e636b9af Merge "ipa: distribute non-hash flt table" 2021-10-28 16:30:22 -07:00
qctecmdr
ed5dc27be8 Merge "msm: ipa: use lower order pages" 2021-10-28 15:10:35 -07:00
Pooja Kumari
ec747710eb msm: ipa: Add sa410m to dataipa MAKEFILE
Compile IPA driver in sa410m.

Change-Id: I18efc61e54632590a31dfb4f7e9e11e286cf7529
Signed-off-by: Pooja Kumari <quic_kumarip@quicinc.com>
2021-10-28 03:32:28 -07:00
Ilia Lin
e2a5bd292a msm: ipa: Add API to set IPA client filtering table SRAM priority high
IPA client filtering table can reside in SRAM in case there is enough
space. Since SRAM is a limited resource it might also reside in slower
memory (DDR). This new API enables setting an IPA client's filtering
table SRAM priority to high. It also includes an IOCTL that enables
to use the API from user-space.
Moving an IPA client filtering table to SRAM greatly
improves access time to the filtering rules in it and therefore
the entire data path of this client.
Current limitation is this API needs to be called before filter
rules are installed.

Change-Id: I34814369b9c4f6ea535b739aed9a20df8606080b
Acked-by: Eliad Ben Yishay <ebenyish@qti.qualcomm.com>
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-10-28 10:03:27 +03:00
Ilia Lin
eab3627ab4 ipa: distribute non-hash flt table
Distribute the non-hashable tables between SRAM and DDR
instead of relocating them completely to the DDR.

The tables priority is set in first come - first served order.
A more sophisticated priority management may be introduced later.

Change-Id: I744cdfa928a780a7567fd8e6d8dc92d2c2cc6fd6
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-10-28 10:03:27 +03:00
Perry Randise
616d86d3be msm: ipa: eogre fixes/embellishments as follows:
1) Race condition fix: eogre_enabled set to true too late
   relative to ipacm induced ipa3_cfg_ep_metadat ioctl

2) Added more logging when eogre add/del mapping ioctl's arrive

Change-Id: I58c132a8d0b412c3dc8c5e26773fe358fe58df8f
Signed-off-by: Perry Randise <prandise@codeaurora.org>
2021-10-26 20:16:36 -07:00
Chaitanya Pratapa
d8ab3cd10e 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: Chaitanya Pratapa <cpratapa@quicinc.com>
2021-10-26 12:29:42 -07:00
Michael Adisumarta
201ab59656 dataipa: unlock qmi mutex before the workqueue
Make sure to unlock mutex before adding qmi client req to work queue

Change-Id: I6c85017600c797b64063925be6717151ddb5a0c9
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-10-21 16:49:03 -07:00
Michael Adisumarta
75c23d0df7 msm: ipa: rmnet ll flow control support
Make changes to add flow control support for rmnet ll xmit path.
Following changes are added:-
1) Provide free descriptors on every xmit call.
2) Trigger a callback when number of free descriptors go above
a configured threshold.

Change-Id: I527b5cc396ed96176d059f3624b1a042ab7e56df
Signed-off-by: Chaitanya Pratapa <cpratapa@codeauora.org>
2021-10-21 12:25:52 -07:00
qctecmdr
37e14bab66 Merge "dataipa: add NTN3 support for spearhead" 2021-10-20 19:45:49 -07:00
qctecmdr
9ba1c31180 Merge "msm: ipa3: Fix to NULL terminate the header pointer in proc header table" 2021-10-20 18:58:43 -07:00
Michael Adisumarta
8156cc3eab dataipa: add NTN3 support for spearhead
Adding NTN3 ethernet client type support for spearhead stats.

Change-Id: Iec7ba1fff0a403066c41008965feaac26aa2dcc4
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-10-20 11:26:51 -07:00
Ashok Vuyyuru
2785d02d4b 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 23:32:39 +05:30
Ashok Vuyyuru
90837d4b3a msm: ipa3: Fix to unlock mutex before return
Adding changes to unlock mutex before return from QMI
send request.

Change-Id: I39c32219db69fbc41b30507759bed16acb976005
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-10-20 10:37:10 -07:00
qctecmdr
177ccbe352 Merge "msm: ipa3: add DL_NLO q6 pipe for IPA HW-5.0 MHI targets" 2021-10-18 21:47:00 -07:00
Michael Adisumarta
db86553f4e msm: gsi: add support for 2 new MSI interrupts
Add support for 2 new seperate MSI interrupts
to pin rmnet_ll and rmnet_ctl processing to seperate
CPUs.

Change-Id: I83977081a72d734622525732a97f8563fb530ade
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-10-13 18:57:56 -07:00
Praveen Kurapati
a07f95c2a0 msm: ipa3: add DL_NLO q6 pipe for IPA HW-5.0 MHI targets
Add ep configuration for DL_NLO q6 on IPA HW-5.0 MHI targets
which is enabled by default on Q6 driver. This will keep IPA LNX
flt table index bitmask consistent with IPA Q6 when committing
the rules.

Change-Id: Iec628bd1033c2041a8d53c7bd9af5576637ab379
2021-10-14 06:02:11 +05:30
Ilia Lin
885066266d Revert "ipa: distribute non-hash flt table"
This reverts commit b06baeebf1.
2021-10-11 10:46:46 +03:00
Ilia Lin
b96e26521a Revert "msm: ipa: Add API to set IPA client filtering table SRAM priority high"
This reverts commit fa34979af5.
2021-10-11 10:46:36 +03:00
qctecmdr
d52a00bcaf Merge "msm: ipa3: add back DL_NLO q6 pipe for IPA HW-5.1 targets" 2021-10-09 04:25:58 -07:00
Michael Adisumarta
95f843c8fd dataipa: increase QMAP rx buffer base size by 64
Buffer size provided from AP side is increased from 64 to 128.

Change-Id: I794dbf9d02bbadfd6a324b5d78bdb2f04b8ea8e9
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2021-10-08 16:13:47 -07:00
Michael Adisumarta
790078aa1d msm: ipa3: add back DL_NLO q6 pipe for IPA HW-5.1 targets
ep configuration for DL_NLO q6 on IPA HW-5.1 targets.

Change-Id: I351a99ae1e4ff841233843c9663274baf8cd9f2a
2021-10-08 15:23:36 -07:00
qctecmdr
765a0e4198 Merge "msm: ipa3: add DL_NLO q6 pipe for IPA HW-5.0 targets" 2021-10-07 17:27:53 -07:00
qctecmdr
d5c6a6e3fc Merge "msm: ipa3: Add change to not reset HOLB timer" 2021-10-07 12:17:56 -07:00
Jagadeesh Ponduru
884cc1f395 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:18:52 +05:30
Michael Adisumarta
ab5a3fa6b1 msm: ipa3: add DL_NLO q6 pipe for IPA HW-5.0 targets
Add ep configuration for DL_NLO q6 on IPA HW-5.0 targets
which is enabled by default on Q6 driver. This will keep IPA LNX
flt table index bitmask consistent with IPA Q6 when committing
the rules.

Change-Id: I123ed19e0071430e04ff1414f2a5a2d74cd62771
2021-10-06 17:27:40 -07:00