Graphe des révisions

859 Révisions

Auteur SHA1 Message Date
qctecmdr
b036e4ce87 Merge "ipa: Add macsec mode IOCTL handler" 2021-12-28 20:23:06 -08:00
Ilia Lin
41cc043b21 ipa: test_module: Add missing break to case
Change-Id: If69247b45b4b4b6cdc249f922574e3aac58de08a
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-12-28 14:20:29 +02:00
Ilia Lin
58398cbbc6 ipa: Add macsec mode IOCTL handler
Add handler for IPA_IOC_ADD_MACSEC_MAPPING and
IPA_IOC_DEL_MACSEC_MAPPING.
The mapping info is forwarded to the IPACM.

Depends-on: 3889607
Change-Id: I44c3cb8044d1ddb36c79ecbb8d962f29a95f3fe1
Signed-off-by: Ilia Lin <quic_ilial@quicinc.com>
2021-12-23 20:32:17 -08:00
Chaitanya Pratapa
0e95bb3404 msm: ipa: use a single panic notifier
Make changes to use single panic notifier to get all the information
in one shot.

Change-Id: I8030f17b58a5d4da0a93e5109d5b9717e67d466a
Signed-off-by: Chaitanya Pratapa <quic_cpratapa@quicinc.com>
2021-12-23 12:07:26 -08:00
Dor Deri
6037f39f32 ipa: Fix packet context data structures
Adjust the packet context fields and the hw packet context enum.

Change-Id: Id688353c6f991f75e6a7e144ea4d99a631545d5a
Signed-off-by: Dor Deri <quic_dderi@quicinc.com>
2021-12-22 01:16:59 -08:00
Michael Adisumarta
43f160d969 msm: ipa: set the mac header to 0 for rx skbs
packet_rcv_spkt is expecting to strip out the skb_mac_header.
Part of the alloc_skb, the mac header is setup ~0 which is causing
the skb data point to wrong location.

Change-Id: Ib8c14c029145da6a779ead21fb851b26677f4d0f
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-21 12:35:57 -08:00
qctecmdr
36190d7fab Merge "dataipa: unmap gsi base after disabling the clock" 2021-12-21 01:16:05 -08:00
qctecmdr
e726686bd8 Merge "dataipa: adding last empty entry for mhi_driver_match_table definition" 2021-12-20 23:40:34 -08:00
Michael Adisumarta
97a4d770a7 dataipa: unmap gsi base after disabling the clock
Unmap gsi base after disabling the clock to avoid
unmapped memory address access.

Change-Id: Iaf32619d1ad304a4fe2d1f07cb88d2356f4c57c5
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-20 15:00:44 -08:00
qctecmdr
d3817512b5 Merge "msm:qmi: Fix race condition" 2021-12-19 18:38:45 -08:00
qctecmdr
613e42198c Merge "msm: ipa3:fix warning message" 2021-12-17 03:25:43 -08:00
raghavendar rao l
689a18333f msm:qmi: Fix race condition
Add changes to fix race condition while sending
modem init QMI sync message.

Change-Id: I2183dd2da40b589ccd628469273b33edc2ea399d
Signed-off-by: Raghavendar rao l <rlomte@codequrora.org>
2021-12-15 17:25:23 -08:00
Michael Adisumarta
d13dd5a313 dataipa: adding last empty entry for mhi_driver_match_table definition
Adding an empty entry for mhi_driver_match_table definition.

Change-Id: I18704736382cf02c9cc2e273aa8839d8f545ef48
Signed-off-by: Michael Adisumarta <quic_madisuma@quiinc.com>
2021-12-15 15:29:14 -08:00
qctecmdr
a9e3762ee0 Merge "msm: ipa3: Changes to load signed elf." 2021-12-14 14:46:17 -08:00
Piyush Dhyani
281df6cedf msm: ipa3: Changes to load signed elf.
In old H/W version target elf is loaded manually
and there are three header supported in IPA. But
for signed elf there are more than 3 header, so
Fw loading was failing. Now added changes to
load signed elf for old H/W target.

Change-Id:Ia2fac810cb5685766d1d943ef4b7bcb7e374182d
Signed-off-by: Piyush Dhyani <quic_pdhyani@quicinc.com>
2021-12-14 05:09:53 -08:00
qctecmdr
ae3c2ea2fc Merge "msm: ipa3: Fix to avoid NULL pointer access" 2021-12-14 04:24:16 -08:00
qctecmdr
38da4c095c Merge "msm: ipa: Fix considering prefetch buf size when mapping" 2021-12-13 18:51:42 -08:00
qctecmdr
67818911ca Merge "msm: ipa3: add support on socksv5 offload" 2021-12-13 10:23:38 -08:00
Sivakanth Vaka
034f18eb9c msm: ipa3:fix warning message
fix warning message in ipahal.

Signed-off-by: Sivakanth vaka <quic_svaka@quicinc.com>
2021-12-13 18:25:28 +05:30
qctecmdr
198aee51ee Merge "dataipa: set DMA mask even when smmu is enabled" 2021-12-13 00:36:14 -08:00
Muralidharan M
b80d437e65 msm: ipa3: add support on socksv5 offload
Add the support to create an ipa-uc activation
table and pass the index to user-space module
to configure the v4nat/v6ct rules associated
with the uc-activation table index.

Change-Id: I14b4007dd80b64fb4a151b6b1413bea0c3a468f6
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Signed-off-by: Pooja Kumari <quic_kumarip@quicinc.com>
Signed-off-by: Muralidharan M <quic_murm@quicinc.com>
2021-12-13 10:46:40 +05:30
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
Ashok Vuyyuru
dbbde6b9f1 msm: ipa3: Fix to avoid NULL pointer access
Adding changes to check ipa_q6_clnt pointer NULL or not
before accessing it.

Change-Id: I255dd021c9534fe6ca4d7b19c3b576a0d3c80c7d
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
2021-12-02 20:46:20 -08:00
Michael Adisumarta
5660d595b5 dataipa: set DMA mask even when smmu is enabled
Set 64 bit DMA mask when smmu is enabled.

Change-Id: I9bfe82d2681bcf1da0680ba085f1635c306bde7a
Signed-off-by: Michael Adisumarta <quic_madisuma@quicinc.com>
2021-12-01 19:54:57 -08:00
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