Commit Graph

878 Commits

Author SHA1 Message Date
Harsh Kumar Bijlani
a95a769c93 qcacmn: Add handling for jumbo pkts in qdf_nbuf_unshare_debug()
Add handling for jumbo pkts in debug version on qdf_nbuf_unshare to
resolve false positive alarms.

Change-Id: If18f81490f145de21d01c19e868252274c7dfefa
CRs-Fixed: 3145824
2022-03-17 03:45:03 -07:00
abhinav kumar
1e20923d2b qcacmn: Send kernel time to userspace
Send kernel timestamp to userspace via a
new vendor attribute
QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP.

Change-Id: Iec957f0516c06369e0d2991d96936cb1f7fff5f4
CRs-Fixed: 3150781
2022-03-16 19:33:59 -07:00
Nandha Kishore Easwaran
8aa7cab50c qcacmn: Add provision to increase num_elements
Add support to change the number of elements in multi pages
alloc function. This is needed to increase the number of tx_descs.

Change-Id: I29ee2764c24c6f83b0c2cff1062ec7239dcc0b4b
CRs-Fixed: 3130833
2022-03-15 03:42:03 -07:00
Tallapragada Kalyan
7ec6dc2b01 qcacmn: Access shinfo fields only if qdf debug is enabled
Access shinfo fields only if qdf debug is enabled

CRs-Fixed: 3140011
Change-Id: Ifafeb678d7e9d469fd05da4845376a290e42c452
2022-03-06 01:26:00 -08:00
Vulupala Shashank Reddy
f4a25a4af0 qcacmn: Add support for tx flags for packet capture mode
Fill tx flags in radiotap header based on tx status for
tx packets capture in packet capture component.

Change-Id: I52da01a2c0677d32bfb05a1f3095a0e6df084fca
CRs-Fixed: 3132140
2022-03-02 01:28:21 -08:00
nakul kachhwaha
6c2a986833 qcacmn: Export objmgr APIs and add lmac_if registration APIs
Export objmgr APIs to be used by SON module to register
and unregister create/destroy handler.
Also add lmac_if API to register lmac_if ops from SON
module.

Change-Id: Id4c19807792b9f7b46387ae907f853151e4e28c6
CRs-Fixed: 3118986
2022-02-24 04:25:26 -08:00
Mohit Khanna
97f83cd810 qcacmn: Add is_critical flag in struct qdf_nbuf_cb
Add a single bit "is_critical" flag to qdf_nbuf_cb structure to indicate
critical frames to DP layer.

Change-Id: I41c67467a3a54eef55c81a80dfb86b3ad7f33518
CRs-Fixed: 3114311
2022-02-24 01:00:01 -08:00
Mohit Khanna
4d03fcbd12 qcacmn: Check for IPV6 before checking DHCPv6
Currently we are not checking whether the packet is a IPV6 packet when
checking for a DHCPv6 packet. This can be error prone if done for a IPV4
packet.
Check for IPv6 before checking for DHCPv6.
Add QDF_NBUF_CB_PACKET_TYPE_DHCPV6 packet type in qdf_nbuf_cb.

Change-Id: Ic24dbaad8bd910c85bb1086317c12ad46466a128
CRs-Fixed: 3114311
2022-02-24 00:59:55 -08:00
Jinwei Chen
7a60675260 qcacmn: Support TX completion and RX delay tracing for KIWI
Support TX completion and RX delay tracing by Ftrace for KIWI,
Add generic IP protocol packt tracing like ICMP packet.

Change-Id: Ie0c4b1764ce953fd2ed41fc5eea8aa28c8d427d9
CRs-Fixed: 3126080
2022-02-17 05:03:40 -08:00
Devender Kumar
e0934446af qcacmn: Modify QDF APIs to support multiple radios by IPA
The current WLAN driver only supports single radio for IPA, but with
2X_PINE product WLAN driver need to support multiple radio for IPA
driver, which can be done by adding the support for multiple radios
via QDF layer.

Change-Id: I8850e1df56690cfe704b8fb7487c141a8ed21412
2022-02-16 16:56:56 -08:00
Rakesh Pillai
1c6617edf5 qcacmn: Add EHT radiotap header fields
Add the EHT radiotap header definition and
support to parse these fields.

Change-Id: If988753b497cc2feb79f358afea2674effd8270c
CRs-Fixed: 3092818
2022-02-15 17:27:51 -08:00
Nirav Shah
6340679db0 qcacmn: qdf: Add support to update tsf timestamp in data packet
Add support to update tsf timestamp on driver entry and
exit in data packet. This helps debug latency issue in
XR usecases

Change-Id: I00dcf2416513b94701c11f2a07b2dc74b665f573
CRs-Fixed: 3116365
2022-02-04 07:10:57 -08:00
nobelj
154f9b8298 qcacmn: Add support for multi user stats to populate radiotap
Add support to populate radiotap for multi users.

Change-Id: Ied4fe85fc2b456542c9cf4ea969106cdde86265f
2022-01-28 04:05:07 -08:00
nobelj
85dca44878 qcacmn: Add QDF wrapper for frag ops
Introduce qdf wrapper API

1. frag is added to nbuf fragment array. If frag can't be fit in that nbuf
a new nbuf is allocated and frag is added to the new nbuf. Once added
nbuf is added as a fraglist to head nbuf. On a subsequent call, frag is
added to the last nbuf in a fraglist.

2. get reference for fragment.

Change-Id: Ia4ccbc48e54b08d6b9d4f0cf5089fbf43ee8b496
2022-01-28 04:05:01 -08:00
Pavankumar Nandeshwar
d9e6722ff0 qcacmn: Fix QUIC Copyright Markings
Fix QUIC Copyright Markings

Change-Id: Id0cea92c1e6b64f82601c08a81b6246ee6d49a62
2022-01-27 12:53:33 -08:00
Bing Sun
12d8c64b85 qcacmn: Add print APIs for SON
Add print api definitions for SON

Change-Id: I4a5387c71f619a38170c7aa70ee4bed82cab54dc
CRs-Fixed: 3116060
2022-01-27 05:46:06 -08:00
Lin Bai
66822e1e46 qcacmn: Check CONFIG_QCOM_MINIDUMP properly
On some targets, minidump will be built as DLKM, and use IS_ENABLED
macro to cover both built-in and DLKM scenario.

Change-Id: I93374b83020af7122531fe282042236cae8037b3
CRs-Fixed: 3116787
2022-01-26 11:00:03 -08:00
Neha Bisht
ebf445a844 qcacmn: Avoid use of map and unmap API in simple path
Add qdf wrapper for dma_clean_range and avoid use of DMA
map/unmap APIs in Tx. simple fast path.
Gain of ~150 Mbps is observed while running 4 radio traffic.

Change-Id: I0e96bfee43fe810da8c861cb0f4535fb0ba7f6f7
2022-01-25 03:21:47 -08:00
Ananya Barat
82711507b5 qcacmn: Abstract ms_to_ktime in qdf
Add API qdf_time_ms_to_ktime which is an abstraction of ms_to_ktime
to the qdf layer.

Change-Id: Ie6510007b61bc3b3ac28648983b30a3c52e97098
CRs-Fixed: 3043864
2022-01-20 18:59:55 -08:00
Tallapragada Kalyan
9639c91317 qcacmn: buffer replenish and reap without map and unmap
use dma_inv_range call instead of dma map and unmap
APIs during replenish and reap. This complete code is
under a compile time macro.
before change: 4160Mbps @ 96.5% (core 3)
after change: 4160Mbps @ 90.5% (core 3)

Change-Id: I61bca349a369ace06cd86f353880108cee013cb1
2022-01-20 10:01:09 -08:00
Nandha Kishore Easwaran
3a1a2dac52 qcacmn: Fix QUIC Copyright Year Markings
Fix QUIC Copyright Year Markings

Change-Id: I69e1fcc0d505930daa3726760ea1b8ba65f8ae9e
2022-01-19 04:30:16 -08:00
Manoj Ekbote
8f94e32594 qcacmn: Add QDF API for nbuf truesize
Added API to return size of nbuf including header and
data and variable data area

Change-Id: Ie707a18adab7f2e4407f4aa8c481cd86012011a3
2022-01-18 12:53:51 -08:00
chunquan
be297ae0ae qcacmn: Replace blacklist/whitelist with denylist/allowlist
Replace blacklist/whitelist with denylist/allowlist

Change-Id: Ic10f0bb187f44c00f07752cd859a08342a945628
CRs-Fixed: 3087605
2022-01-14 03:50:13 -08:00
Namita Nair
09afbc7282 qcacmn: Handle unsupported EAPOL packet type
In function qdf_fill_wlan_connectivity_log, the unsupported EAPOL
packet types are not dropped.This results in setting the
log_subtype to invalid value zero and the log buffer being forwarded
to wlan_connectivity_log_enqueue. The fix is to drop the unsupported
packets by returning from the function.

The local variable log_buf,of type struct wlan_log_record, is not
null initialized.This could cause some of the  member elements to have
unexpected values.This fix is to null initialize the log_buf structure.

Update Qualcomm copyright to include year 2022

Change-Id: I651329fead1e42282d7811c32eea2359ba970527
CRs-Fixed: 3079947
2022-01-12 01:52:33 -08:00
Nandha Kishore Easwaran
18d2ccf267 qcacmn: Add pointer to platform dev in qdf_dev
Add pointer to platform device in qdf_dev.
This requirement is needed for enabling in Legacy interrupts
in QCN9224.

Change-Id: I99a0e1ec447315a342c9e22e3f2673f5af8c5893
2022-01-05 05:09:31 -08:00
Yu Tian
9e61eb4514 qcacmn: Stop replenish timer during recovery
During recovery, when this timer is started, there is no
stop operation. If the timer is triggered and SSR is not
completed, it will visit re-inited data structure and lead
kernel crash.

Change-Id: I44a31d70ee80d59076e4121f6924faa470ce7575
CRs-Fixed: 3102029
2022-01-04 11:40:17 -08:00
Devender kumar
412a969aeb qcacmn: Fix Atomic Memory Allocation Method
Memory allocation in atomic context is not correct, as for
MEMORY_DEBUG profile the initial_memory_debug flag is set to
0 which leads in allocating memory with GFP_KERNEL flag
Issue is seen with SDX_PINE where the memory allocation is done
in sleeping context using GFP_KERNEL in interrupt context
Fix is create a new memory allocation API with GFP_ATOMIC flag

Change-Id: I3baa5b601b60f88fe2d9ff1f4008703c6507a267
2021-12-30 03:23:22 -08:00
Srinivas Girigowda
a448fdf6b4 qcacmn: qdf: Add TWT module ID
Add TWT module ID.

Change-Id: If20b7b8db65f38dee7c0f59cc185ac4ba87eac29
CRs-Fixed: 3085321
2021-12-17 20:44:31 -08:00
Sai Rupesh Chevuru
b43e679a58 qcacmn: Multicast support for MLO
Multicast support for MLO
1. Following functions are newly added.
	dp_rx_igmp_handler()
	dp_tx_mlo_mcast_handler_be()
	dp_rx_mlo_mcast_handler_be()
	dp_mlo_get_mcast_primary_vdev()

Change-Id: If215f843369e6e2621ef302b924e524c86f0d30b
2021-12-16 05:35:30 -08:00
Yeshwanth Sriram Guntuka
c399429018 qcacmn: Define few tx, rx and misc tracepoints
Define tracepoints for TCP, UDP, and other packets in
tx and rx. Also, define some miscellaneous to capture
delayed reg write and CE scheduling latency.

Change-Id: I1eafad7e367073060d742d7bf4ca3245d75cc25d
CRs-Fixed: 3080977
2021-12-13 08:04:58 -08:00
Yeshwanth Sriram Guntuka
d197c575bc qcacmn: Add support for wlan specific tracepoints
Add support for wlan specific tracepoints using
the existing tracepoint infrastructure exposed
by kernel.

Change-Id: I9e4d09443b97124252240cb6b9ee305acb1bf677
CRs-Fixed: 3077074
2021-12-13 08:04:53 -08:00
Edayilliam Jayadev
915648336f qcacmn: Add APIs to split/join lists
Add following APIs.

  1. Split a list into 2 lists
  2. Join two lists

Change-Id: I9eb5cdfeeef582ef0bebe108f08fac307494b59d
CRs-Fixed: 3071041
2021-11-25 08:18:09 -08:00
Himanshu Batra
bd23cf7dcc qcacmn: QDF changes to support IPA offload
QDF changes to support IPA offload.

Change-Id: Ib3a0f667bb9c11fb65f6a41ad777ff7273288569
2021-11-24 05:31:07 -08:00
Yue Ma
41ab344f9e qcacmn: Add CONFIG_CNSS_OUT_OF_TREE flag for QDF prealloc
Use CONFIG_CNSS_OUT_OF_TREE to control if CNSS prealloc driver is
built from in-kernel-tree source or out-of-kernel-tree source since
the exposed header file will be in different paths. This is also for
backward compatibility. Use internal flag CNSS_MEM_PRE_ALLOC instead
of CONFIG_WCNSS_MEM_PRE_ALLOC which will not be defined from kernel
defconfig for out-of-kernel-tree CNSS prealloc driver. CNSS_MEM_PRE_
ALLOC will be defined in the driver Kbuild no matter where CONFIG_
WCNSS_MEM_PRE_ALLOC gets defined.

Change-Id: I6e35f3e859fb429584e83665fe0290ffeb314312
CRs-fixed: 3074638
2021-11-16 23:30:35 -08:00
Yeshwanth Sriram Guntuka
1ede276269 qcacmn: Add QDF api to get smp processor id
Add QDF api to get smp processor id.

Change-Id: If0187ca1bc609f4cb9107bbb343b2bb180910f46
CRs-Fixed: 3066767
2021-11-02 16:32:07 -07:00
Jinwei Chen
b521830197 qcacmn: get sw_exception from reo dest ring descriptor
sw_exception bit will be marked in reo dest ring descriptor for
FW re-injected frame, get this bit and save it in skb->cb,
this bit value can be used for FISA further check.
there is no reo_dest_indication field in reo dest ring on beryllium,
so share same cb member for sw_exception and reo_dest_indication.

Change-Id: I2321121be7dda68ed19faca177d868c7e8ba1dbf
CRs-Fixed: 3056156
2021-10-28 10:21:20 -07:00
Jianmin Zhu
fb1db30308 qcacmn: Fix wrong rssi in monitor mode
If ppdu rssi unit is dbm, need convert to db for API:
qdf_nbuf_update_radiotap, only need convert once for first mdpu in the
ppdu. if convert for each mpdu, wrong rssi will be saved.

Change-Id: I85e92121ddb289e3513022ff092083825197efb4
CRs-Fixed: 3057041
2021-10-27 02:36:07 -07:00
Ke Huang
a317f7c615 qcacmn: Adjust the IPA WDI2 CONS/PROD definition
Adjust IPA WDI2 CONS/PROD definition for the IPA support on
sa415m for Genoa.

Change-Id: I7d73cd8d2843875fa6208cb520d49d4f6170fef7
CRs-Fixed: 3042786
2021-10-26 21:02:53 -07:00
Jianmin Zhu
7a0af0ae4e qcacmn: channel_switch_complete_evt need wake up all waiting threads
2 threads blocked to wait channel_switch_complete_evt for SAP channel
switch is already in progress,  qdf_event_set only woke up 1st thread
later,  2nd  thread still kept blocked with hold  net_dev for debug id
NET_DEV_HOLD_COUNTRY_CHANGE_UPDATE_SAP, leak happened.

Change-Id: Ib76318dd4a613ca1852a56b7701a04385b69ba56
CRs-Fixed: 3061976
2021-10-26 04:44:10 -07:00
Rhythm Patwa
e60e11bb76 qcacmn: Add QDF module ID for AFC
Add QDF module ID for AFC debug logs.

Change-Id: I741b85df50e3bf23b0ff5096270f0dd7a20679e3
2021-10-05 07:36:50 -07:00
Edayilliam Jayadev
b8bb556398 qcacmn: Add new QDF module for management rx reorder
Add new QDF module for management rx reorder feature.

CRs-Fixed: 3026019
Change-Id: I471757f4f32ed8439d94c9cd96a330b21299140a
2021-09-30 08:38:21 -07:00
Vulupala Shashank Reddy
2da40899eb qcacmn: Add APIs to get data packets info
Add APIs to get TCP fin/fin-ack/rst packets information.

Change-Id: Ia1150c81076fa47ae7f34d14bc73efc82003258a
CRs-Fixed: 3046235
2021-09-30 08:38:16 -07:00
Pragaspathi Thilagaraj
a8d8b663b2 qcacmn: Define QDF API for vzalloc and vfree
Define QDF API for virtual memory allocation and free.
Also add new api to get time of the day in microseconds.

Change-Id: I2921055bbb6b5d2a1105d19448b2a10fa2d6ccc5
CRs-Fixed: 3038180
2021-09-28 21:12:18 -07:00
Pavankumar Nandeshwar
d6a386028b qcacmn: add qdf APIs for intra-bss
qdf APIs to save intra-bss flag in the nbuf
and to extract it later

Change-Id: I79e793d6252adc8b6e024f8b3a95959f64d9df31
2021-09-24 18:28:02 -07:00
Ananya Gupta
29d256f801 qcacmn: Log DHCP, EAPOL packets to logging queue
Log DHCP and EAPOL packets to wlan connectivity logging
queue.

Change-Id: Ib0c84c389c0f5fd7e742722c0e03c84b9732de19
CRs-Fixed: 3030936
2021-09-21 09:30:39 -07:00
Edayilliam Jayadev
6691cd953a qcacmn: Fix copyright
Fix modified year in the copyright banner.

CRs-Fixed: 3036102
Change-Id: I97c39555e7e24ed8b12687983d19f418234bd614
2021-09-16 02:47:51 -07:00
Ke Huang
1b18916173 qcacmn: Add IPA WDI2 CONS/PROD definition for the IPA support
Add IPA WDI2 CONS/PROD definition for the IPA support on
sa415m for Genoa.

Change-Id: Ic140bb1b43afc5029ba006a38534dd64ca13f6f2
CRs-Fixed: 3025213
2021-09-16 02:47:46 -07:00
Yeshwanth Sriram Guntuka
ccb6664db1 qcacmn: Dump flow pool stats as part of periodic stats display
Dump flow pool stats even for low verbosity level as
part of periodic stats display.

Change-Id: Iea59d20b0a81cfd0bfdac65ad54a11fa33f30f2f
CRs-Fixed: 3031168
2021-09-13 13:04:58 -07:00
Edayilliam Jayadev
698478886e qcacmn: Add API to get first node of a list
Add QDF API to get the first node of a linked list. If the
list is empty this API returns NULL.

Change-Id: I4569941f708634085904fd30a347facca543594a
CRs-Fixed: 3029987
2021-09-13 06:20:08 -07:00
Edayilliam Jayadev
76ba042a40 qcacmn: Add API to iterate list from a given node
Add QDF API to iterate linked list starting from
a specific node.

Change-Id: I1bf7137213eefa434c983a8d10aa8e1398fa586e
CRs-Fixed: 3029986
2021-09-13 06:20:03 -07:00