Skip to content

wifi: ath12k: Add support for QCN6432

Aaradhana Sahu ath12k linux-devicetree linux-wireless lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20261008-mpp_bringup-ea2187d10a28

Versions newest first

  1. v3 Latest17 patches 4 repliesApplied
  2. v217 patches 9 repliesSuperseded inferred link
  3. v117 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- patch 1/17: Update the commit subject and change the file name.
- patch 3/17: Initialize qmi_max_chunk_size for QCN6432.
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/17dt-bindings: net: wireless: Add QCN6432Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml+149 -01 reply
2/17wifi: ath12k: Refactor PCI operations and MSI config structuredrivers/net/wireless/ath/ath12k/ahb.h drivers/net/wireless/ath/ath12k/ce.h drivers/net/wireless/ath/ath12k/core.h +3 more+56 -430 replies
3/17wifi: ath12k: Add hardware parameter for QCN6432drivers/net/wireless/ath/ath12k/core.h drivers/net/wireless/ath/ath12k/qmi.h drivers/net/wireless/ath/ath12k/wifi7/hw.c+88 -00 replies
4/17wifi: ath12k: Add hardware ring mask for QCN6432drivers/net/wireless/ath/ath12k/hw.h drivers/net/wireless/ath/ath12k/wifi7/hw.c+52 -20 replies
5/17wifi: ath12k: add hardware registers for QCN6432drivers/net/wireless/ath/ath12k/wifi7/hal.c drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h+93 -00 replies
6/17wifi: ath12k: move multi MSI vector flag to ath12k_dev_flagsdrivers/net/wireless/ath/ath12k/core.h drivers/net/wireless/ath/ath12k/mhi.c drivers/net/wireless/ath/ath12k/pci.c +1 more+13 -150 replies
7/17wifi: ath12k: Add hybrid_bus_type in ath12k_hw_paramsdrivers/net/wireless/ath/ath12k/hw.h drivers/net/wireless/ath/ath12k/wifi7/hw.c+13 -00 replies
8/17wifi: ath12k: Add hif operation support for QCN6432drivers/net/wireless/ath/ath12k/Makefile drivers/net/wireless/ath/ath12k/ahb.c drivers/net/wireless/ath/ath12k/ahb.h +6 more+253 -10 replies
9/17wifi: ath12k: add support for unified data-region memory allocationdrivers/net/wireless/ath/ath12k/qmi.c+70 -130 replies
10/17wifi: ath12k: move MSI config to pci.cdrivers/net/wireless/ath/ath12k/pci.c drivers/net/wireless/ath/ath12k/pci.h drivers/net/wireless/ath/ath12k/wifi7/pci.c+19 -160 replies
11/17wifi: ath12k: Add platform MSI support for CEdrivers/net/wireless/ath/ath12k/ahb.c drivers/net/wireless/ath/ath12k/ce.h drivers/net/wireless/ath/ath12k/core.h +3 more+190 -50 replies
12/17wifi: ath12k: Enable MSI interrupt support for DP interruptdrivers/net/wireless/ath/ath12k/core.h drivers/net/wireless/ath/ath12k/pci.c drivers/net/wireless/ath/ath12k/pcic.c+129 -10 replies
13/17wifi: ath12k: use CMEM write for PPT on hybrid bus devicesdrivers/net/wireless/ath/ath12k/core.c drivers/net/wireless/ath/ath12k/dp.c drivers/net/wireless/ath/ath12k/dp.h+28 -110 replies
14/17wifi: ath12k: store and use MSI data per CE and DP interrupt group for QCN6432drivers/net/wireless/ath/ath12k/ce.c drivers/net/wireless/ath/ath12k/core.h drivers/net/wireless/ath/ath12k/dp.c +1 more+17 -30 replies
15/17wifi: ath12k: Derive QMI service instance ID per protection domaindrivers/net/wireless/ath/ath12k/ahb.c+3 -10 replies
16/17wifi: ath12k: Resolve userPD ID per devicedrivers/net/wireless/ath/ath12k/wifi7/ahb.c+26 -10 replies
17/17wifi: ath12k: Add QCN6432 AHB supportdrivers/net/wireless/ath/ath12k/ahb.c drivers/net/wireless/ath/ath12k/wifi7/ahb.c+19 -10 replies

Reviews trailers per patch

1 of 17 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKrzysztof KozlowskiBaochen QiangVasanthakumar Thiagarajan
SeriesR-b R-b
1/17R-b
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH ath-next v3 00/17] wifi: ath12k: Add support for QCN6432

QCN6432 is a PCIe-based device attached to the WCSS Q6 processor. It is registered as a platform device (AHB), and remoteproc APIs are used to boot and shut down the device, similar to other AHB-based devices such as IPQ5332.

However, PCI APIs are used for device setup and register access. Since QCN6432 requires both AHB and PCI APIs for its operation, a hybrid AHB/PCI approach is implemented.

Overview:
- Patch [1/17] adds DT binding documentation for QCN6432.
- Patch [2/17] refactors PCI operations and MSI config structure to support different MSI configurations.
- Patches [3,4,5/17] add hardware parameters, ring mask, and registers

    for QCN6432.
  - Patch [6/17] moves multi MSI vector flag to ath12k_dev_flags.
  - Patches [7,8/17] add hybrid_bus_type and HIF operations support for
    QCN6432.

- Patch [9/17] adds support for unified data-region memory allocation.
- Patch [10/17] moves MSI config to pcic for better abstraction.
- Patches [11,12/17] enable MSI interrupt support for CE and DP rings specific to QCN6432.
- Patch [13/17] uses CMEM write for PPT on hybrid bus devices.
- Patch [14/17] stores and uses per CE DP MSI data for QCN6432.
- Patch [15/17] derives QMI service instance ID per protection domain.
- Patch [16/17] add userpd ID mapping per device.
- Patch [17/17] adds support for QCN6432 in the driver.

Changes in v3:
- patch 1/17: Update the commit subject and change the file name.
- patch 3/17: Initialize qmi_max_chunk_size for QCN6432.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- patch 1/17: Update the compatible string from qcom,qcn6432-wifi to qcom,qcn6432 and remove the | character.
- patch 11/17 and patch 12/17: Fix resource leaks on probe error paths.
- patch 16/17: Move the NULL check before the loop.
- Link to v1: https://lore.kernel.org/linux-wireless/[email protected]/

---
Aaradhana Sahu (10):
dt-bindings: net: wireless: Add QCN6432
wifi: ath12k: Refactor PCI operations and MSI config structure
wifi: ath12k: move multi MSI vector flag to ath12k_dev_flags
wifi: ath12k: Add hybrid_bus_type in ath12k_hw_params
wifi: ath12k: add support for unified data-region memory allocation
wifi: ath12k: move MSI config to pci.c
wifi: ath12k: Add platform MSI support for CE
wifi: ath12k: use CMEM write for PPT on hybrid bus devices
wifi: ath12k: Resolve userPD ID per device
wifi: ath12k: Add QCN6432 AHB support

Sowmiya Sree Elavalagan (7):
wifi: ath12k: Add hardware parameter for QCN6432
wifi: ath12k: Add hardware ring mask for QCN6432
wifi: ath12k: add hardware registers for QCN6432
wifi: ath12k: Add hif operation support for QCN6432
wifi: ath12k: Enable MSI interrupt support for DP interrupt
wifi: ath12k: store and use MSI data per CE and DP interrupt group for QCN6432
wifi: ath12k: Derive QMI service instance ID per protection domain

 .../bindings/net/wireless/qcom,qcn6432.yaml        | 149 +++++++
 drivers/net/wireless/ath/ath12k/Makefile           |   2 +-
 drivers/net/wireless/ath/ath12k/ahb.c              |  54 ++-
 drivers/net/wireless/ath/ath12k/ahb.h              |  10 +-
 drivers/net/wireless/ath/ath12k/ce.c               |   7 +-
 drivers/net/wireless/ath/ath12k/ce.h               |   6 +
 drivers/net/wireless/ath/ath12k/core.c             |  10 +-
 drivers/net/wireless/ath/ath12k/core.h             |  24 ++
 drivers/net/wireless/ath/ath12k/dp.c               |  39 +-
 drivers/net/wireless/ath/ath12k/dp.h               |   2 +-
 drivers/net/wireless/ath/ath12k/hif.h              |  30 ++
 drivers/net/wireless/ath/ath12k/hw.h               |   8 +-
 drivers/net/wireless/ath/ath12k/mhi.c              |   4 +-
 drivers/net/wireless/ath/ath12k/pci.c              | 111 +++---
 drivers/net/wireless/ath/ath12k/pci.h              |  21 +-
 drivers/net/wireless/ath/ath12k/pcic.c             | 435 +++++++++++++++++++++
 drivers/net/wireless/ath/ath12k/pcic.h             |  24 ++
 drivers/net/wireless/ath/ath12k/qmi.c              |  83 +++-
 drivers/net/wireless/ath/ath12k/qmi.h              |   1 +
 drivers/net/wireless/ath/ath12k/wifi7/ahb.c        |  45 ++-
 drivers/net/wireless/ath/ath12k/wifi7/hal.c        |   7 +
 .../net/wireless/ath/ath12k/wifi7/hal_qcn9274.c    |  85 ++++
 .../net/wireless/ath/ath12k/wifi7/hal_qcn9274.h    |   1 +
 drivers/net/wireless/ath/ath12k/wifi7/hw.c         | 143 +++++++
 drivers/net/wireless/ath/ath12k/wifi7/pci.c        |  22 +-
 25 files changed, 1214 insertions(+), 109 deletions(-)

---
base-commit: 2d57db8fbf72b1872e7411e917166bd12ed5bc98
change-id: 20261015-mpp-bringup-75f457bef8ee