wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest50 patches 6 repliesIn review
- v150 patches 75 repliesSuperseded
Changes in v2 from the cover letter
* Lots of comments both from Jeff and Ping addressed.
* Support for QCN9274 hw2.0.
* git log --oneline --reverse ath12k-bringup-v1..ath12k-bringup-v2 drivers/net/wireless/ath/ath12k/:
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/50 | wifi: ath12k: add Kconfigdrivers/ | +34 | 0 replies | |
| 2/50 | wifi: ath12k: add Makefiledrivers/ | +27 | 0 replies | |
| 3/50 | wifi: ath12k: add ce.cdrivers/ | +964 | 0 replies | |
| 4/50 | wifi: ath12k: add ce.hdrivers/ | +184 | 0 replies | |
| 5/50 | wifi: ath12k: add core.cdrivers/ | +939 | 0 replies | |
| 6/50 | wifi: ath12k: add core.hdrivers/ | +822 | 0 replies | |
| 7/50 | wifi: ath12k: add dbring.cdrivers/ | +357 | 0 replies | |
| 8/50 | wifi: ath12k: add dbring.hdrivers/ | +80 | 0 replies | |
| 9/50 | wifi: ath12k: add debug.cdrivers/ | +102 | 0 replies | |
| 10/50 | wifi: ath12k: add debug.hdrivers/ | +67 | 0 replies | |
| 11/50 | wifi: ath12k: add dp.cdrivers/ | +1580 | 0 replies | |
| 12/50 | wifi: ath12k: add dp.hdrivers/ | +1816 | 0 replies | |
| 13/50 | wifi: ath12k: add dp_mon.cdrivers/ | +2602 | 0 replies | |
| 14/50 | wifi: ath12k: add dp_mon.hdrivers/ | +106 | 0 replies | |
| 15/50 | wifi: ath12k: add dp_rx.cdrivers/ | +4235 | 0 replies | |
| 16/50 | wifi: ath12k: add dp_rx.hdrivers/ | +145 | 0 replies | |
| 17/50 | wifi: ath12k: add dp_tx.cdrivers/ | +1211 | 0 replies | |
| 18/50 | wifi: ath12k: add dp_tx.hdrivers/ | +41 | 0 replies | |
| 19/50 | wifi: ath12k: add hal.cdrivers/ | +2177 | 0 replies | |
| 20/50 | wifi: ath12k: add hal.hdrivers/ | +1166 | 0 replies | |
| 21/50 | wifi: ath12k: add hal_desc.hdrivers/ | +2961 | 0 replies | |
| 22/50 | wifi: ath12k: add hal_rx.cdrivers/ | +853 | 0 replies | |
| 23/50 | wifi: ath12k: add hal_rx.hdrivers/ | +704 | 0 replies | |
| 24/50 | wifi: ath12k: add hal_tx.cdrivers/ | +145 | 0 replies | |
| 25/50 | wifi: ath12k: add hal_tx.hdrivers/ | +194 | 0 replies | |
| 26/50 | wifi: ath12k: add hif.hdrivers/ | +144 | 0 replies | |
| 27/50 | wifi: ath12k: add htc.cdrivers/ | +789 | 0 replies | |
| 28/50 | wifi: ath12k: add htc.hdrivers/ | +316 | 0 replies | |
| 29/50 | wifi: ath12k: add hw.cdrivers/ | +1041 | 0 replies | |
| 30/50 | wifi: ath12k: add hw.hdrivers/ | +312 | 0 replies | |
| 31/50 | wifi: ath12k: add mac.cdrivers/ | +7038 | 0 replies | |
| 32/50 | wifi: ath12k: add mac.hdrivers/ | +76 | 0 replies | |
| 33/50 | wifi: ath12k: add mhi.cdrivers/ | +616 | 0 replies | |
| 34/50 | wifi: ath12k: add mhi.hdrivers/ | +46 | 0 replies | |
| 35/50 | wifi: ath12k: add pci.cdrivers/ | +1374 | 0 replies | |
| 36/50 | wifi: ath12k: add pci.hdrivers/ | +135 | 0 replies | |
| 37/50 | wifi: ath12k: add peer.cdrivers/ | +342 | 0 replies | |
| 38/50 | wifi: ath12k: add peer.hdrivers/ | +67 | 0 replies | |
| 39/50 | wifi: ath12k: add qmi.cdrivers/ | +3096 | 0 replies | |
| 40/50 | wifi: ath12k: add qmi.hdrivers/ | +568 | 0 replies | |
| 41/50 | wifi: ath12k: add reg.cdrivers/ | +732 | 2 replies | |
| 42/50 | wifi: ath12k: add reg.hdrivers/ | +95 | 0 replies | |
| 43/50 | wifi: ath12k: add rx_desc.hdrivers/ | +1441 | 0 replies | |
| 44/50 | wifi: ath12k: add trace.cdrivers/ | +10 | 0 replies | |
| 45/50 | wifi: ath12k: add trace.hdrivers/ | +152 | 0 replies | |
| 46/50 | wifi: ath12k: add wmi.cdrivers/ | +6600 | 0 replies | |
| 47/50 | wifi: ath12k: add wmi.hdrivers/ | +4805 | 0 replies | |
| 48/50 | wifi: ath: add ath12k to Makefiledrivers/ | +1 | 0 replies | |
| 49/50 | wifi: ath: add ath12k to Kconfigdrivers/ | +1 | 0 replies | |
| 50/50 | MAINTAINERS: add ath12kMAINTAINERS | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/50] wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices
From: Kalle Valo <[email protected]>
ath12k is a new mac80211 driver for Qualcomm Wi-Fi 7 devices, first supporting QCN9274 and WCN7850 PCI devices. QCN9274 supports both AP and station; WCN7850 supports only station mode. Monitor mode is not (yet) supported. Only PCI bus devices are supported.
ath12k is forked from an earlier version of ath11k. It was simpler to have a "clean start" for the new generation and not try to share the code with ath11k. This makes maintenance easier and avoids major changes in ath11k, which would have significantly increased the risk of regressions in existing setups.
ath12k uses le32 and cpu_to_le32() macros to handle endian conversions, instead of using the firmware byte swap feature utilized by ath11k. There is only one kernel module, named ath12k.ko.
Currently ath12k only supports HE mode (IEEE 802.11ax) or older, but work is ongoing to add EHT mode (IEEE 802.11be) support.
The size of the driver is ~41 kLOC and 45 files. To make the review easier, this initial version of ath12k does not support Device Tree, debugfs or any other extra features. Those will be added later, after ath12k is accepted to upstream.
The driver is build tested by Intel's kernel test robot with both GCC and Clang. Sparse reports no warnings. The driver is mostly free of checkpatch warnings, albeit few of the warnings are omitted on purpose, list of them here:
https://github.com/qca/qca-swiss-army-knife/blob/master/tools/scripts/ath12k/ath12k-check#L52
The driver has had multiple authors who are listed in alphabetical order below.
--------------[cut]-------------------[cut]-----------------
For easier review I have split the driver into multiple patches (one file per patch). But in the final version, which will be commited to git, all these patches will be folded into one big patch. So in the git archive the full driver be in a single commit to avoid any bisect issues etc.
This version is based on commit 324dde0354ace6d793cd79a6654cd8e20872e082 from ath12k-bringup branch on my ath.git tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/log/?h=ath12k-bringup
The patchset applies on top of wireless-next commit:
a9501019f2de706eb43b59d66dcde70a23440cd3
Unfortunately the firmware images are not yet available but they will be soon, the plan is to publish them any day now.
Please review and comment.
Kalle
v2:
* Lots of comments both from Jeff and Ping addressed.
* Support for QCN9274 hw2.0.
* git log --oneline --reverse ath12k-bringup-v1..ath12k-bringup-v2 drivers/net/wireless/ath/ath12k/:
c8bd8aa45f6a ath12k: fix ATH12K_DBG_DP_TX value in ath12k_debug_mask1b4a11d871b4 wifi: ath12k: dp: remove unused structuresefc72b2aa34c wifi: ath12k: dp: convert htt cmd structs to __le32f2226a858c6c wifi: ath12k: dp: add __packed to struct htt_tx_ring_selection_cfg_cmd ded0b851ddb1 wifi: ath12k: mac: replace get_num_chains() with hweight32() 2bae125b29fd wifi: ath12k: dp: convert event structures to le32 and le16dab2e1356301 wifi: ath12k: dp: fix long line warnings introduced in previous patch e094a9ab1340 wifi: ath12k: dp: convert ath12k_dp_htt_tlv_iter() to a static function c34c346fe9cc wifi: ath12k: Remove the redundant code in ce_sendc568d8bc26de ath12k: convert payload[0] to payload[], use ab variable and fix __ath12k_dbg() signature b290b591dbdd ath12k: remove magic number offset in rx_user_status struct1a458fd07d47 ath12k: remove __packed from the ath12k_skb_cb struct7887e032942a wifi: ath12k: fix dp peer setup error handling6b650b8d9fd3 wifi: ath12k: make bank_config as return value instead of an argument d09d40c053b3 wifi: ath12k: fix dangling pointer during vdev bank profile cleanup 4a033426a7e2 wifi: ath12k: reverse the order of common srng cleanupeaa2ce8b29bd wifi: ath12k: use enum for determining tx or rx monitor mode 8589ba1261da wifi: ath12k: cleanup monitor interrupt processing45b3bcb37321 wifi: ath12k: fix tx descriptor cleanup54ea2140eb0f wifi: ath12k: avoid using memset for initializing structure3936b1ff26d1 wifi: ath12k: fix initializations in dp_tx.c67ecf855bd48 wifi: ath12k: fix peer access in ath12k_peer_find_by_vdev_id 2f2e1a9c64b1 wifi: ath12k: Change mhi_config member to const in ath12k_hw_params structure ef4638246b7f wifi: ath12k: Declare cosnt for mhi controller config and channel config e7afb023979c wifi: ath12k: Initialize ab_pci->mhi_ctrl to NULL in mhi unregister 229acc4f9feb wifi: ath12k: Declare structure member as constant454c8ff42ac5 wifi: ath12k: remove unnecessary debug print10a5d161e3d1 wifi: ath12k: fix the iteration in ath12k_htc_get_credit_allocation 529d0f47ef90 wifi: ath12k: avoid unnecessary initializer7d147446cf0b wifi: ath12k: fix ath12k_hw_ring_mask intializerb528f968d261 wifi: ath12k: fix misspelled wordsdc40c72b9831 wifi: ath12k: fix indentation in ath12k_hal_srng_update_hp_tp_addr db88dec1cf82 wifi: ath12k: fix ath12k_he_ru_tones_to_nl80211_he_ru_alloc9e24a0dab3f9 wifi: ath12k: fix zero element array in ath12k_htc_record16fd0b13a04f wifi: ath12k: remove unused/draft structure725d23f61ea3 wifi: ath12k: Fix hw mode setup error handlingfc27ae0c8ebe wifi: ath12k: remove packing for struct ppdu_user_delayba795c1a99be86 wifi: ath12k: set tid vaddr to NULL after free27a5dfb1af56 wifi: ath12k: fix typo in dp_rx.cb0132b83649b wifi: ath12k: dp_rx: replace use of sizeof(struct ...) with sizeof(member) 7b3a801aad49 wifi: ath12k: dp_rx: avoid unnecessary function initializers 2d9db64a52fa wifi: ath12k: Declare 'drop' variable as bool in rx err processing b6ef02504a91 wifi: ath12k: log peer mac in case of pn config failure08c766f0e4d3 wifi: ath12k: Remove duplicate use of used buf count variable faa8a0a89616 wifi: ath12k: dp_rx: avoid use of bitwise OR for the first assignment 3ca5427e7315 wifi: ath12k: move monitor reap timer init out of srng setup 2942a582a455 wifi: ath12k: dp_rx: unlock spinlock before logging8dd0efa92787 wifi: ath12k: fix failure handling during buffer replenishe4589bd5717e wifi: ath12k: avoid unnecessary typecast9ae39e387a65 wifi: ath12k: remove backpressure event handlerb7359c7cbbd5 wifi: ath12k: fix a recently introduced long line warning in dp.h 8f0edd33f436 wifi: ath12k: Change consistency of logging in wmi.ce7171c7f2ac2 wifi: ath12k: remove unnecessary initializer in mac.cafb95e82a20e wifi: ath12k: Group related constants into enum0808f3bbb335 wifi: ath12k: Update reference in commentsf2f15d0adf34 wifi: ath12k: fix uninitialized function return value8069d95c4157 wifi: ath12k: fix srng configuration dangling pointer4ec85908eb49 wifi: ath12k: refactor the DSCP TID mapbd676f340565 wifi: ath12k: refactor HTC connection flag620b992fbdb3 wifi: ath12k: avoid unnecessary initialization of local variable daddbf430f14 wifi: ath12k: add comments to justify spin unlock42a0928f9b5b wifi: ath12k: fix svc_id in ath12k_htc_setup_target_buffer_assignments a7acf32c70f4 wifi: ath12k: do empty initializer instead of memset607f79b27b97 wifi: ath12k: update to shadow register v3 configuration5a9ae823b2dd wifi: ath12k: remove qdss config download codebfef46ffcc5e wifi: ath12k: trivial change in ath12k_dbring_buf_setup640978f9fb1f wifi: ath12k: Fix typo and initializer in mac.cc5444c60c642 wifi: ath12k: avoid unnecessary initialization of local variable 1ff52c83d54b wifi: ath12k: add QCN9274 hw2.0 register related changes5a26aea56ae9 wifi: ath12k: add HAL changes to support QCN9274 hw2.090bfc0fe0f07 wifi: ath12k: add hardware params for QCN9274 hw2.00b7b165dd088 wifi: ath12k: pci: check TCSR_SOC_HW_VERSION62cf12719696 wifi: ath12k: Endianness and bit ops changes in wmi.c392fb0544176 wifi: ath12k: Fix invalid management rx frame lengthb4e956acc25b wifi: ath12k: hal: use parenthesis with complex values76ed1650d959 wifi: ath12k: hal: fix possible side affectsadf26aed2c11 wifi: ath12k: wmi: whitespace fixesf9b3b6aa0317 Merge ath-next into ath12k-bringup93f45aee4c5d wifi: ath12k: Remove conditional compilation for pm opsa6d720a7ca6c wifi: ath12k: Move destroy_workqueue(xx) to ath12k_core_free() 73db655f7f75 wifi: ath12k: don't use zero-length element arrays3a8a8251fde1 wifi: ath12k: dp: remove ath12k_htt_pktlog()c826fbcfba79 wifi: ath12k: core: remove unused struct ath12k_vif::tx_seq_no ac43b20e7d06 wifi: ath12k: mac: use u32_replace_bits() to set beamforming capabilities ea6338c47150 wifi: ath12k: wmi: avoid copying invalid vdev key data