AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/10/23 20:05 flow patch-triage
1m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch series introduces support for the Qualcomm QCN6432 802.11be (Wi-Fi 7) device along with internal driver refactorings in the ath12k driver, plus device tree documentation. The affected driver code targets vendor-specific Qualcomm SoC/PCIe hardware (Hexagon DSP / WCSS Q6 subsystem) that is not emulated in standard QEMU or GCE virtual environments. Furthermore, on amd64, the DT-based platform device is structurally unreachable. Consequently, none of the modified executable code can be reached during fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/10/23 20:05 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 0abe96fe35acc9b88eec93541777e36cac92b44a\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Fri Oct 23 20:05:35 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml\nnew file mode 100644\nindex 0000000000000..96e1646205740\n--- /dev/null\n+++ b/Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml\n@@ -0,0 +1,149 @@\n+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)\n+# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n+%YAML 1.2\n+---\n+$id: http://devicetree.org/schemas/net/wireless/qcom,qcn6432.yaml#\n+$schema: http://devicetree.org/meta-schemas/core.yaml#\n+\n+title: Qualcomm Technologies QCN6432 wireless device\n+\n+maintainers:\n+  - Jeff Johnson \u003cjjohnson@kernel.org\u003e\n+\n+description:\n+  Qualcomm Technologies QCN6432 is an IEEE 802.11be Wi-Fi device\n+  associated with the WCSS Q6 subsystem. The device is represented\n+  as a platform device and uses MSI interrupts for its Copy Engine\n+  (CE) and Data Path (DP) rings.\n+\n+properties:\n+  compatible:\n+    enum:\n+      - qcom,qcn6432\n+\n+  reg:\n+    maxItems: 1\n+\n+  interrupts:\n+    items:\n+      - description: Fatal interrupt\n+      - description: Ready interrupt\n+      - description: Spawn acknowledge interrupt\n+      - description: Stop acknowledge interrupt\n+      - description: UMAC reset interrupt\n+\n+  interrupt-names:\n+    items:\n+      - const: fatal\n+      - const: ready\n+      - const: spawn\n+      - const: stop-ack\n+      - const: umac-reset\n+\n+  memory-region:\n+    items:\n+      - description: Q6 memory region\n+      - description: Combined firmware data memory region\n+      - description: Multi Link Operation (MLO) Global memory region\n+\n+  memory-region-names:\n+    items:\n+      - const: q6-region\n+      - const: data-region\n+      - const: mlo-global-mem\n+\n+  msi-parent:\n+    description: Phandle to the MSI controller.\n+    maxItems: 1\n+\n+  qcom,calibration-variant:\n+    $ref: /schemas/types.yaml#/definitions/string\n+    description:\n+      String to uniquely identify variant of the calibration data for designs\n+      with colliding bus and device ids\n+\n+  qcom,rproc:\n+    $ref: /schemas/types.yaml#/definitions/phandle\n+    description:\n+      Phandle to the Qualcomm Hexagon DSP (Q6 remote processor), which is\n+      utilized for offloading Wi-Fi processing tasks. This Q6 remote processor\n+      operates in conjunction with Wi-Fi.\n+\n+  qcom,smem-states:\n+    $ref: /schemas/types.yaml#/definitions/phandle-array\n+    description: States used by the AP to signal the remote processor\n+    items:\n+      - description: Shutdown WCSS PD\n+        items:\n+          - description: Phandle to the Shared Memory Point 2 Point device\n+              handling the communication with a remote processor\n+          - description: Single bit index to toggle in the value sent to\n+              the remote processor\n+            maximum: 31\n+      - description: Stop WCSS PD\n+        items:\n+          - description: Phandle to the Shared Memory Point 2 Point device\n+              handling the communication with a remote processor\n+          - description: Single bit index to toggle in the value sent to\n+              the remote processor\n+            maximum: 31\n+      - description: Spawn WCSS PD\n+        items:\n+          - description: Phandle to the Shared Memory Point 2 Point device\n+              handling the communication with a remote processor\n+          - description: Single bit index to toggle in the value sent to\n+              the remote processor\n+            maximum: 31\n+\n+  qcom,smem-state-names:\n+    description:\n+      Names of the states used by the AP to signal the remote processor\n+    items:\n+      - const: shutdown\n+      - const: stop\n+      - const: spawn\n+\n+required:\n+  - compatible\n+  - reg\n+  - interrupts\n+  - interrupt-names\n+  - memory-region\n+  - memory-region-names\n+  - msi-parent\n+  - qcom,rproc\n+  - qcom,smem-states\n+  - qcom,smem-state-names\n+\n+additionalProperties: false\n+\n+examples:\n+  - |\n+    #include \u003cdt-bindings/interrupt-controller/arm-gic.h\u003e\n+    #include \u003cdt-bindings/interrupt-controller/irq.h\u003e\n+\n+    wifi@21e00000 {\n+        compatible = \"qcom,qcn6432\";\n+        reg = \u003c0x21e00000 0x200000\u003e;\n+        interrupts-extended = \u003c\u0026smp2p_wcss_in 16 IRQ_TYPE_NONE\u003e,\n+                              \u003c\u0026smp2p_wcss_in 17 IRQ_TYPE_NONE\u003e,\n+                              \u003c\u0026smp2p_wcss_in 20 IRQ_TYPE_NONE\u003e,\n+                              \u003c\u0026smp2p_wcss_in 19 IRQ_TYPE_NONE\u003e,\n+                              \u003c\u0026intc GIC_SPI 33 IRQ_TYPE_EDGE_RISING\u003e;\n+        interrupt-names = \"fatal\",\n+                          \"ready\",\n+                          \"spawn\",\n+                          \"stop-ack\",\n+                          \"umac-reset\";\n+        memory-region = \u003c\u0026q6_region\u003e, \u003c\u0026data_region\u003e, \u003c\u0026mlo_mem\u003e;\n+        memory-region-names = \"q6-region\", \"data-region\", \"mlo-global-mem\";\n+        msi-parent = \u003c\u0026v2m0\u003e;\n+        qcom,calibration-variant = \"RDP442_1\";\n+        qcom,rproc = \u003c\u0026q6v5_wcss\u003e;\n+        qcom,smem-states = \u003c\u0026smp2p_wcss_out 16\u003e,\n+                           \u003c\u0026smp2p_wcss_out 17\u003e,\n+                           \u003c\u0026smp2p_wcss_out 18\u003e;\n+        qcom,smem-state-names = \"shutdown\",\n+                                \"stop\",\n+                                \"spawn\";\n+    };\ndiff --git a/drivers/net/wireless/ath/ath12k/Makefile b/drivers/net/wireless/ath/ath12k/Makefile\nindex 3b39b2c333076..861ec85eebed5 100644\n--- a/drivers/net/wireless/ath/ath12k/Makefile\n+++ b/drivers/net/wireless/ath/ath12k/Makefile\n@@ -22,7 +22,7 @@ ath12k-y += core.o \\\n \t    fw.o \\\n \t    p2p.o\n \n-ath12k-$(CONFIG_ATH12K_AHB) += ahb.o\n+ath12k-$(CONFIG_ATH12K_AHB) += ahb.o pcic.o\n \n obj-$(CONFIG_ATH12K) += wifi7/\n \ndiff --git a/drivers/net/wireless/ath/ath12k/ahb.c b/drivers/net/wireless/ath/ath12k/ahb.c\nindex 2c55aae06dd06..b55590c64a2cb 100644\n--- a/drivers/net/wireless/ath/ath12k/ahb.c\n+++ b/drivers/net/wireless/ath/ath12k/ahb.c\n@@ -16,6 +16,8 @@\n #include \"ahb.h\"\n #include \"debug.h\"\n #include \"hif.h\"\n+#include \"pci.h\"\n+#include \"pcic.h\"\n \n #define ATH12K_IRQ_CE0_OFFSET 4\n #define ATH12K_UPD_IRQ_WRD_LEN  18\n@@ -206,8 +208,13 @@ static void ath12k_ahb_free_napi(struct ath12k_base *ab, int num_ext_irq_grp)\n \t\tath12k_ahb_free_napi_for_group(\u0026ab-\u003eext_irq_grp[i]);\n }\n \n-static void ath12k_ahb_free_ext_napi(struct ath12k_base *ab)\n+static void ath12k_ahb_free_config_irq(struct ath12k_base *ab)\n {\n+\tif (ab-\u003ehw_params-\u003ehybrid_bus_type) {\n+\t\tath12k_pcic_free_irq(ab);\n+\t\treturn;\n+\t}\n+\n \tath12k_ahb_free_napi(ab, ATH12K_EXT_IRQ_GRP_NUM_MAX);\n }\n \n@@ -560,12 +567,14 @@ static void ath12k_ahb_power_down(struct ath12k_base *ab, bool is_suspend)\n static void ath12k_ahb_init_qmi_ce_config(struct ath12k_base *ab)\n {\n \tstruct ath12k_qmi_ce_cfg *cfg = \u0026ab-\u003eqmi.ce_cfg;\n+\tstruct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);\n \n \tcfg-\u003etgt_ce_len = ab-\u003ehw_params-\u003etarget_ce_count;\n \tcfg-\u003etgt_ce = ab-\u003ehw_params-\u003etarget_ce_config;\n \tcfg-\u003esvc_to_ce_map_len = ab-\u003ehw_params-\u003esvc_to_ce_map_len;\n \tcfg-\u003esvc_to_ce_map = ab-\u003ehw_params-\u003esvc_to_ce_map;\n-\tab-\u003eqmi.service_ins_id = ab-\u003ehw_params-\u003eqmi_service_ins_id;\n+\tab-\u003eqmi.service_ins_id = ab-\u003ehw_params-\u003eqmi_service_ins_id +\n+\t\t\t\t (ab_ahb-\u003euserpd_id - ATH12K_AHB_USERPD_ID_0);\n }\n \n static void ath12k_ahb_ce_workqueue(struct work_struct *work)\n@@ -717,6 +726,9 @@ static int ath12k_ahb_config_irq(struct ath12k_base *ab)\n \tint irq, irq_idx, i;\n \tint ret;\n \n+\tif (ab-\u003ehw_params-\u003ehybrid_bus_type)\n+\t\treturn ath12k_pcic_config_irq(ab);\n+\n \t/* Configure CE irqs */\n \tfor (i = 0; i \u003c ab-\u003ehw_params-\u003ece_count; i++) {\n \t\tstruct ath12k_ce_pipe *ce_pipe = \u0026ab-\u003ece.ce_pipe[i];\n@@ -790,6 +802,26 @@ const struct ath12k_hif_ops ath12k_ahb_hif_ops = {\n };\n EXPORT_SYMBOL(ath12k_ahb_hif_ops);\n \n+const struct ath12k_hif_ops ath12k_ahb_hif_ops_qcn6432 = {\n+\t.start = ath12k_pcic_start,\n+\t.stop = ath12k_pcic_stop,\n+\t.cmem_read32 = ath12k_pcic_cmem_read32,\n+\t.cmem_write32 = ath12k_pcic_cmem_write32,\n+\t.power_down = ath12k_ahb_power_down,\n+\t.power_up = ath12k_ahb_power_up,\n+\t.read32 = ath12k_pcic_read32,\n+\t.write32 = ath12k_pcic_write32,\n+\t.irq_enable = ath12k_pci_ext_irq_enable,\n+\t.irq_disable = ath12k_pci_ext_irq_disable,\n+\t.get_msi_address = ath12k_pcic_get_msi_address,\n+\t.get_user_msi_vector = ath12k_pci_get_user_msi_assignment,\n+\t.map_service_to_pipe = ath12k_pci_map_service_to_pipe,\n+\t.ce_irq_enable = ath12k_pci_ce_irqs_enable,\n+\t.ce_irq_disable = ath12k_pci_ce_irq_disable_sync,\n+\t.config_static_window = ath12k_pcic_config_static_window,\n+};\n+EXPORT_SYMBOL(ath12k_ahb_hif_ops_qcn6432);\n+\n static irqreturn_t ath12k_userpd_irq_handler(int irq, void *data)\n {\n \tstruct ath12k_base *ab = data;\n@@ -1201,6 +1233,9 @@ static int ath12k_ahb_resource_init(struct ath12k_base *ab)\n \n \tab-\u003emem_len = resource_size(mem_res);\n \n+\tif (ab-\u003ehw_params-\u003ehybrid_bus_type)\n+\t\treturn 0;\n+\n \tif (ab-\u003ehw_params-\u003ece_remap) {\n \t\tconst struct ce_remap *ce_remap = ab-\u003ehw_params-\u003ece_remap;\n \t\t/* CE register space is moved out of WCSS and the space is not\n@@ -1257,10 +1292,14 @@ static void ath12k_ahb_resource_deinit(struct ath12k_base *ab)\n \tif (ab-\u003emem)\n \t\tdevm_iounmap(ab-\u003edev, ab-\u003emem);\n \n+\tab-\u003emem = NULL;\n+\n+\tif (ab-\u003ehw_params-\u003ehybrid_bus_type)\n+\t\treturn;\n+\n \tif (ab-\u003emem_ce)\n \t\tiounmap(ab-\u003emem_ce);\n \n-\tab-\u003emem = NULL;\n \tab-\u003emem_ce = NULL;\n \n \tclk_disable_unprepare(ab_ahb-\u003exo_clk);\n@@ -1324,6 +1363,7 @@ static int ath12k_ahb_probe(struct platform_device *pdev)\n \tath12k_dbg(ab, ATH12K_DBG_AHB, \"AHB device family id: %d\\n\", device_id);\n \n \tab_ahb-\u003edevice_family_ops = \u0026ath12k_ahb_family_drivers[device_id]-\u003eops;\n+\tab_ahb-\u003ereg_base = ath12k_ahb_family_drivers[device_id]-\u003ereg_base;\n \n \t/* Call device specific probe. This is the callback that can\n \t * be used to override any ops in future\n@@ -1382,7 +1422,7 @@ static int ath12k_ahb_probe(struct platform_device *pdev)\n \tret = ab_ahb-\u003edevice_family_ops-\u003earch_init(ab);\n \tif (ret) {\n \t\tath12k_err(ab, \"AHB arch_init failed %d\\n\", ret);\n-\t\tgoto err_free_ext_napi;\n+\t\tgoto err_free_irq;\n \t}\n \n \tret = ath12k_core_init(ab);\n@@ -1396,8 +1436,8 @@ static int ath12k_ahb_probe(struct platform_device *pdev)\n err_deinit_arch:\n \tab_ahb-\u003edevice_family_ops-\u003earch_deinit(ab);\n \n-err_free_ext_napi:\n-\tath12k_ahb_free_ext_napi(ab);\n+err_free_irq:\n+\tath12k_ahb_free_config_irq(ab);\n \n err_rproc_deconfigure:\n \tmutex_lock(\u0026ath12k_rproc_info_lock);\n@@ -1441,7 +1481,7 @@ static void ath12k_ahb_free_resources(struct ath12k_base *ab)\n \tstruct platform_device *pdev = ab-\u003epdev;\n \tstruct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);\n \n-\tath12k_ahb_free_ext_napi(ab);\n+\tath12k_ahb_free_config_irq(ab);\n \tath12k_hal_srng_deinit(ab);\n \tath12k_ce_free_pipes(ab);\n \tath12k_ahb_resource_deinit(ab);\ndiff --git a/drivers/net/wireless/ath/ath12k/ahb.h b/drivers/net/wireless/ath/ath12k/ahb.h\nindex 46a4420d41bdc..373dc3b92728a 100644\n--- a/drivers/net/wireless/ath/ath12k/ahb.h\n+++ b/drivers/net/wireless/ath/ath12k/ahb.h\n@@ -11,13 +11,17 @@\n #include \u003clinux/platform_device.h\u003e\n #include \"core.h\"\n \n+struct ath12k_ahb_reg_base {\n+\tu32 umac_base;\n+\tu32 ce_reg_base;\n+};\n+\n #define ATH12K_AHB_RECOVERY_TIMEOUT (3 * HZ)\n \n #define ATH12K_AHB_SMP2P_SMEM_MSG\t\tGENMASK(15, 0)\n #define ATH12K_AHB_SMP2P_SMEM_SEQ_NO\t\tGENMASK(31, 16)\n #define ATH12K_AHB_SMP2P_SMEM_VALUE_MASK\t0xFFFFFFFF\n #define ATH12K_PCI_CE_WAKE_IRQ\t\t\t2\n-#define ATH12K_PCI_IRQ_CE0_OFFSET\t\t3\n #define ATH12K_ROOTPD_READY_TIMEOUT\t\t(5 * HZ)\n #define ATH12K_RPROC_AFTER_POWERUP\t\tQCOM_SSR_AFTER_POWERUP\n #define ATH12K_AHB_FW_PREFIX\t\t\t\"q6_fw\"\n@@ -66,6 +70,7 @@ enum ath12k_ahb_userpd_irq {\n \n struct ath12k_base;\n extern const struct ath12k_hif_ops ath12k_ahb_hif_ops;\n+extern const struct ath12k_hif_ops ath12k_ahb_hif_ops_qcn6432;\n \n struct ath12k_ahb_device_family_ops {\n \tint (*probe)(struct platform_device *pdev);\n@@ -104,12 +109,15 @@ struct ath12k_ahb {\n \tbool scm_auth_enabled;\n \tstruct ath12k_ahb_rproc_info *rproc_info;\n \tbool supports_multipd;\n+\tu32 static_window_reg;\n+\tconst struct ath12k_ahb_reg_base *reg_base;\n };\n \n struct ath12k_ahb_driver {\n \tconst char *name;\n \tconst struct of_device_id *id_table;\n \tstruct ath12k_ahb_device_family_ops ops;\n+\tconst struct ath12k_ahb_reg_base *reg_base;\n \tstruct platform_driver driver;\n };\n \ndiff --git a/drivers/net/wireless/ath/ath12k/ce.c b/drivers/net/wireless/ath/ath12k/ce.c\nindex c99e915e3885b..cc8ed8451a2f1 100644\n--- a/drivers/net/wireless/ath/ath12k/ce.c\n+++ b/drivers/net/wireless/ath/ath12k/ce.c\n@@ -270,7 +270,12 @@ static void ath12k_ce_srng_msi_ring_params_setup(struct ath12k_base *ab, u32 ce_\n \n \tring_params-\u003emsi_addr = addr_lo;\n \tring_params-\u003emsi_addr |= (dma_addr_t)(((u64)addr_hi) \u003c\u003c 32);\n-\tring_params-\u003emsi_data = (msi_data_idx % msi_data_count) + msi_data_start;\n+\n+\tif (ab-\u003ehw_params-\u003ehybrid_bus_type)\n+\t\tring_params-\u003emsi_data = ab-\u003emsi.ce_msi_data[ce_id];\n+\telse\n+\t\tring_params-\u003emsi_data = (msi_data_idx % msi_data_count) + msi_data_start;\n+\n \tring_params-\u003eflags |= HAL_SRNG_FLAGS_MSI_INTR;\n }\n \ndiff --git a/drivers/net/wireless/ath/ath12k/ce.h b/drivers/net/wireless/ath/ath12k/ce.h\nindex 009cddf2d68d6..c15ec0c32374c 100644\n--- a/drivers/net/wireless/ath/ath12k/ce.h\n+++ b/drivers/net/wireless/ath/ath12k/ce.h\n@@ -9,6 +9,11 @@\n \n #define CE_COUNT_MAX 16\n \n+#define ATH12K_MSI_IRQ_CE0_OFFSET\t3\n+\n+/* IRQ name buffer size for CE interrupts */\n+#define ATH12K_CE_IRQ_NAME_LEN\t\t32\n+\n /* Byte swap data words */\n #define CE_ATTR_BYTE_SWAP_DATA 2\n \n@@ -170,6 +175,7 @@ struct ath12k_ce_pipe {\n \tstruct ath12k_ce_ring *dest_ring;\n \tstruct ath12k_ce_ring *status_ring;\n \tu64 timestamp;\n+\tchar irq_name[ATH12K_CE_IRQ_NAME_LEN];\n };\n \n struct ath12k_ce {\ndiff --git a/drivers/net/wireless/ath/ath12k/core.c b/drivers/net/wireless/ath/ath12k/core.c\nindex 25987bc58556e..cd0aa24848d95 100644\n--- a/drivers/net/wireless/ath/ath12k/core.c\n+++ b/drivers/net/wireless/ath/ath12k/core.c\n@@ -1174,8 +1174,11 @@ static int ath12k_core_mlo_setup(struct ath12k_hw_group *ag)\n \tif (ret)\n \t\treturn ret;\n \n-\tfor (i = 0; i \u003c ag-\u003enum_devices; i++)\n-\t\tath12k_dp_partner_cc_init(ag-\u003eab[i]);\n+\tfor (i = 0; i \u003c ag-\u003enum_devices; i++) {\n+\t\tret = ath12k_dp_partner_cc_init(ag-\u003eab[i]);\n+\t\tif (ret)\n+\t\t\tgoto err_mlo_teardown;\n+\t}\n \n \tret = ath12k_mac_mlo_ready(ag);\n \tif (ret)\n@@ -1350,6 +1353,9 @@ int ath12k_core_qmi_firmware_ready(struct ath12k_base *ab)\n \tstruct ath12k_hw_group *ag = ath12k_ab_to_ag(ab);\n \tint ret, i;\n \n+\tif (ab-\u003ehw_params-\u003ehybrid_bus_type)\n+\t\tath12k_hif_config_static_window(ab);\n+\n \tret = ath12k_core_start_firmware(ab, ab-\u003efw_mode);\n \tif (ret) {\n \t\tath12k_err(ab, \"failed to start firmware: %d\\n\", ret);\ndiff --git a/drivers/net/wireless/ath/ath12k/core.h b/drivers/net/wireless/ath/ath12k/core.h\nindex 99d71dab7c04c..575139555dd7a 100644\n--- a/drivers/net/wireless/ath/ath12k/core.h\n+++ b/drivers/net/wireless/ath/ath12k/core.h\n@@ -158,11 +158,14 @@ enum ath12k_hw_rev {\n \tATH12K_HW_IPQ5332_HW10,\n \tATH12K_HW_QCC2072_HW10,\n \tATH12K_HW_IPQ5424_HW10,\n+\tATH12K_HW_QCN6432_HW10,\n };\n \n #define ATH12K_IRQ_NUM_MAX 57\n #define ATH12K_EXT_IRQ_NUM_MAX\t16\n #define ATH12K_MAX_TCL_RING_NUM\t3\n+#define ATH12K_MAX_MSI_VECTOR\t32\n+#define ATH12K_EXT_IRQ_NAME_LEN\t32\n \n struct ath12k_ext_irq_grp {\n \tstruct ath12k_base *ab;\n@@ -173,6 +176,7 @@ struct ath12k_ext_irq_grp {\n \tbool napi_enabled;\n \tstruct napi_struct napi;\n \tstruct net_device *napi_ndev;\n+\tchar irq_name[ATH12K_EXT_IRQ_NAME_LEN];\n };\n \n enum ath12k_smbios_cc_type {\n@@ -186,6 +190,16 @@ enum ath12k_smbios_cc_type {\n \tATH12K_SMBIOS_CC_WW = 2,\n };\n \n+enum ath12k_msi_supported_hw {\n+\tATH12K_MSI_CONFIG_PCI,\n+\n+\t/*\n+\t * IPCI (Integrated PCI) configuration is used by AHB devices that\n+\t * support platform MSI.\n+\t */\n+\tATH12K_MSI_CONFIG_IPCI,\n+};\n+\n struct ath12k_smbios_bdf {\n \tstruct dmi_header hdr;\n \tu8 features_disabled;\n@@ -273,6 +287,7 @@ enum ath12k_dev_flags {\n \tATH12K_FLAG_QMI_FW_READY_COMPLETE,\n \tATH12K_FLAG_FTM_SEGMENTED,\n \tATH12K_FLAG_FIXED_MEM_REGION,\n+\tATH12K_FLAG_MULTI_MSI_VECTORS,\n };\n \n struct ath12k_tx_conf {\n@@ -1152,6 +1167,15 @@ struct ath12k_base {\n \tstruct rhashtable *rhead_sta_addr;\n \tstruct rhashtable_params rhash_sta_addr_param;\n \n+\tstruct {\n+\t\tconst struct ath12k_msi_config *config;\n+\t\tu32 ep_base_data;\n+\t\tu32 addr_lo;\n+\t\tu32 addr_hi;\n+\t\tu32 ce_msi_data[CE_COUNT_MAX];\n+\t\tu32 dp_msi_data[ATH12K_EXT_IRQ_GRP_NUM_MAX];\n+\t} msi;\n+\n \t/* must be last */\n \tu8 drv_priv[] __aligned(sizeof(void *));\n };\ndiff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c\nindex 83f9edfabf696..0f08003889357 100644\n--- a/drivers/net/wireless/ath/ath12k/dp.c\n+++ b/drivers/net/wireless/ath/ath12k/dp.c\n@@ -225,8 +225,13 @@ static void ath12k_dp_srng_msi_setup(struct ath12k_base *ab,\n \n \tring_params-\u003emsi_addr = addr_lo;\n \tring_params-\u003emsi_addr |= (dma_addr_t)(((u64)addr_hi) \u003c\u003c 32);\n-\tring_params-\u003emsi_data = (msi_group_number % msi_data_count)\n-\t\t+ msi_data_start;\n+\n+\tif (ab-\u003ehw_params-\u003ehybrid_bus_type)\n+\t\tring_params-\u003emsi_data = ab-\u003emsi.dp_msi_data[msi_group_number];\n+\telse\n+\t\tring_params-\u003emsi_data = (msi_group_number % msi_data_count)\n+\t\t\t+ msi_data_start;\n+\n \tring_params-\u003eflags |= HAL_SRNG_FLAGS_MSI_INTR;\n }\n \n@@ -1307,8 +1312,8 @@ static int ath12k_dp_cmem_init(struct ath12k_base *ab,\n \t\t\t       enum ath12k_dp_desc_type type)\n {\n \tconst struct ath12k_dp_profile_params *dp_params = \u0026ab-\u003eprofile_param-\u003edp_params;\n-\tu32 cmem_base;\n-\tint i, start, end;\n+\tu32 cmem_base, val, addr;\n+\tint i, start, end, ret;\n \n \tcmem_base = ab-\u003eqmi.dev_mem[ATH12K_QMI_DEVMEM_CMEM_INDEX].start;\n \n@@ -1328,24 +1333,38 @@ static int ath12k_dp_cmem_init(struct ath12k_base *ab,\n \t}\n \n \t/* Write to PPT in CMEM */\n-\tfor (i = start; i \u003c end; i++)\n-\t\tath12k_hif_write32(ab, cmem_base + ATH12K_PPT_ADDR_OFFSET(i),\n-\t\t\t\t   dp-\u003espt_info[i].paddr \u003e\u003e ATH12K_SPT_4K_ALIGN_OFFSET);\n+\tfor (i = start; i \u003c end; i++) {\n+\t\taddr = cmem_base + ATH12K_PPT_ADDR_OFFSET(i);\n+\t\tval = dp-\u003espt_info[i].paddr \u003e\u003e ATH12K_SPT_4K_ALIGN_OFFSET;\n+\n+\t\tif (ab-\u003ehw_params-\u003ehybrid_bus_type) {\n+\t\t\tret = ath12k_hif_cmem_write32(ab, addr, val);\n+\t\t\tif (ret)\n+\t\t\t\treturn ret;\n+\t\t} else {\n+\t\t\tath12k_hif_write32(ab, addr, val);\n+\t\t}\n+\t}\n \n \treturn 0;\n }\n \n-void ath12k_dp_partner_cc_init(struct ath12k_base *ab)\n+int ath12k_dp_partner_cc_init(struct ath12k_base *ab)\n {\n \tstruct ath12k_hw_group *ag = ab-\u003eag;\n-\tint i;\n+\tint i, ret;\n \n \tfor (i = 0; i \u003c ag-\u003enum_devices; i++) {\n \t\tif (ag-\u003eab[i] == ab)\n \t\t\tcontinue;\n \n-\t\tath12k_dp_cmem_init(ab, ath12k_ab_to_dp(ag-\u003eab[i]), ATH12K_DP_RX_DESC);\n+\t\tret = ath12k_dp_cmem_init(ab, ath12k_ab_to_dp(ag-\u003eab[i]),\n+\t\t\t\t\t  ATH12K_DP_RX_DESC);\n+\t\tif (ret)\n+\t\t\treturn ret;\n \t}\n+\n+\treturn 0;\n }\n \n static u32 ath12k_dp_get_num_spt_pages(struct ath12k_base *ab)\ndiff --git a/drivers/net/wireless/ath/ath12k/dp.h b/drivers/net/wireless/ath/ath12k/dp.h\nindex 108e27dd5797a..5e9cdf72670f1 100644\n--- a/drivers/net/wireless/ath/ath12k/dp.h\n+++ b/drivers/net/wireless/ath/ath12k/dp.h\n@@ -737,7 +737,7 @@ ath12k_dp_rxdma_buf_ring_size(const struct ath12k_dp_profile_params *p)\n }\n \n void ath12k_dp_vdev_tx_attach(struct ath12k *ar, struct ath12k_link_vif *arvif);\n-void ath12k_dp_partner_cc_init(struct ath12k_base *ab);\n+int ath12k_dp_partner_cc_init(struct ath12k_base *ab);\n int ath12k_dp_pdev_alloc(struct ath12k_base *ab);\n void ath12k_dp_pdev_pre_alloc(struct ath12k *ar);\n void ath12k_dp_pdev_free(struct ath12k_base *ab);\ndiff --git a/drivers/net/wireless/ath/ath12k/hif.h b/drivers/net/wireless/ath/ath12k/hif.h\nindex aecdb0c5f2858..faeabd2c3d2a6 100644\n--- a/drivers/net/wireless/ath/ath12k/hif.h\n+++ b/drivers/net/wireless/ath/ath12k/hif.h\n@@ -12,6 +12,8 @@\n struct ath12k_hif_ops {\n \tu32 (*read32)(struct ath12k_base *ab, u32 address);\n \tvoid (*write32)(struct ath12k_base *ab, u32 address, u32 data);\n+\tint (*cmem_read32)(struct ath12k_base *ab, u32 address, u32 *value);\n+\tint (*cmem_write32)(struct ath12k_base *ab, u32 address, u32 data);\n \tvoid (*irq_enable)(struct ath12k_base *ab);\n \tvoid (*irq_disable)(struct ath12k_base *ab);\n \tint (*start)(struct ath12k_base *ab);\n@@ -31,6 +33,7 @@ struct ath12k_hif_ops {\n \tvoid (*ce_irq_disable)(struct ath12k_base *ab);\n \tvoid (*get_ce_msi_idx)(struct ath12k_base *ab, u32 ce_id, u32 *msi_idx);\n \tvoid (*coredump_download)(struct ath12k_base *ab);\n+\tvoid (*config_static_window)(struct ath12k_base *ab);\n };\n \n static inline int ath12k_hif_map_service_to_pipe(struct ath12k_base *ab, u16 service_id,\n@@ -126,6 +129,24 @@ static inline u32 ath12k_hif_read32(struct ath12k_base *ab, u32 address)\n \treturn ab-\u003ehif.ops-\u003eread32(ab, address);\n }\n \n+static inline int ath12k_hif_cmem_read32(struct ath12k_base *ab, u32 address,\n+\t\t\t\t\t u32 *value)\n+{\n+\tif (!ab-\u003ehif.ops-\u003ecmem_read32)\n+\t\treturn -EOPNOTSUPP;\n+\n+\treturn ab-\u003ehif.ops-\u003ecmem_read32(ab, address, value);\n+}\n+\n+static inline int ath12k_hif_cmem_write32(struct ath12k_base *ab, u32 address,\n+\t\t\t\t\t  u32 data)\n+{\n+\tif (!ab-\u003ehif.ops-\u003ecmem_write32)\n+\t\treturn -EOPNOTSUPP;\n+\n+\treturn ab-\u003ehif.ops-\u003ecmem_write32(ab, address, data);\n+}\n+\n static inline void ath12k_hif_write32(struct ath12k_base *ab, u32 address,\n \t\t\t\t      u32 data)\n {\n@@ -153,4 +174,13 @@ static inline void ath12k_hif_coredump_download(struct ath12k_base *ab)\n \tif (ab-\u003ehif.ops-\u003ecoredump_download)\n \t\tab-\u003ehif.ops-\u003ecoredump_download(ab);\n }\n+\n+static inline void ath12k_hif_config_static_window(struct ath12k_base *ab)\n+{\n+\tif (!ab-\u003ehif.ops-\u003econfig_static_window)\n+\t\treturn;\n+\n+\tab-\u003ehif.ops-\u003econfig_static_window(ab);\n+}\n+\n #endif /* ATH12K_HIF_H */\ndiff --git a/drivers/net/wireless/ath/ath12k/hw.h b/drivers/net/wireless/ath/ath12k/hw.h\nindex 52558dd126a04..fb807d5a6ae4e 100644\n--- a/drivers/net/wireless/ath/ath12k/hw.h\n+++ b/drivers/net/wireless/ath/ath12k/hw.h\n@@ -127,7 +127,7 @@ enum ath12k_bus {\n \tATH12K_BUS_AHB,\n };\n \n-#define ATH12K_EXT_IRQ_GRP_NUM_MAX 11\n+#define ATH12K_EXT_IRQ_GRP_NUM_MAX 12\n \n struct hal_rx_desc;\n struct hal_tcl_data_cmd;\n@@ -240,6 +240,12 @@ struct ath12k_hw_params {\n \n \tbool host_alloc_ml_id;\n \tbool advertise_iface_mac_pool;\n+\t/*\n+\t * True for devices with PCIe hardware registered as AHB platform devices.\n+\t * Such devices use AHB APIs for probe/boot but PCIe APIs for operation.\n+\t * Example: QCN6432 (PCIe device attached to Q6, registered as AHB).\n+\t */\n+\tbool hybrid_bus_type;\n };\n \n struct ath12k_hw_ops {\ndiff --git a/drivers/net/wireless/ath/ath12k/mhi.c b/drivers/net/wireless/ath/ath12k/mhi.c\nindex ee87f00bc5de9..56e697fbdad52 100644\n--- a/drivers/net/wireless/ath/ath12k/mhi.c\n+++ b/drivers/net/wireless/ath/ath12k/mhi.c\n@@ -86,7 +86,7 @@ static int ath12k_mhi_get_msi(struct ath12k_pci *ab_pci)\n \n \tmsi_data = base_vector;\n \tfor (i = 0; i \u003c num_vectors; i++) {\n-\t\tif (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\t\tif (test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags))\n \t\t\tirq[i] = ath12k_pci_get_msi_irq(ab-\u003edev,\n \t\t\t\t\t\t\tmsi_data++);\n \t\telse\n@@ -248,7 +248,7 @@ int ath12k_mhi_register(struct ath12k_pci *ab_pci)\n \t\tgoto free_controller;\n \t}\n \n-\tif (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\tif (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags))\n \t\tmhi_ctrl-\u003eirq_flags = IRQF_SHARED | IRQF_NOBALANCING;\n \n \tmhi_ctrl-\u003eiova_start = 0;\ndiff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/ath/ath12k/pci.c\nindex 12bbb75570f1f..4bb14a95aec98 100644\n--- a/drivers/net/wireless/ath/ath12k/pci.c\n+++ b/drivers/net/wireless/ath/ath12k/pci.c\n@@ -22,14 +22,6 @@\n #define ATH12K_PCI_BAR_NUM\t\t0\n #define ATH12K_PCI_DMA_MASK\t\t36\n \n-#define ATH12K_PCI_IRQ_CE0_OFFSET\t\t3\n-\n-#define WINDOW_ENABLE_BIT\t\t0x40000000\n-#define WINDOW_VALUE_MASK\t\tGENMASK(24, 19)\n-#define WINDOW_START\t\t\t0x80000\n-#define WINDOW_RANGE_MASK\t\tGENMASK(18, 0)\n-#define WINDOW_STATIC_MASK\t\tGENMASK(31, 6)\n-\n /* BAR0 + 4k is always accessible, and no\n  * need to force wakeup.\n  * 4K - 32 = 0xFE0\n@@ -48,6 +40,29 @@ static const struct ath12k_msi_config msi_config_one_msi = {\n \t},\n };\n \n+/* TODO: revisit IRQ mapping for new SRNGs */\n+const struct ath12k_msi_config ath12k_msi_config[] = {\n+\t{\n+\t\t.total_vectors = 16,\n+\t\t.total_users = 3,\n+\t\t.users = (const struct ath12k_msi_user[]) {\n+\t\t\t{ .name = \"MHI\", .num_vectors = 3, .base_vector = 0 },\n+\t\t\t{ .name = \"CE\", .num_vectors = 5, .base_vector = 3 },\n+\t\t\t{ .name = \"DP\", .num_vectors = 8, .base_vector = 8 },\n+\t\t},\n+\t},\n+\t{\n+\t\t.total_vectors = 32,\n+\t\t.total_users = 3,\n+\t\t.users = (const struct ath12k_msi_user[]) {\n+\t\t\t{ .name = \"QDSS\", .num_vectors = 1, .base_vector = 0 },\n+\t\t\t{ .name = \"CE\", .num_vectors = 5, .base_vector = 1 },\n+\t\t\t{ .name = \"DP\", .num_vectors = 15, .base_vector = 6 },\n+\t\t},\n+\t},\n+};\n+EXPORT_SYMBOL(ath12k_msi_config);\n+\n static const char *irq_name[ATH12K_IRQ_NUM_MAX] = {\n \t\"bhi\",\n \t\"mhi-er0\",\n@@ -313,7 +328,7 @@ static void ath12k_pci_sw_reset(struct ath12k_base *ab, bool power_on)\n \tath12k_mhi_set_mhictrl_reset(ab);\n }\n \n-static void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce)\n+void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce)\n {\n \tint i, irq_idx;\n \n@@ -321,23 +336,27 @@ static void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce)\n \t\tif (ath12k_ce_get_attr_flags(ab, i) \u0026 CE_ATTR_DIS_INTR)\n \t\t\tcontinue;\n \n-\t\tirq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + i;\n+\t\tirq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;\n \t\tfree_irq(ab-\u003eirq_num[irq_idx], \u0026ab-\u003ece.ce_pipe[i]);\n \t}\n }\n \n-static void ath12k_pci_free_ext_irq(struct ath12k_base *ab, int num_ext_irq_grp)\n+void ath12k_pci_free_ext_irq(struct ath12k_base *ab, int num_ext_irq_grp)\n {\n \tint i, j;\n \n \tfor (i = 0; i \u003c num_ext_irq_grp; i++) {\n \t\tstruct ath12k_ext_irq_grp *irq_grp = \u0026ab-\u003eext_irq_grp[i];\n \n+\t\tif (!irq_grp-\u003enapi_ndev)\n+\t\t\tcontinue;\n+\n \t\tfor (j = 0; j \u003c irq_grp-\u003enum_irq; j++)\n \t\t\tfree_irq(ab-\u003eirq_num[irq_grp-\u003eirqs[j]], irq_grp);\n \n \t\tnetif_napi_del(\u0026irq_grp-\u003enapi);\n \t\tfree_netdev(irq_grp-\u003enapi_ndev);\n+\t\tirq_grp-\u003enapi_ndev = NULL;\n \t}\n }\n \n@@ -349,31 +368,29 @@ static void ath12k_pci_free_irq(struct ath12k_base *ab)\n \n static void ath12k_pci_ce_irq_enable(struct ath12k_base *ab, u16 ce_id)\n {\n-\tstruct ath12k_pci *ab_pci = ath12k_pci_priv(ab);\n \tu32 irq_idx;\n \n \t/* In case of one MSI vector, we handle irq enable/disable in a\n \t * uniform way since we only have one irq\n \t */\n-\tif (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\tif (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags))\n \t\treturn;\n \n-\tirq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_id;\n+\tirq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_id;\n \tenable_irq(ab-\u003eirq_num[irq_idx]);\n }\n \n static void ath12k_pci_ce_irq_disable(struct ath12k_base *ab, u16 ce_id)\n {\n-\tstruct ath12k_pci *ab_pci = ath12k_pci_priv(ab);\n \tu32 irq_idx;\n \n \t/* In case of one MSI vector, we handle irq enable/disable in a\n \t * uniform way since we only have one irq\n \t */\n-\tif (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\tif (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags))\n \t\treturn;\n \n-\tirq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_id;\n+\tirq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_id;\n \tdisable_irq_nosync(ab-\u003eirq_num[irq_idx]);\n }\n \n@@ -390,7 +407,7 @@ static void ath12k_pci_ce_irqs_disable(struct ath12k_base *ab)\n \t}\n }\n \n-static void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab)\n+void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab)\n {\n \tint i;\n \tint irq_idx;\n@@ -399,15 +416,15 @@ static void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab)\n \t\tif (ath12k_ce_get_attr_flags(ab, i) \u0026 CE_ATTR_DIS_INTR)\n \t\t\tcontinue;\n \n-\t\tirq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + i;\n+\t\tirq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;\n \t\tsynchronize_irq(ab-\u003eirq_num[irq_idx]);\n \t}\n }\n \n-static void ath12k_pci_ce_workqueue(struct work_struct *work)\n+void ath12k_pci_ce_workqueue(struct work_struct *work)\n {\n \tstruct ath12k_ce_pipe *ce_pipe = from_work(ce_pipe, work, intr_wq);\n-\tint irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_pipe-\u003epipe_num;\n+\tint irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_pipe-\u003epipe_num;\n \n \tath12k_ce_per_engine_service(ce_pipe-\u003eab, ce_pipe-\u003epipe_num);\n \n@@ -418,7 +435,7 @@ static irqreturn_t ath12k_pci_ce_interrupt_handler(int irq, void *arg)\n {\n \tstruct ath12k_ce_pipe *ce_pipe = arg;\n \tstruct ath12k_base *ab = ce_pipe-\u003eab;\n-\tint irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_pipe-\u003epipe_num;\n+\tint irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_pipe-\u003epipe_num;\n \n \tif (!test_bit(ATH12K_FLAG_CE_IRQ_ENABLED, \u0026ab-\u003edev_flags))\n \t\treturn IRQ_HANDLED;\n@@ -435,13 +452,13 @@ static irqreturn_t ath12k_pci_ce_interrupt_handler(int irq, void *arg)\n \n static void ath12k_pci_ext_grp_disable(struct ath12k_ext_irq_grp *irq_grp)\n {\n-\tstruct ath12k_pci *ab_pci = ath12k_pci_priv(irq_grp-\u003eab);\n+\tstruct ath12k_base *ab = irq_grp-\u003eab;\n \tint i;\n \n \t/* In case of one MSI vector, we handle irq enable/disable\n \t * in a uniform way since we only have one irq\n \t */\n-\tif (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\tif (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags))\n \t\treturn;\n \n \tfor (i = 0; i \u003c irq_grp-\u003enum_irq; i++)\n@@ -470,13 +487,13 @@ static void __ath12k_pci_ext_irq_disable(struct ath12k_base *ab)\n \n static void ath12k_pci_ext_grp_enable(struct ath12k_ext_irq_grp *irq_grp)\n {\n-\tstruct ath12k_pci *ab_pci = ath12k_pci_priv(irq_grp-\u003eab);\n+\tstruct ath12k_base *ab = irq_grp-\u003eab;\n \tint i;\n \n \t/* In case of one MSI vector, we handle irq enable/disable in a\n \t * uniform way since we only have one irq\n \t */\n-\tif (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\tif (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags))\n \t\treturn;\n \n \tfor (i = 0; i \u003c irq_grp-\u003enum_irq; i++)\n@@ -520,7 +537,7 @@ static int ath12k_pci_ext_grp_napi_poll(struct napi_struct *napi, int budget)\n \treturn work_done;\n }\n \n-static irqreturn_t ath12k_pci_ext_interrupt_handler(int irq, void *arg)\n+irqreturn_t ath12k_pci_ext_interrupt_handler(int irq, void *arg)\n {\n \tstruct ath12k_ext_irq_grp *irq_grp = arg;\n \tstruct ath12k_base *ab = irq_grp-\u003eab;\n@@ -551,7 +568,7 @@ static int ath12k_pci_ext_irq_config(struct ath12k_base *ab)\n \tbool threaded_napi = false;\n \tint irq;\n \n-\tbase_idx = ATH12K_PCI_IRQ_CE0_OFFSET + CE_COUNT_MAX;\n+\tbase_idx = ATH12K_MSI_IRQ_CE0_OFFSET + CE_COUNT_MAX;\n \tret = ath12k_pci_get_user_msi_assignment(ab, \"DP\",\n \t\t\t\t\t\t \u0026num_vectors,\n \t\t\t\t\t\t \u0026user_base_data,\n@@ -634,7 +651,7 @@ static int ath12k_pci_ext_irq_config(struct ath12k_base *ab)\n static int ath12k_pci_set_irq_affinity_hint(struct ath12k_pci *ab_pci,\n \t\t\t\t\t    const struct cpumask *m)\n {\n-\tif (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\tif (test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eab-\u003edev_flags))\n \t\treturn 0;\n \n \treturn irq_set_affinity_and_hint(ab_pci-\u003epdev-\u003eirq, m);\n@@ -666,7 +683,7 @@ static int ath12k_pci_config_irq(struct ath12k_base *ab)\n \t\tirq = ath12k_pci_get_msi_irq(ab-\u003edev, msi_data);\n \t\tce_pipe = \u0026ab-\u003ece.ce_pipe[i];\n \n-\t\tirq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + i;\n+\t\tirq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;\n \n \t\tINIT_WORK(\u0026ce_pipe-\u003eintr_wq, ath12k_pci_ce_workqueue);\n \n@@ -718,7 +735,7 @@ static void ath12k_pci_init_qmi_ce_config(struct ath12k_base *ab)\n \t}\n }\n \n-static void ath12k_pci_ce_irqs_enable(struct ath12k_base *ab)\n+void ath12k_pci_ce_irqs_enable(struct ath12k_base *ab)\n {\n \tint i;\n \n@@ -759,7 +776,7 @@ static void ath12k_pci_msi_disable(struct ath12k_pci *ab_pci)\n static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)\n {\n \tstruct ath12k_base *ab = ab_pci-\u003eab;\n-\tconst struct ath12k_msi_config *msi_config = ab_pci-\u003emsi_config;\n+\tconst struct ath12k_msi_config *msi_config = ab-\u003emsi.config;\n \tstruct msi_desc *msi_desc;\n \tint num_vectors;\n \tint ret;\n@@ -770,7 +787,7 @@ static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)\n \t\t\t\t\t    PCI_IRQ_MSI);\n \n \tif (num_vectors == msi_config-\u003etotal_vectors) {\n-\t\tset_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags);\n+\t\tset_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags);\n \t\tab_pci-\u003eirq_flags = IRQF_SHARED;\n \t} else {\n \t\tnum_vectors = pci_alloc_irq_vectors(ab_pci-\u003epdev,\n@@ -781,8 +798,8 @@ static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)\n \t\t\tret = -EINVAL;\n \t\t\tgoto reset_msi_config;\n \t\t}\n-\t\tclear_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags);\n-\t\tab_pci-\u003emsi_config = \u0026msi_config_one_msi;\n+\t\tclear_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags);\n+\t\tab-\u003emsi.config = \u0026msi_config_one_msi;\n \t\tab_pci-\u003eirq_flags = IRQF_SHARED | IRQF_NOBALANCING;\n \t\tath12k_dbg(ab, ATH12K_DBG_PCI, \"request MSI one vector\\n\");\n \t}\n@@ -798,11 +815,11 @@ static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)\n \t\tgoto free_msi_vector;\n \t}\n \n-\tab_pci-\u003emsi_ep_base_data = msi_desc-\u003emsg.data;\n+\tab-\u003emsi.ep_base_data = msi_desc-\u003emsg.data;\n \tif (msi_desc-\u003epci.msi_attrib.is_64)\n \t\tset_bit(ATH12K_PCI_FLAG_IS_MSI_64, \u0026ab_pci-\u003eflags);\n \n-\tath12k_dbg(ab, ATH12K_DBG_PCI, \"msi base data is %d\\n\", ab_pci-\u003emsi_ep_base_data);\n+\tath12k_dbg(ab, ATH12K_DBG_PCI, \"msi base data is %u\\n\", ab-\u003emsi.ep_base_data);\n \n \treturn 0;\n \n@@ -820,6 +837,7 @@ static void ath12k_pci_msi_free(struct ath12k_pci *ab_pci)\n \n static int ath12k_pci_config_msi_data(struct ath12k_pci *ab_pci)\n {\n+\tstruct ath12k_base *ab = ab_pci-\u003eab;\n \tstruct msi_desc *msi_desc;\n \n \tmsi_desc = irq_get_msi_desc(ab_pci-\u003epdev-\u003eirq);\n@@ -829,10 +847,10 @@ static int ath12k_pci_config_msi_data(struct ath12k_pci *ab_pci)\n \t\treturn -EINVAL;\n \t}\n \n-\tab_pci-\u003emsi_ep_base_data = msi_desc-\u003emsg.data;\n+\tab-\u003emsi.ep_base_data = msi_desc-\u003emsg.data;\n \n-\tath12k_dbg(ab_pci-\u003eab, ATH12K_DBG_PCI, \"pci after request_irq msi_ep_base_data %d\\n\",\n-\t\t   ab_pci-\u003emsi_ep_base_data);\n+\tath12k_dbg(ab, ATH12K_DBG_PCI, \"pci after request_irq msi_ep_base_data %u\\n\",\n+\t\t   ab-\u003emsi.ep_base_data);\n \n \treturn 0;\n }\n@@ -955,7 +973,7 @@ static void ath12k_pci_aspm_restore(struct ath12k_pci *ab_pci)\n \t\t\t\t\t\t   PCI_EXP_LNKCTL_ASPMC);\n }\n \n-static void ath12k_pci_cancel_workqueue(struct ath12k_base *ab)\n+void ath12k_pci_cancel_workqueue(struct ath12k_base *ab)\n {\n \tint i;\n \n@@ -969,7 +987,7 @@ static void ath12k_pci_cancel_workqueue(struct ath12k_base *ab)\n \t}\n }\n \n-static void ath12k_pci_ce_irq_disable_sync(struct ath12k_base *ab)\n+void ath12k_pci_ce_irq_disable_sync(struct ath12k_base *ab)\n {\n \tath12k_pci_ce_irqs_disable(ab);\n \tath12k_pci_sync_ce_irqs(ab);\n@@ -1030,15 +1048,14 @@ int ath12k_pci_get_user_msi_assignment(struct ath12k_base *ab, char *user_name,\n \t\t\t\t       int *num_vectors, u32 *user_base_data,\n \t\t\t\t       u32 *base_vector)\n {\n-\tstruct ath12k_pci *ab_pci = ath12k_pci_priv(ab);\n-\tconst struct ath12k_msi_config *msi_config = ab_pci-\u003emsi_config;\n+\tconst struct ath12k_msi_config *msi_config = ab-\u003emsi.config;\n \tint idx;\n \n \tfor (idx = 0; idx \u003c msi_config-\u003etotal_users; idx++) {\n \t\tif (strcmp(user_name, msi_config-\u003eusers[idx].name) == 0) {\n \t\t\t*num_vectors = msi_config-\u003eusers[idx].num_vectors;\n \t\t\t*base_vector =  msi_config-\u003eusers[idx].base_vector;\n-\t\t\t*user_base_data = *base_vector + ab_pci-\u003emsi_ep_base_data;\n+\t\t\t*user_base_data = *base_vector + ab-\u003emsi.ep_base_data;\n \n \t\t\tath12k_dbg(ab, ATH12K_DBG_PCI,\n \t\t\t\t   \"Assign MSI to user: %s, num_vectors: %d, user_base_data: %u, base_vector: %u\\n\",\n@@ -1105,7 +1122,7 @@ void ath12k_pci_ext_irq_enable(struct ath12k_base *ab)\n \tfor (i = 0; i \u003c ATH12K_EXT_IRQ_GRP_NUM_MAX; i++) {\n \t\tstruct ath12k_ext_irq_grp *irq_grp = \u0026ab-\u003eext_irq_grp[i];\n \n-\t\tif (!irq_grp-\u003enapi_enabled) {\n+\t\tif (irq_grp-\u003enapi_ndev \u0026\u0026 !irq_grp-\u003enapi_enabled) {\n \t\t\tnapi_enable(\u0026irq_grp-\u003enapi);\n \t\t\tirq_grp-\u003enapi_enabled = true;\n \t\t}\n@@ -1160,7 +1177,7 @@ int ath12k_pci_start(struct ath12k_base *ab)\n \n \tset_bit(ATH12K_PCI_FLAG_INIT_DONE, \u0026ab_pci-\u003eflags);\n \n-\tif (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, \u0026ab_pci-\u003eflags))\n+\tif (test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags))\n \t\tath12k_pci_aspm_restore(ab_pci);\n \telse\n \t\tath12k_info(ab, \"leaving PCI ASPM disabled to avoid MHI M2 problems\\n\");\ndiff --git a/drivers/net/wireless/ath/ath12k/pci.h b/drivers/net/wireless/ath/ath12k/pci.h\nindex 0e0e2020c6ae5..55cc875f9ce08 100644\n--- a/drivers/net/wireless/ath/ath12k/pci.h\n+++ b/drivers/net/wireless/ath/ath12k/pci.h\n@@ -76,6 +76,14 @@\n #define QRTR_PCI_DOMAIN_NR_MASK\t\tGENMASK(7, 4)\n #define QRTR_PCI_BUS_NUMBER_MASK\tGENMASK(3, 0)\n \n+#define WINDOW_ENABLE_BIT\t\t0x40000000\n+#define WINDOW_REG_ADDRESS\t\t0x310c\n+#define WINDOW_REG_ADDRESS_QCC2072\t0x3278\n+#define WINDOW_VALUE_MASK\t\tGENMASK(24, 19)\n+#define WINDOW_START\t\t\t0x80000\n+#define WINDOW_RANGE_MASK\t\tGENMASK(18, 0)\n+#define WINDOW_STATIC_MASK\t\tGENMASK(31, 6)\n+\n struct ath12k_msi_user {\n \tconst char *name;\n \tint num_vectors;\n@@ -88,11 +96,12 @@ struct ath12k_msi_config {\n \tconst struct ath12k_msi_user *users;\n };\n \n+extern const struct ath12k_msi_config ath12k_msi_config[];\n+\n enum ath12k_pci_flags {\n \tATH12K_PCI_FLAG_INIT_DONE,\n \tATH12K_PCI_FLAG_IS_MSI_64,\n \tATH12K_PCI_ASPM_RESTORE,\n-\tATH12K_PCI_FLAG_MULTI_MSI_VECTORS,\n };\n \n struct ath12k_pci_ops {\n@@ -116,9 +125,7 @@ struct ath12k_pci {\n \tstruct ath12k_base *ab;\n \tu16 dev_id;\n \tchar amss_path[100];\n-\tu32 msi_ep_base_data;\n \tstruct mhi_controller *mhi_ctrl;\n-\tconst struct ath12k_msi_config *msi_config;\n \tunsigned long mhi_state;\n \tenum mhi_callback mhi_pre_cb;\n \tu32 register_window;\n@@ -177,4 +184,12 @@ void ath12k_pci_power_down(struct ath12k_base *ab, bool is_suspend);\n int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\n \t\t\t       struct ath12k_pci_driver *driver);\n void ath12k_pci_unregister_driver(const enum ath12k_device_family device_id);\n+irqreturn_t ath12k_pci_ext_interrupt_handler(int irq, void *arg);\n+void ath12k_pci_ce_irq_disable_sync(struct ath12k_base *ab);\n+void ath12k_pci_ce_irqs_enable(struct ath12k_base *ab);\n+void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab);\n+void ath12k_pci_cancel_workqueue(struct ath12k_base *ab);\n+void ath12k_pci_ce_workqueue(struct work_struct *work);\n+void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce);\n+void ath12k_pci_free_ext_irq(struct ath12k_base *ab, int num_ext_irq_grp);\n #endif /* ATH12K_PCI_H */\ndiff --git a/drivers/net/wireless/ath/ath12k/pcic.c b/drivers/net/wireless/ath/ath12k/pcic.c\nnew file mode 100644\nindex 0000000000000..b6d306fd3b99f\n--- /dev/null\n+++ b/drivers/net/wireless/ath/ath12k/pcic.c\n@@ -0,0 +1,435 @@\n+// SPDX-License-Identifier: BSD-3-Clause-Clear\n+/*\n+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n+ */\n+#include \u003clinux/module.h\u003e\n+#include \u003clinux/msi.h\u003e\n+#include \"ahb.h\"\n+#include \"core.h\"\n+#include \"debug.h\"\n+#include \"hif.h\"\n+#include \"hw.h\"\n+#include \"pci.h\"\n+#include \"pcic.h\"\n+\n+void ath12k_pcic_config_static_window(struct ath12k_base *ab)\n+{\n+\tstruct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);\n+\tu32 umac_window = u32_get_bits(ab_ahb-\u003ereg_base-\u003eumac_base, WINDOW_VALUE_MASK);\n+\tu32 ce_window = u32_get_bits(ab_ahb-\u003ereg_base-\u003ece_reg_base, WINDOW_VALUE_MASK);\n+\tu32 window;\n+\n+\twindow = (umac_window \u003c\u003c 12) | (ce_window \u003c\u003c 6);\n+\twritel_relaxed(WINDOW_ENABLE_BIT | window, ab-\u003emem + WINDOW_REG_ADDRESS);\n+\tab_ahb-\u003estatic_window_reg = readl_relaxed(ab-\u003emem + WINDOW_REG_ADDRESS);\n+}\n+\n+static int ath12k_pcic_select_static_window(struct ath12k_base *ab, u32 addr)\n+{\n+\tstruct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);\n+\n+\tu32 window_bits, new_window, reg_value;\n+\tconst int max_retries = 10;\n+\tint i;\n+\n+\twindow_bits = u32_get_bits(addr, WINDOW_VALUE_MASK);\n+\n+\t/* Update window bits [5:0], preserving other bits */\n+\tnew_window = u32_replace_bits(ab_ahb-\u003estatic_window_reg, window_bits, 0x3f);\n+\n+\tif (new_window == ab_ahb-\u003estatic_window_reg)\n+\t\treturn 0;\n+\n+\treg_value = WINDOW_ENABLE_BIT | new_window;\n+\twritel_relaxed(reg_value, ab-\u003emem + WINDOW_REG_ADDRESS);\n+\n+\t/* Wait for the write to take effect */\n+\tfor (i = 0; i \u003c max_retries; i++) {\n+\t\tif (readl_relaxed(ab-\u003emem + WINDOW_REG_ADDRESS) == reg_value) {\n+\t\t\tab_ahb-\u003estatic_window_reg = reg_value;\n+\t\t\treturn 0;\n+\t\t}\n+\n+\t\tusleep_range(1000, 2000);\n+\t}\n+\n+\tath12k_warn(ab, \"failed to set static window for cmem init\\n\");\n+\treturn -ETIMEDOUT;\n+}\n+\n+int ath12k_pcic_cmem_read32(struct ath12k_base *ab, u32 addr, u32 *value)\n+{\n+\tint ret;\n+\n+\tif (!value)\n+\t\treturn -EINVAL;\n+\n+\tif (addr \u003c WINDOW_START) {\n+\t\t*value = readl_relaxed(ab-\u003emem + addr);\n+\t\treturn 0;\n+\t}\n+\n+\tret = ath12k_pcic_select_static_window(ab, addr);\n+\tif (ret)\n+\t\treturn ret;\n+\n+\t*value = readl_relaxed(ab-\u003emem + WINDOW_START + (addr \u0026 WINDOW_RANGE_MASK));\n+\treturn 0;\n+}\n+\n+int ath12k_pcic_cmem_write32(struct ath12k_base *ab, u32 addr, u32 value)\n+{\n+\tint ret;\n+\n+\tif (addr \u003c WINDOW_START) {\n+\t\twritel_relaxed(value, ab-\u003emem + addr);\n+\t\treturn 0;\n+\t}\n+\n+\tret = ath12k_pcic_select_static_window(ab, addr);\n+\tif (ret)\n+\t\treturn ret;\n+\n+\twritel_relaxed(value, ab-\u003emem + WINDOW_START + (addr \u0026 WINDOW_RANGE_MASK));\n+\treturn 0;\n+}\n+\n+static u32 ath12k_pcic_get_window_start(struct ath12k_base *ab, u32 offset)\n+{\n+\tstruct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);\n+\tu32 window_start;\n+\n+\t/* If offset lies within DP register range, use 3rd window */\n+\tif ((offset ^ ab_ahb-\u003ereg_base-\u003eumac_base) \u003c= WINDOW_RANGE_MASK)\n+\t\twindow_start = 3 * WINDOW_START;\n+\t/* If offset lies within CE register range, use 2nd window */\n+\telse if ((offset ^ ab_ahb-\u003ereg_base-\u003ece_reg_base) \u003c= WINDOW_RANGE_MASK)\n+\t\twindow_start = 2 * WINDOW_START;\n+\telse\n+\t\twindow_start = WINDOW_START;\n+\n+\treturn window_start;\n+}\n+\n+void ath12k_pcic_get_msi_address(struct ath12k_base *ab, u32 *msi_addr_lo,\n+\t\t\t\t u32 *msi_addr_hi)\n+{\n+\t*msi_addr_lo = ab-\u003emsi.addr_lo;\n+\t*msi_addr_hi = ab-\u003emsi.addr_hi;\n+}\n+\n+void ath12k_pcic_stop(struct ath12k_base *ab)\n+{\n+\tath12k_pci_ce_irq_disable_sync(ab);\n+\ttimer_delete_sync(\u0026ab-\u003erx_replenish_retry);\n+\tath12k_ce_cleanup_pipes(ab);\n+}\n+\n+int ath12k_pcic_start(struct ath12k_base *ab)\n+{\n+\tath12k_pci_ce_irqs_enable(ab);\n+\tath12k_ce_rx_post_buf(ab);\n+\treturn 0;\n+}\n+\n+u32 ath12k_pcic_read32(struct ath12k_base *ab, u32 offset)\n+{\n+\tu32 window_start;\n+\n+\tif (offset \u003c WINDOW_START)\n+\t\treturn readl_relaxed(ab-\u003emem + offset);\n+\n+\twindow_start = ath12k_pcic_get_window_start(ab, offset);\n+\treturn readl_relaxed(ab-\u003emem + window_start + (offset \u0026 WINDOW_RANGE_MASK));\n+}\n+\n+void ath12k_pcic_write32(struct ath12k_base *ab, u32 offset, u32 value)\n+{\n+\tu32 window_start;\n+\n+\tif (offset \u003c WINDOW_START) {\n+\t\twritel_relaxed(value, ab-\u003emem + offset);\n+\t\treturn;\n+\t}\n+\n+\twindow_start = ath12k_pcic_get_window_start(ab, offset);\n+\twritel_relaxed(value, ab-\u003emem + window_start + (offset \u0026 WINDOW_RANGE_MASK));\n+}\n+\n+static void ath12k_pcic_ce_irq_disable(struct ath12k_base *ab, u16 ce_id)\n+{\n+\tu32 irq_idx;\n+\n+\tirq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_id;\n+\tdisable_irq_nosync(ab-\u003eirq_num[irq_idx]);\n+}\n+\n+static irqreturn_t ath12k_pcic_ce_interrupt_handler(int irq, void *arg)\n+{\n+\tstruct ath12k_ce_pipe *ce_pipe = arg;\n+\tstruct ath12k_base *ab = ce_pipe-\u003eab;\n+\n+\tif (!test_bit(ATH12K_FLAG_CE_IRQ_ENABLED, \u0026ab-\u003edev_flags))\n+\t\treturn IRQ_HANDLED;\n+\n+\t/* last interrupt received for this CE */\n+\tce_pipe-\u003etimestamp = jiffies;\n+\n+\tath12k_pcic_ce_irq_disable(ab, ce_pipe-\u003epipe_num);\n+\tqueue_work(system_bh_wq, \u0026ce_pipe-\u003eintr_wq);\n+\n+\treturn IRQ_HANDLED;\n+}\n+\n+static void ath12k_pcic_ext_grp_enable(struct ath12k_ext_irq_grp *irq_grp)\n+{\n+\tint i;\n+\n+\tfor (i = 0; i \u003c irq_grp-\u003enum_irq; i++)\n+\t\tenable_irq(irq_grp-\u003eab-\u003eirq_num[irq_grp-\u003eirqs[i]]);\n+}\n+\n+static int ath12k_pcic_ext_grp_napi_poll(struct napi_struct *napi, int budget)\n+{\n+\tstruct ath12k_ext_irq_grp *irq_grp = container_of(napi,\n+\t\t\t\t\t\tstruct ath12k_ext_irq_grp,\n+\t\t\t\t\t\tnapi);\n+\tstruct ath12k_base *ab = irq_grp-\u003eab;\n+\tint work_done;\n+\n+\twork_done = ath12k_dp_service_srng(ab-\u003edp, irq_grp, budget);\n+\tif (work_done \u003c budget) {\n+\t\tif (likely(napi_complete_done(napi, work_done)))\n+\t\t\tath12k_pcic_ext_grp_enable(irq_grp);\n+\t}\n+\n+\tif (work_done \u003e budget)\n+\t\twork_done = budget;\n+\n+\treturn work_done;\n+}\n+\n+static int ath12k_pcic_ext_irq_config(struct ath12k_base *ab,\n+\t\t\t\t      struct msi_desc **msi_desc, int num_msi)\n+{\n+\tstruct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);\n+\tstruct ath12k_ext_irq_grp *irq_grp;\n+\tint j, i, k, vec_idx = 0, ret = 0;\n+\tu8 userpd_id = ab_ahb-\u003euserpd_id;\n+\tu32 num_irq, base_idx;\n+\tstruct msi_desc *desc;\n+\n+\tbase_idx = ATH12K_MSI_IRQ_CE0_OFFSET + CE_COUNT_MAX;\n+\n+\tfor (i = 0; i \u003c ATH12K_EXT_IRQ_GRP_NUM_MAX; i++) {\n+\t\tnum_irq = 0;\n+\t\tirq_grp = \u0026ab-\u003eext_irq_grp[i];\n+\t\tirq_grp-\u003eab = ab;\n+\t\tirq_grp-\u003egrp_id = i;\n+\n+\t\tif (ab-\u003ehw_params-\u003ering_mask-\u003etx[i] ||\n+\t\t    ab-\u003ehw_params-\u003ering_mask-\u003erx[i] ||\n+\t\t    ab-\u003ehw_params-\u003ering_mask-\u003erx_err[i] ||\n+\t\t    ab-\u003ehw_params-\u003ering_mask-\u003erx_wbm_rel[i] ||\n+\t\t    ab-\u003ehw_params-\u003ering_mask-\u003ereo_status[i] ||\n+\t\t    ab-\u003ehw_params-\u003ering_mask-\u003ehost2rxdma[i] ||\n+\t\t    ab-\u003ehw_params-\u003ering_mask-\u003erx_mon_dest[i]) {\n+\t\t\tnum_irq = 1;\n+\t\t}\n+\n+\t\tif (!num_irq)\n+\t\t\tcontinue;\n+\n+\t\tdesc = msi_desc[vec_idx];\n+\n+\t\tirq_grp-\u003enapi_ndev = alloc_netdev_dummy(0);\n+\t\tif (!irq_grp-\u003enapi_ndev) {\n+\t\t\tret = -ENOMEM;\n+\t\t\tgoto fail_allocate;\n+\t\t}\n+\n+\t\tnetif_napi_add(irq_grp-\u003enapi_ndev, \u0026irq_grp-\u003enapi,\n+\t\t\t       ath12k_pcic_ext_grp_napi_poll);\n+\t\tirq_grp-\u003enum_irq = num_irq;\n+\t\tirq_grp-\u003eirqs[0] = base_idx + i;\n+\n+\t\tfor (j = 0; j \u003c irq_grp-\u003enum_irq; j++) {\n+\t\t\tint irq_idx = irq_grp-\u003eirqs[j];\n+\n+\t\t\tscnprintf(irq_grp-\u003eirq_name, sizeof(irq_grp-\u003eirq_name),\n+\t\t\t\t  \"pcic%u_wlan_dp_%u\", userpd_id, i);\n+\t\t\tirq_set_status_flags(desc-\u003eirq, IRQ_DISABLE_UNLAZY);\n+\t\t\tret = request_irq(desc-\u003eirq, ath12k_pci_ext_interrupt_handler,\n+\t\t\t\t\t  IRQF_SHARED, irq_grp-\u003eirq_name, irq_grp);\n+\t\t\tif (ret) {\n+\t\t\t\tath12k_err(ab, \"failed request irq %d, for group %d : %d\\n\",\n+\t\t\t\t\t   desc-\u003eirq, irq_grp-\u003egrp_id, ret);\n+\n+\t\t\t\tfor (k = 0; k \u003c j; k++)\n+\t\t\t\t\tfree_irq(ab-\u003eirq_num[irq_grp-\u003eirqs[k]], irq_grp);\n+\n+\t\t\t\tnetif_napi_del(\u0026irq_grp-\u003enapi);\n+\t\t\t\tfree_netdev(irq_grp-\u003enapi_ndev);\n+\t\t\t\tirq_grp-\u003enapi_ndev = NULL;\n+\t\t\t\tgoto fail_allocate;\n+\t\t\t}\n+\n+\t\t\tab-\u003eirq_num[irq_idx] = desc-\u003eirq;\n+\t\t\tab-\u003emsi.dp_msi_data[i] = desc-\u003emsg.data;\n+\t\t\tdisable_irq_nosync(ab-\u003eirq_num[irq_idx]);\n+\t\t}\n+\n+\t\tvec_idx = (vec_idx + 1) % num_msi;\n+\t}\n+\n+\treturn 0;\n+\n+fail_allocate:\n+\tath12k_pci_free_ext_irq(ab, i);\n+\treturn ret;\n+}\n+\n+static int ath12k_pcic_ce_irq_config(struct ath12k_base *ab,\n+\t\t\t\t     struct msi_desc **msi_desc, int num_msi)\n+{\n+\tstruct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);\n+\tint irq_idx, ret, i, vec_idx = 0;\n+\tu8 userpd_id = ab_ahb-\u003euserpd_id;\n+\tstruct ath12k_ce_pipe *ce_pipe;\n+\tbool msi_info_captured = false;\n+\tstruct msi_desc *desc;\n+\n+\tfor (i = 0; i \u003c ab-\u003ehw_params-\u003ece_count; i++) {\n+\t\tif (ath12k_ce_get_attr_flags(ab, i) \u0026 CE_ATTR_DIS_INTR)\n+\t\t\tcontinue;\n+\n+\t\tce_pipe = \u0026ab-\u003ece.ce_pipe[i];\n+\t\tdesc = msi_desc[vec_idx];\n+\t\tINIT_WORK(\u0026ce_pipe-\u003eintr_wq, ath12k_pci_ce_workqueue);\n+\t\tirq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;\n+\n+\t\tscnprintf(ce_pipe-\u003eirq_name, sizeof(ce_pipe-\u003eirq_name),\n+\t\t\t  \"pcic%u_wlan_ce_%u\", userpd_id, i);\n+\t\tret = request_irq(desc-\u003eirq, ath12k_pcic_ce_interrupt_handler,\n+\t\t\t\t  IRQF_SHARED, ce_pipe-\u003eirq_name, ce_pipe);\n+\t\tif (ret) {\n+\t\t\tath12k_warn(ab, \"failed to request irq %d: %d\\n\", irq_idx, ret);\n+\t\t\tath12k_pci_free_ce_irq(ab, i);\n+\t\t\treturn ret;\n+\t\t}\n+\n+\t\tab-\u003eirq_num[irq_idx] = desc-\u003eirq;\n+\t\tab-\u003emsi.ce_msi_data[i] = desc-\u003emsg.data;\n+\t\tath12k_pcic_ce_irq_disable(ab, i);\n+\t\tvec_idx = (vec_idx + 1) % num_msi;\n+\n+\t\tif (!msi_info_captured) {\n+\t\t\tab-\u003emsi.addr_lo = desc-\u003emsg.address_lo;\n+\t\t\tab-\u003emsi.addr_hi = desc-\u003emsg.address_hi;\n+\t\t\tmsi_info_captured = true;\n+\t\t}\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static void ath12k_msi_msg_handler(struct msi_desc *desc, struct msi_msg *msg)\n+{\n+\tdesc-\u003emsg.address_lo = msg-\u003eaddress_lo;\n+\tdesc-\u003emsg.address_hi = msg-\u003eaddress_hi;\n+\tdesc-\u003emsg.data = msg-\u003edata;\n+}\n+\n+static int ath12k_pcic_request_msi_irqs(struct ath12k_base *ab, int base_vector,\n+\t\t\t\t\tint num_vectors,\n+\t\t\t\t\tint (*irq_config)(struct ath12k_base *ab,\n+\t\t\t\t\t\t\t  struct msi_desc **msi_desc,\n+\t\t\t\t\t\t\t  int num_msi))\n+{\n+\tstruct msi_desc *msi_vecs[ATH12K_MAX_MSI_VECTOR];\n+\tstruct platform_device *pdev = ab-\u003epdev;\n+\tstruct msi_desc *msi_desc;\n+\tint num_msi = 0, ret;\n+\n+\tguard(msi_descs_lock)(\u0026pdev-\u003edev);\n+\n+\tmsi_for_each_desc(msi_desc, \u0026pdev-\u003edev, MSI_DESC_ALL) {\n+\t\tif (msi_desc-\u003emsi_index \u003c base_vector ||\n+\t\t    msi_desc-\u003emsi_index \u003e= (num_vectors + base_vector))\n+\t\t\tcontinue;\n+\n+\t\tif (num_msi \u003e= ATH12K_MAX_MSI_VECTOR)\n+\t\t\treturn -EOVERFLOW;\n+\n+\t\tmsi_vecs[num_msi++] = msi_desc;\n+\t}\n+\n+\tif (!num_msi)\n+\t\treturn -EINVAL;\n+\n+\tret = irq_config(ab, msi_vecs, num_msi);\n+\tif (ret) {\n+\t\tath12k_warn(ab, \"failed to config irq %d\\n\", ret);\n+\t\treturn ret;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+int ath12k_pcic_config_irq(struct ath12k_base *ab)\n+{\n+\tint user_base_data, base_vector, num_vectors;\n+\tstruct platform_device *pdev = ab-\u003epdev;\n+\tint ret;\n+\n+\tab-\u003emsi.config = \u0026ath12k_msi_config[ATH12K_MSI_CONFIG_IPCI];\n+\n+\tret = platform_device_msi_init_and_alloc_irqs(\u0026pdev-\u003edev,\n+\t\t\t\t\t\t      ab-\u003emsi.config-\u003etotal_vectors,\n+\t\t\t\t\t\t      ath12k_msi_msg_handler);\n+\tif (ret)\n+\t\treturn ret;\n+\n+\tret = ath12k_pci_get_user_msi_assignment(ab, \"CE\", \u0026num_vectors,\n+\t\t\t\t\t\t \u0026user_base_data,\n+\t\t\t\t\t\t \u0026base_vector);\n+\tif (ret)\n+\t\tgoto free_msi;\n+\n+\tret = ath12k_pcic_request_msi_irqs(ab, base_vector, num_vectors,\n+\t\t\t\t\t   ath12k_pcic_ce_irq_config);\n+\tif (ret) {\n+\t\tath12k_err(ab, \"failed to config CE irq\\n\");\n+\t\tgoto free_msi;\n+\t}\n+\n+\tret = ath12k_pci_get_user_msi_assignment(ab, \"DP\", \u0026num_vectors,\n+\t\t\t\t\t\t \u0026user_base_data, \u0026base_vector);\n+\tif (ret)\n+\t\tgoto free_ce_irq;\n+\n+\tret = ath12k_pcic_request_msi_irqs(ab, base_vector, num_vectors,\n+\t\t\t\t\t   ath12k_pcic_ext_irq_config);\n+\tif (ret) {\n+\t\tath12k_err(ab, \"failed to config DP irq\\n\");\n+\t\tgoto free_ce_irq;\n+\t}\n+\n+\tset_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, \u0026ab-\u003edev_flags);\n+\treturn 0;\n+\n+free_ce_irq:\n+\tath12k_pci_free_ce_irq(ab, ab-\u003ehw_params-\u003ece_count);\n+free_msi:\n+\tplatform_device_msi_free_irqs_all(\u0026pdev-\u003edev);\n+\treturn ret;\n+}\n+\n+void ath12k_pcic_free_irq(struct ath12k_base *ab)\n+{\n+\tstruct platform_device *pdev = ab-\u003epdev;\n+\n+\tath12k_pci_free_ce_irq(ab, ab-\u003ehw_params-\u003ece_count);\n+\tath12k_pci_free_ext_irq(ab, ATH12K_EXT_IRQ_GRP_NUM_MAX);\n+\tplatform_device_msi_free_irqs_all(\u0026pdev-\u003edev);\n+}\ndiff --git a/drivers/net/wireless/ath/ath12k/pcic.h b/drivers/net/wireless/ath/ath12k/pcic.h\nnew file mode 100644\nindex 0000000000000..7b6c550436188\n--- /dev/null\n+++ b/drivers/net/wireless/ath/ath12k/pcic.h\n@@ -0,0 +1,24 @@\n+/* SPDX-License-Identifier: BSD-3-Clause-Clear */\n+/*\n+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n+ */\n+#ifndef _ATH12K_PCIC_H\n+#define _ATH12K_PCIC_H\n+\n+#include \u003clinux/types.h\u003e\n+\n+struct ath12k_base;\n+\n+int ath12k_pcic_start(struct ath12k_base *ab);\n+void ath12k_pcic_stop(struct ath12k_base *ab);\n+void ath12k_pcic_write32(struct ath12k_base *ab, u32 offset, u32 value);\n+u32 ath12k_pcic_read32(struct ath12k_base *ab, u32 offset);\n+void ath12k_pcic_get_msi_address(struct ath12k_base *ab, u32 *msi_addr_lo,\n+\t\t\t\t u32 *msi_addr_hi);\n+int ath12k_pcic_cmem_write32(struct ath12k_base *ab, u32 addr,\n+\t\t\t     u32 value);\n+int ath12k_pcic_cmem_read32(struct ath12k_base *ab, u32 addr, u32 *value);\n+void ath12k_pcic_config_static_window(struct ath12k_base *ab);\n+int ath12k_pcic_config_irq(struct ath12k_base *ab);\n+void ath12k_pcic_free_irq(struct ath12k_base *ab);\n+#endif /* _ATH12K_PCIC_H */\ndiff --git a/drivers/net/wireless/ath/ath12k/qmi.c b/drivers/net/wireless/ath/ath12k/qmi.c\nindex 817bd820623d2..cc488cfe2b2fb 100644\n--- a/drivers/net/wireless/ath/ath12k/qmi.c\n+++ b/drivers/net/wireless/ath/ath12k/qmi.c\n@@ -2842,6 +2842,26 @@ static const char *ath12k_qmi_get_mem_reg_name(int mem_type)\n \t}\n }\n \n+static int ath12k_qmi_map_target_mem(struct ath12k_base *ab, int idx,\n+\t\t\t\t     phys_addr_t paddr, u32 size, u32 type)\n+{\n+\tab-\u003eqmi.target_mem[idx].paddr = paddr;\n+\n+\tif (paddr) {\n+\t\tab-\u003eqmi.target_mem[idx].v.ioaddr =\n+\t\t\tioremap(ab-\u003eqmi.target_mem[idx].paddr, size);\n+\t\tif (!ab-\u003eqmi.target_mem[idx].v.ioaddr)\n+\t\t\treturn -EIO;\n+\t} else {\n+\t\tab-\u003eqmi.target_mem[idx].v.ioaddr = NULL;\n+\t}\n+\n+\tab-\u003eqmi.target_mem[idx].size = size;\n+\tab-\u003eqmi.target_mem[idx].type = type;\n+\n+\treturn 0;\n+}\n+\n static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)\n {\n \tstruct device_node *np = ab-\u003edev-\u003eof_node;\n@@ -2851,6 +2871,48 @@ static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)\n \tconst char *rname;\n \tint i, idx, ret;\n \n+\tret = of_reserved_mem_region_to_resource_byname(np, \"data-region\", \u0026res);\n+\tif (ret \u0026\u0026 ret != -ENODATA)\n+\t\treturn ret;\n+\n+\tif (!ret) {\n+\t\tavail_rmem_size = resource_size(\u0026res);\n+\t\tfor (i = 0, idx = 0; i \u003c ab-\u003eqmi.mem_seg_count; i++) {\n+\t\t\tchunk = \u0026ab-\u003eqmi.target_mem[i];\n+\n+\t\t\tif (chunk-\u003etype == CALDB_MEM_REGION_TYPE) {\n+\t\t\t\tret = ath12k_qmi_map_target_mem(ab, idx, 0, chunk-\u003esize,\n+\t\t\t\t\t\t\t\tchunk-\u003etype);\n+\t\t\t\tif (ret)\n+\t\t\t\t\tgoto out;\n+\n+\t\t\t\tidx++;\n+\t\t\t\tcontinue;\n+\t\t\t}\n+\n+\t\t\tif (offset \u003e avail_rmem_size ||\n+\t\t\t    avail_rmem_size - offset \u003c chunk-\u003esize) {\n+\t\t\t\tath12k_err(ab, \"failed to assign mem type %u req size %u avail size %zu\\n\",\n+\t\t\t\t\t   chunk-\u003etype, chunk-\u003esize,\n+\t\t\t\t\t   offset \u003e avail_rmem_size ? 0 :\n+\t\t\t\t\t   avail_rmem_size - offset);\n+\t\t\t\tret = -EINVAL;\n+\t\t\t\tgoto out;\n+\t\t\t}\n+\n+\t\t\tret = ath12k_qmi_map_target_mem(ab, idx, res.start + offset,\n+\t\t\t\t\t\t\tchunk-\u003esize, chunk-\u003etype);\n+\t\t\tif (ret)\n+\t\t\t\tgoto out;\n+\n+\t\t\toffset += chunk-\u003esize;\n+\t\t\tidx++;\n+\t\t}\n+\n+\t\tab-\u003eqmi.mem_seg_count = idx;\n+\t\treturn 0;\n+\t}\n+\n \tfor (i = 0, idx = 0; i \u003c ab-\u003eqmi.mem_seg_count; i++) {\n \t\tchunk = \u0026ab-\u003eqmi.target_mem[i];\n \t\tif (chunk-\u003etype == CALDB_MEM_REGION_TYPE) {\n@@ -2860,10 +2922,11 @@ static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)\n \t\t\t * Once cold boot calibration is enabled add support to\n \t\t\t * assign reserved memory from DT.\n \t\t\t */\n-\t\t\tab-\u003eqmi.target_mem[idx].paddr = 0;\n-\t\t\tab-\u003eqmi.target_mem[idx].v.ioaddr = NULL;\n-\t\t\tab-\u003eqmi.target_mem[idx].size = chunk-\u003esize;\n-\t\t\tab-\u003eqmi.target_mem[idx].type = chunk-\u003etype;\n+\t\t\tret = ath12k_qmi_map_target_mem(ab, idx, 0, chunk-\u003esize,\n+\t\t\t\t\t\t\tchunk-\u003etype);\n+\t\t\tif (ret)\n+\t\t\t\tgoto out;\n+\n \t\t\tidx++;\n \t\t\tcontinue;\n \t\t}\n@@ -2904,16 +2967,10 @@ static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)\n \t\t\tgoto out;\n \t\t}\n \n-\t\tab-\u003eqmi.target_mem[idx].paddr = res.start;\n-\t\tab-\u003eqmi.target_mem[idx].v.ioaddr = ioremap(ab-\u003eqmi.target_mem[idx].paddr,\n-\t\t\t\t\t\t\t   chunk-\u003esize);\n-\t\tif (!ab-\u003eqmi.target_mem[idx].v.ioaddr) {\n-\t\t\tret = -EIO;\n+\t\tret = ath12k_qmi_map_target_mem(ab, idx, res.start, chunk-\u003esize,\n+\t\t\t\t\t\tchunk-\u003etype);\n+\t\tif (ret)\n \t\t\tgoto out;\n-\t\t}\n-\n-\t\tab-\u003eqmi.target_mem[idx].size = chunk-\u003esize;\n-\t\tab-\u003eqmi.target_mem[idx].type = chunk-\u003etype;\n \t\tidx++;\n \t}\n \tab-\u003eqmi.mem_seg_count = idx;\ndiff --git a/drivers/net/wireless/ath/ath12k/qmi.h b/drivers/net/wireless/ath/ath12k/qmi.h\nindex 1b1c88906f1e9..60d5811b1c870 100644\n--- a/drivers/net/wireless/ath/ath12k/qmi.h\n+++ b/drivers/net/wireless/ath/ath12k/qmi.h\n@@ -20,6 +20,7 @@\n \n #define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_QCN9274\t0x07\n #define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ5332\t0x2\n+#define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_QCN6432\t0x60\n #define ATH12K_QMI_WLANFW_MAX_TIMESTAMP_LEN_V01\t32\n #define ATH12K_QMI_RESP_LEN_MAX\t\t\t8192\n #define ATH12K_QMI_WLANFW_MAX_NUM_MEM_SEG_V01\t52\ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/ahb.c b/drivers/net/wireless/ath/ath12k/wifi7/ahb.c\nindex 70372db6abae8..ae5380eb6f8f0 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/ahb.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/ahb.c\n@@ -14,6 +14,13 @@\n #include \"hw.h\"\n #include \"dp.h\"\n #include \"core.h\"\n+#include \"hal.h\"\n+\n+static const struct ath12k_ahb_userpd_map ath12k_wifi7_ahb_userpd_map[] = {\n+\t{ .io_start = 0x0c000000, .upd_id = ATH12K_AHB_USERPD_ID_0 },\n+\t{ .io_start = 0x21e00000, .upd_id = ATH12K_AHB_USERPD_ID_1 },\n+\t{ .io_start = 0x19e00000, .upd_id = ATH12K_AHB_USERPD_ID_2 },\n+};\n \n static const struct ath12k_ahb_desc ath12k_wifi7_ahb_desc[] = {\n \t[ATH12K_HW_IPQ5332_HW10] = {\n@@ -28,6 +35,12 @@ static const struct ath12k_ahb_desc ath12k_wifi7_ahb_desc[] = {\n \t\t.ops = \u0026ath12k_ahb_hif_ops,\n \t\t.supports_multipd = false,\n \t},\n+\t[ATH12K_HW_QCN6432_HW10] = {\n+\t\t.hw_rev = ATH12K_HW_QCN6432_HW10,\n+\t\t.auth_enabled = true,\n+\t\t.ops = \u0026ath12k_ahb_hif_ops_qcn6432,\n+\t\t.supports_multipd = true,\n+\t},\n };\n \n static const struct of_device_id ath12k_wifi7_ahb_of_match[] = {\n@@ -37,11 +50,34 @@ static const struct of_device_id ath12k_wifi7_ahb_of_match[] = {\n \t{ .compatible = \"qcom,ipq5424-wifi\",\n \t  .data = (void *)\u0026ath12k_wifi7_ahb_desc[ATH12K_HW_IPQ5424_HW10],\n \t},\n+\t{ .compatible = \"qcom,qcn6432\",\n+\t  .data = (void *)\u0026ath12k_wifi7_ahb_desc[ATH12K_HW_QCN6432_HW10],\n+\t},\n \t{ }\n };\n \n MODULE_DEVICE_TABLE(of, ath12k_wifi7_ahb_of_match);\n \n+static u32 ath12k_wifi7_ahb_get_userpd_id(struct ath12k_base *ab)\n+{\n+\tconst struct ath12k_ahb_userpd_map *map;\n+\tstruct resource *res;\n+\tsize_t i;\n+\n+\tres = platform_get_resource(ab-\u003epdev, IORESOURCE_MEM, 0);\n+\tif (!res)\n+\t\treturn 0;\n+\n+\tfor (i = 0; i \u003c ARRAY_SIZE(ath12k_wifi7_ahb_userpd_map); i++) {\n+\t\tmap = \u0026ath12k_wifi7_ahb_userpd_map[i];\n+\n+\t\tif (map-\u003eio_start == res-\u003estart)\n+\t\t\treturn map-\u003eupd_id;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static int ath12k_wifi7_ahb_probe(struct platform_device *pdev)\n {\n \tconst struct ath12k_ahb_desc *desc;\n@@ -59,7 +95,8 @@ static int ath12k_wifi7_ahb_probe(struct platform_device *pdev)\n \tab-\u003ehw_rev = desc-\u003ehw_rev;\n \tab-\u003ehif.ops = desc-\u003eops;\n \tab_ahb-\u003escm_auth_enabled = desc-\u003eauth_enabled;\n-\tab_ahb-\u003euserpd_id = ATH12K_AHB_USERPD_ID_0;\n+\tab_ahb-\u003esupports_multipd = desc-\u003esupports_multipd;\n+\tab_ahb-\u003euserpd_id = ath12k_wifi7_ahb_get_userpd_id(ab);\n \tif (!ab_ahb-\u003euserpd_id)\n \t\treturn -EOPNOTSUPP;\n \n@@ -72,9 +109,15 @@ static int ath12k_wifi7_ahb_probe(struct platform_device *pdev)\n \treturn 0;\n }\n \n+static const struct ath12k_ahb_reg_base ath12k_wifi7_ahb_reg_base = {\n+\t.umac_base = HAL_SEQ_WCSS_UMAC_OFFSET,\n+\t.ce_reg_base = HAL_CE_WFSS_CE_REG_BASE,\n+};\n+\n static struct ath12k_ahb_driver ath12k_wifi7_ahb_driver = {\n \t.name = \"ath12k_wifi7_ahb\",\n \t.id_table = ath12k_wifi7_ahb_of_match,\n+\t.reg_base = \u0026ath12k_wifi7_ahb_reg_base,\n \t.ops.probe = ath12k_wifi7_ahb_probe,\n \t.ops.arch_init = ath12k_wifi7_arch_init,\n \t.ops.arch_deinit = ath12k_wifi7_arch_deinit,\ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/hal.c b/drivers/net/wireless/ath/ath12k/wifi7/hal.c\nindex a0a1902fb4915..7c468159085f3 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/hal.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/hal.c\n@@ -57,6 +57,13 @@ static const struct ath12k_hw_version_map ath12k_wifi7_hw_ver_map[] = {\n \t\t.hal_params = \u0026ath12k_hw_hal_params_ipq5332,\n \t\t.hw_regs = \u0026ipq5424_regs,\n \t},\n+\t[ATH12K_HW_QCN6432_HW10] = {\n+\t\t.hal_ops = \u0026hal_qcn9274_ops,\n+\t\t.hal_desc_sz = sizeof(struct hal_rx_desc_qcn9274_compact),\n+\t\t.tcl_to_wbm_rbm_map = ath12k_hal_tcl_to_wbm_rbm_map_qcn9274,\n+\t\t.hal_params = \u0026ath12k_hw_hal_params_ipq5332,\n+\t\t.hw_regs = \u0026qcn6432_regs,\n+\t},\n };\n \n int ath12k_wifi7_hal_init(struct ath12k_base *ab)\ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c\nindex 052b59265af85..34f6be9224792 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c\n@@ -572,6 +572,91 @@ const struct ath12k_hw_regs ipq5424_regs = {\n \t\tHAL_IPQ5424_CE_WFSS_REG_BASE,\n };\n \n+const struct ath12k_hw_regs qcn6432_regs = {\n+\t/* SW2TCL(x) R0 ring configuration address */\n+\t.tcl1_ring_id = 0x00000918,\n+\t.tcl1_ring_misc = 0x00000920,\n+\t.tcl1_ring_tp_addr_lsb = 0x0000092c,\n+\t.tcl1_ring_tp_addr_msb = 0x00000930,\n+\t.tcl1_ring_consumer_int_setup_ix0 = 0x00000940,\n+\t.tcl1_ring_consumer_int_setup_ix1 = 0x00000944,\n+\t.tcl1_ring_msi1_base_lsb = 0x00000958,\n+\t.tcl1_ring_msi1_base_msb = 0x0000095c,\n+\t.tcl1_ring_base_lsb = 0x00000910,\n+\t.tcl1_ring_base_msb = 0x00000914,\n+\t.tcl1_ring_msi1_data = 0x00000960,\n+\t.tcl2_ring_base_lsb = 0x00000988,\n+\t.tcl_ring_base_lsb = 0x00000b68,\n+\n+\t/* TCL STATUS ring address */\n+\t.tcl_status_ring_base_lsb = 0x00000d48,\n+\n+\t/* REO DEST ring address */\n+\t.reo2_ring_base = 0x00000578,\n+\t.reo1_misc_ctrl_addr = 0x00000b9c,\n+\t.reo1_sw_cookie_cfg0 = 0x0000006c,\n+\t.reo1_sw_cookie_cfg1 = 0x00000070,\n+\t.reo1_qdesc_lut_base0 = 0x00000074,\n+\t.reo1_qdesc_lut_base1 = 0x00000078,\n+\t.reo1_ring_base_lsb = 0x00000500,\n+\t.reo1_ring_base_msb = 0x00000504,\n+\t.reo1_ring_id = 0x00000508,\n+\t.reo1_ring_misc = 0x00000510,\n+\t.reo1_ring_hp_addr_lsb = 0x00000514,\n+\t.reo1_ring_hp_addr_msb = 0x00000518,\n+\t.reo1_ring_producer_int_setup = 0x00000524,\n+\t.reo1_ring_msi1_base_lsb = 0x00000548,\n+\t.reo1_ring_msi1_base_msb = 0x0000054c,\n+\t.reo1_ring_msi1_data = 0x00000550,\n+\t.reo1_aging_thres_ix0 = 0x00000b28,\n+\t.reo1_aging_thres_ix1 = 0x00000b2c,\n+\t.reo1_aging_thres_ix2 = 0x00000b30,\n+\t.reo1_aging_thres_ix3 = 0x00000b34,\n+\n+\t/* REO Exception ring address */\n+\t.reo2_sw0_ring_base = 0x000008c0,\n+\n+\t/* REO Reinject ring address */\n+\t.sw2reo_ring_base = 0x00000320,\n+\t.sw2reo1_ring_base = 0x00000398,\n+\n+\t/* REO cmd ring address */\n+\t.reo_cmd_ring_base = 0x000002a8,\n+\n+\t/* REO status ring address */\n+\t.reo_status_ring_base = 0x00000aa0,\n+\n+\t/* WBM idle link ring address */\n+\t.wbm_idle_ring_base_lsb = 0x00000d3c,\n+\t.wbm_idle_ring_misc_addr = 0x00000d4c,\n+\t.wbm_r0_idle_list_cntl_addr = 0x00000240,\n+\t.wbm_r0_idle_list_size_addr = 0x00000244,\n+\t.wbm_scattered_ring_base_lsb = 0x00000250,\n+\t.wbm_scattered_ring_base_msb = 0x00000254,\n+\t.wbm_scattered_desc_head_info_ix0 = 0x00000260,\n+\t.wbm_scattered_desc_head_info_ix1 = 0x00000264,\n+\t.wbm_scattered_desc_tail_info_ix0 = 0x00000270,\n+\t.wbm_scattered_desc_tail_info_ix1 = 0x00000274,\n+\t.wbm_scattered_desc_ptr_hp_addr = 0x0000027c,\n+\n+\t/* SW2WBM release ring address */\n+\t.wbm_sw_release_ring_base_lsb = 0x0000037c,\n+\n+\t/* WBM2SW release ring address */\n+\t.wbm0_release_ring_base_lsb = 0x00000e08,\n+\t.wbm1_release_ring_base_lsb = 0x00000e80,\n+\n+\t/* PCIe base address */\n+\t.pcie_qserdes_sysclk_en_sel = 0x01e0c0a8,\n+\t.pcie_pcs_osc_dtct_config_base = 0x01e0d45c,\n+\n+\t/* CE base address */\n+\t.umac_ce0_src_reg_base = 0x01b80000,\n+\t.umac_ce0_dest_reg_base = 0x01b81000,\n+\t.umac_ce1_src_reg_base = 0x01b82000,\n+\t.umac_ce1_dest_reg_base = 0x01b83000,\n+};\n+\n static inline\n bool ath12k_hal_rx_desc_get_first_msdu_qcn9274(struct hal_rx_desc *desc)\n {\ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h\nindex 03cf3792d5236..5c593773109d3 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h\n@@ -18,6 +18,7 @@ extern const struct ath12k_hw_regs qcn9274_v1_regs;\n extern const struct ath12k_hw_regs qcn9274_v2_regs;\n extern const struct ath12k_hw_regs ipq5332_regs;\n extern const struct ath12k_hw_regs ipq5424_regs;\n+extern const struct ath12k_hw_regs qcn6432_regs;\n extern const struct ath12k_hal_tcl_to_wbm_rbm_map\n ath12k_hal_tcl_to_wbm_rbm_map_qcn9274[DP_TCL_NUM_RING_MAX];\n extern const struct ath12k_hw_hal_params ath12k_hw_hal_params_qcn9274;\ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/hw.c b/drivers/net/wireless/ath/ath12k/wifi7/hw.c\nindex b1c17cc197dfd..f7992f8c917f1 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/hw.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/hw.c\n@@ -332,6 +332,56 @@ static const struct ath12k_hw_ring_mask ath12k_wifi7_hw_ring_mask_wcn7850 = {\n \t},\n };\n \n+static const struct ath12k_hw_ring_mask ath12k_wifi7_hw_ring_mask_qcn6432 = {\n+\t.tx  = {\n+\t\tATH12K_TX_RING_MASK_0,\n+\t\tATH12K_TX_RING_MASK_1,\n+\t\tATH12K_TX_RING_MASK_2,\n+\t\t0, 0, 0, 0, 0, 0, 0, 0,\n+\t\tATH12K_TX_RING_MASK_3\n+\t},\n+\t.rx_mon_dest = {\n+\t\t0, 0, 0, 0, 0, 0, 0, 0,\n+\t\tATH12K_RX_MON_RING_MASK_0,\n+\t\tATH12K_RX_MON_RING_MASK_1,\n+\t\tATH12K_RX_MON_RING_MASK_2,\n+\t\t0\n+\t},\n+\t.rx = {\n+\t\t0, 0, 0, 0,\n+\t\tATH12K_RX_RING_MASK_0,\n+\t\tATH12K_RX_RING_MASK_1,\n+\t\tATH12K_RX_RING_MASK_2,\n+\t\tATH12K_RX_RING_MASK_3,\n+\t\t0, 0, 0, 0\n+\t},\n+\t.rx_err = {\n+\t\t0, 0, 0,\n+\t\tATH12K_RX_ERR_RING_MASK_0,\n+\t\t0, 0, 0, 0, 0, 0, 0, 0\n+\t},\n+\t.rx_wbm_rel = {\n+\t\t0, 0, 0,\n+\t\tATH12K_RX_WBM_REL_RING_MASK_0,\n+\t\t0, 0, 0, 0, 0, 0, 0, 0\n+\t},\n+\t.reo_status = {\n+\t\t0, 0, 0,\n+\t\tATH12K_REO_STATUS_RING_MASK_0,\n+\t\t0, 0, 0, 0, 0, 0, 0, 0\n+\t},\n+\t.host2rxdma = {\n+\t\t0, 0,\n+\t\tATH12K_HOST2RXDMA_RING_MASK_0,\n+\t\t0, 0, 0, 0, 0, 0, 0, 0, 0\n+\t},\n+\t.tx_mon_dest = {\n+\t\tATH12K_TX_MON_RING_MASK_0,\n+\t\t0, 0, 0, 0, 0, 0, 0, 0, 0,\n+\t\t0, 0\n+\t},\n+};\n+\n static const struct ce_ie_addr ath12k_wifi7_ce_ie_addr_ipq5332 = {\n \t.ie1_reg_addr = CE_HOST_IPQ5332_IE_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,\n \t.ie2_reg_addr = CE_HOST_IPQ5332_IE_2_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,\n@@ -448,6 +498,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {\n \n \t\t.host_alloc_ml_id = true,\n \t\t.advertise_iface_mac_pool = false,\n+\t\t.hybrid_bus_type = false,\n \t},\n \t{\n \t\t.name = \"wcn7850 hw2.0\",\n@@ -544,6 +595,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {\n \n \t\t.host_alloc_ml_id = false,\n \t\t.advertise_iface_mac_pool = true,\n+\t\t.hybrid_bus_type = false,\n \t},\n \t{\n \t\t.name = \"qcn9274 hw2.0\",\n@@ -636,6 +688,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {\n \n \t\t.host_alloc_ml_id = true,\n \t\t.advertise_iface_mac_pool = false,\n+\t\t.hybrid_bus_type = false,\n \t},\n \t{\n \t\t.name = \"ipq5332 hw1.0\",\n@@ -722,6 +775,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {\n \n \t\t.host_alloc_ml_id = true,\n \t\t.advertise_iface_mac_pool = false,\n+\t\t.hybrid_bus_type = false,\n \t},\n \t{\n \t\t.name = \"qcc2072 hw1.0\",\n@@ -819,6 +873,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {\n \n \t\t.host_alloc_ml_id = false,\n \t\t.advertise_iface_mac_pool = true,\n+\t\t.hybrid_bus_type = false,\n \t},\n \t{\n \t\t.name = \"ipq5424 hw1.0\",\n@@ -908,6 +963,94 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {\n \n \t\t.host_alloc_ml_id = true,\n \t\t.advertise_iface_mac_pool = false,\n+\t\t.hybrid_bus_type = false,\n+\t},\n+\t{\n+\t\t.name = \"qcn6432 hw1.0\",\n+\t\t.hw_rev = ATH12K_HW_QCN6432_HW10,\n+\t\t.fw = {\n+\t\t\t.dir = \"QCN6432/hw1.0\",\n+\t\t\t.board_size = 256 * 1024,\n+\t\t\t.cal_offset = 128 * 1024,\n+\t\t\t.m3_loader = ath12k_m3_fw_loader_remoteproc,\n+\t\t\t.download_aux_ucode = false,\n+\t\t},\n+\t\t.max_radios = 1,\n+\t\t.single_pdev_only = false,\n+\t\t.qmi_service_ins_id = ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_QCN6432,\n+\t\t.qmi_max_chunk_size = SZ_2M,\n+\t\t.internal_sleep_clock = false,\n+\n+\t\t.hw_ops = \u0026qcn9274_ops,\n+\t\t.ring_mask = \u0026ath12k_wifi7_hw_ring_mask_qcn6432,\n+\n+\t\t.host_ce_config = ath12k_wifi7_host_ce_config_ipq5332,\n+\t\t.ce_count = 12,\n+\t\t.target_ce_config = ath12k_wifi7_target_ce_config_wlan_ipq5332,\n+\t\t.target_ce_count = 12,\n+\t\t.svc_to_ce_map = ath12k_wifi7_target_service_to_ce_map_wlan_ipq5332,\n+\t\t.svc_to_ce_map_len = 18,\n+\n+\t\t.rxdma1_enable = true,\n+\t\t.num_rxdma_per_pdev = 1,\n+\t\t.num_rxdma_dst_ring = 0,\n+\t\t.rx_mac_buf_ring = false,\n+\t\t.vdev_start_delay = false,\n+\n+\t\t.interface_modes = BIT(NL80211_IFTYPE_STATION) |\n+\t\t\t\t   BIT(NL80211_IFTYPE_AP) |\n+\t\t\t\t   BIT(NL80211_IFTYPE_MESH_POINT) |\n+\t\t\t\t   BIT(NL80211_IFTYPE_AP_VLAN),\n+\t\t.supports_monitor = true,\n+\t\t.supports_cong_ctrl_max_msdus = true,\n+\n+\t\t.idle_ps = false,\n+\t\t.download_calib = true,\n+\t\t.supports_suspend = false,\n+\t\t.tcl_ring_retry = true,\n+\t\t.reoq_lut_support = false,\n+\t\t.supports_shadow_regs = false,\n+\n+\t\t.num_tcl_banks = 48,\n+\t\t.max_tx_ring = 4,\n+\t\t.mhi_config = NULL,\n+\t\t.wmi_init = \u0026ath12k_wifi7_wmi_init_qcn9274,\n+\n+\t\t.qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01),\n+\n+\t\t.rfkill_pin = 0,\n+\t\t.rfkill_cfg = 0,\n+\t\t.rfkill_on_level = 0,\n+\n+\t\t.rddm_size = 0,\n+\n+\t\t.def_num_link = 0,\n+\t\t.max_mlo_peer = 256,\n+\n+\t\t.otp_board_id_register = 0,\n+\n+\t\t.supports_sta_ps = false,\n+\n+\t\t.acpi_guid = NULL,\n+\t\t.supports_dynamic_smps_6ghz = false,\n+\t\t.iova_mask = 0,\n+\t\t.supports_aspm = false,\n+\n+\t\t.ce_ie_addr = NULL,\n+\t\t.ce_remap = NULL,\n+\t\t.bdf_addr_offset = 0,\n+\n+\t\t.current_cc_support = false,\n+\t\t.dp_primary_link_only = true,\n+\t\t.client = {\n+\t\t\t.max_client_single = 256,\n+\t\t\t.max_client_dbs = 128,\n+\t\t\t.max_client_dbs_sbs = 128,\n+\t\t},\n+\n+\t\t.host_alloc_ml_id = true,\n+\t\t.advertise_iface_mac_pool = false,\n+\t\t.hybrid_bus_type = true,\n \t},\n };\n \ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/pci.c b/drivers/net/wireless/ath/ath12k/wifi7/pci.c\nindex 6c96b52dec131..783c5d020f07c 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/pci.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/pci.c\n@@ -28,9 +28,6 @@\n #define TCSR_SOC_HW_VERSION_MAJOR_MASK\tGENMASK(11, 8)\n #define TCSR_SOC_HW_VERSION_MINOR_MASK\tGENMASK(7, 4)\n \n-#define WINDOW_REG_ADDRESS\t\t0x310c\n-#define WINDOW_REG_ADDRESS_QCC2072\t0x3278\n-\n static const struct pci_device_id ath12k_wifi7_pci_id_table[] = {\n \t{ PCI_VDEVICE(QCOM, QCN9274_DEVICE_ID) },\n \t{ PCI_VDEVICE(QCOM, WCN7850_DEVICE_ID) },\n@@ -40,19 +37,6 @@ static const struct pci_device_id ath12k_wifi7_pci_id_table[] = {\n \n MODULE_DEVICE_TABLE(pci, ath12k_wifi7_pci_id_table);\n \n-/* TODO: revisit IRQ mapping for new SRNG's */\n-static const struct ath12k_msi_config ath12k_wifi7_msi_config[] = {\n-\t{\n-\t\t.total_vectors = 16,\n-\t\t.total_users = 3,\n-\t\t.users = (struct ath12k_msi_user[]) {\n-\t\t\t{ .name = \"MHI\", .num_vectors = 3, .base_vector = 0 },\n-\t\t\t{ .name = \"CE\", .num_vectors = 5, .base_vector = 3 },\n-\t\t\t{ .name = \"DP\", .num_vectors = 8, .base_vector = 8 },\n-\t\t},\n-\t},\n-};\n-\n static const struct ath12k_pci_ops ath12k_wifi7_pci_ops_qcn9274 = {\n \t.wakeup = NULL,\n \t.release = NULL,\n@@ -106,7 +90,7 @@ static int ath12k_wifi7_pci_probe(struct pci_dev *pdev,\n \n \tswitch (pci_dev-\u003edevice) {\n \tcase QCN9274_DEVICE_ID:\n-\t\tab_pci-\u003emsi_config = \u0026ath12k_wifi7_msi_config[0];\n+\t\tab-\u003emsi.config = \u0026ath12k_msi_config[ATH12K_MSI_CONFIG_PCI];\n \t\tab-\u003estatic_window_map = true;\n \t\tab_pci-\u003epci_ops = \u0026ath12k_wifi7_pci_ops_qcn9274;\n \t\t/*\n@@ -133,7 +117,7 @@ static int ath12k_wifi7_pci_probe(struct pci_dev *pdev,\n \t\tbreak;\n \tcase WCN7850_DEVICE_ID:\n \t\tab-\u003eid.bdf_search = ATH12K_BDF_SEARCH_BUS_AND_BOARD;\n-\t\tab_pci-\u003emsi_config = \u0026ath12k_wifi7_msi_config[0];\n+\t\tab-\u003emsi.config = \u0026ath12k_msi_config[ATH12K_MSI_CONFIG_PCI];\n \t\tab-\u003estatic_window_map = false;\n \t\tab_pci-\u003epci_ops = \u0026ath12k_wifi7_pci_ops_wcn7850;\n \t\t/*\n@@ -157,7 +141,7 @@ static int ath12k_wifi7_pci_probe(struct pci_dev *pdev,\n \t\tbreak;\n \tcase QCC2072_DEVICE_ID:\n \t\tab-\u003eid.bdf_search = ATH12K_BDF_SEARCH_BUS_AND_BOARD;\n-\t\tab_pci-\u003emsi_config = \u0026ath12k_wifi7_msi_config[0];\n+\t\tab-\u003emsi.config = \u0026ath12k_msi_config[ATH12K_MSI_CONFIG_PCI];\n \t\tab-\u003estatic_window_map = false;\n \t\tab_pci-\u003epci_ops = \u0026ath12k_wifi7_pci_ops_wcn7850;\n \t\tab_pci-\u003ewindow_reg_addr = WINDOW_REG_ADDRESS_QCC2072;\n"
}

2/1 2026/10/23 20:05 agent patch-evaluator
1m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch series introduces support for the Qualcomm QCN6432 802.11be (Wi-Fi 7) device along with internal driver refactorings in the ath12k driver, plus device tree documentation. The affected driver code targets vendor-specific Qualcomm SoC/PCIe hardware (Hexagon DSP / WCSS Q6 subsystem) that is not emulated in standard QEMU or GCE virtual environments. Furthermore, on amd64, the DT-based platform device is structurally unreachable. Consequently, none of the modified executable code can be reached during fuzzing.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 0abe96fe35acc9b88eec93541777e36cac92b44a
Author: syz-cluster <triage@syzkaller.com>
Date:   Fri Oct 23 20:05:35 2026 +0000

    syz-cluster: applied patch under review

diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml b/Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml
new file mode 100644
index 0000000000000..96e1646205740
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml
@@ -0,0 +1,149 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/wireless/qcom,qcn6432.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Technologies QCN6432 wireless device
+
+maintainers:
+  - Jeff Johnson <jjohnson@kernel.org>
+
+description:
+  Qualcomm Technologies QCN6432 is an IEEE 802.11be Wi-Fi device
+  associated with the WCSS Q6 subsystem. The device is represented
+  as a platform device and uses MSI interrupts for its Copy Engine
+  (CE) and Data Path (DP) rings.
+
+properties:
+  compatible:
+    enum:
+      - qcom,qcn6432
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: Fatal interrupt
+      - description: Ready interrupt
+      - description: Spawn acknowledge interrupt
+      - description: Stop acknowledge interrupt
+      - description: UMAC reset interrupt
+
+  interrupt-names:
+    items:
+      - const: fatal
+      - const: ready
+      - const: spawn
+      - const: stop-ack
+      - const: umac-reset
+
+  memory-region:
+    items:
+      - description: Q6 memory region
+      - description: Combined firmware data memory region
+      - description: Multi Link Operation (MLO) Global memory region
+
+  memory-region-names:
+    items:
+      - const: q6-region
+      - const: data-region
+      - const: mlo-global-mem
+
+  msi-parent:
+    description: Phandle to the MSI controller.
+    maxItems: 1
+
+  qcom,calibration-variant:
+    $ref: /schemas/types.yaml#/definitions/string
+    description:
+      String to uniquely identify variant of the calibration data for designs
+      with colliding bus and device ids
+
+  qcom,rproc:
+    $ref: /schemas/types.yaml#/definitions/phandle
+    description:
+      Phandle to the Qualcomm Hexagon DSP (Q6 remote processor), which is
+      utilized for offloading Wi-Fi processing tasks. This Q6 remote processor
+      operates in conjunction with Wi-Fi.
+
+  qcom,smem-states:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    description: States used by the AP to signal the remote processor
+    items:
+      - description: Shutdown WCSS PD
+        items:
+          - description: Phandle to the Shared Memory Point 2 Point device
+              handling the communication with a remote processor
+          - description: Single bit index to toggle in the value sent to
+              the remote processor
+            maximum: 31
+      - description: Stop WCSS PD
+        items:
+          - description: Phandle to the Shared Memory Point 2 Point device
+              handling the communication with a remote processor
+          - description: Single bit index to toggle in the value sent to
+              the remote processor
+            maximum: 31
+      - description: Spawn WCSS PD
+        items:
+          - description: Phandle to the Shared Memory Point 2 Point device
+              handling the communication with a remote processor
+          - description: Single bit index to toggle in the value sent to
+              the remote processor
+            maximum: 31
+
+  qcom,smem-state-names:
+    description:
+      Names of the states used by the AP to signal the remote processor
+    items:
+      - const: shutdown
+      - const: stop
+      - const: spawn
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+  - memory-region
+  - memory-region-names
+  - msi-parent
+  - qcom,rproc
+  - qcom,smem-states
+  - qcom,smem-state-names
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    wifi@21e00000 {
+        compatible = "qcom,qcn6432";
+        reg = <0x21e00000 0x200000>;
+        interrupts-extended = <&smp2p_wcss_in 16 IRQ_TYPE_NONE>,
+                              <&smp2p_wcss_in 17 IRQ_TYPE_NONE>,
+                              <&smp2p_wcss_in 20 IRQ_TYPE_NONE>,
+                              <&smp2p_wcss_in 19 IRQ_TYPE_NONE>,
+                              <&intc GIC_SPI 33 IRQ_TYPE_EDGE_RISING>;
+        interrupt-names = "fatal",
+                          "ready",
+                          "spawn",
+                          "stop-ack",
+                          "umac-reset";
+        memory-region = <&q6_region>, <&data_region>, <&mlo_mem>;
+        memory-region-names = "q6-region", "data-region", "mlo-global-mem";
+        msi-parent = <&v2m0>;
+        qcom,calibration-variant = "RDP442_1";
+        qcom,rproc = <&q6v5_wcss>;
+        qcom,smem-states = <&smp2p_wcss_out 16>,
+                           <&smp2p_wcss_out 17>,
+                           <&smp2p_wcss_out 18>;
+        qcom,smem-state-names = "shutdown",
+                                "stop",
+                                "spawn";
+    };
diff --git a/drivers/net/wireless/ath/ath12k/Makefile b/drivers/net/wireless/ath/ath12k/Makefile
index 3b39b2c333076..861ec85eebed5 100644
--- a/drivers/net/wireless/ath/ath12k/Makefile
+++ b/drivers/net/wireless/ath/ath12k/Makefile
@@ -22,7 +22,7 @@ ath12k-y += core.o \
 	    fw.o \
 	    p2p.o
 
-ath12k-$(CONFIG_ATH12K_AHB) += ahb.o
+ath12k-$(CONFIG_ATH12K_AHB) += ahb.o pcic.o
 
 obj-$(CONFIG_ATH12K) += wifi7/
 
diff --git a/drivers/net/wireless/ath/ath12k/ahb.c b/drivers/net/wireless/ath/ath12k/ahb.c
index 2c55aae06dd06..b55590c64a2cb 100644
--- a/drivers/net/wireless/ath/ath12k/ahb.c
+++ b/drivers/net/wireless/ath/ath12k/ahb.c
@@ -16,6 +16,8 @@
 #include "ahb.h"
 #include "debug.h"
 #include "hif.h"
+#include "pci.h"
+#include "pcic.h"
 
 #define ATH12K_IRQ_CE0_OFFSET 4
 #define ATH12K_UPD_IRQ_WRD_LEN  18
@@ -206,8 +208,13 @@ static void ath12k_ahb_free_napi(struct ath12k_base *ab, int num_ext_irq_grp)
 		ath12k_ahb_free_napi_for_group(&ab->ext_irq_grp[i]);
 }
 
-static void ath12k_ahb_free_ext_napi(struct ath12k_base *ab)
+static void ath12k_ahb_free_config_irq(struct ath12k_base *ab)
 {
+	if (ab->hw_params->hybrid_bus_type) {
+		ath12k_pcic_free_irq(ab);
+		return;
+	}
+
 	ath12k_ahb_free_napi(ab, ATH12K_EXT_IRQ_GRP_NUM_MAX);
 }
 
@@ -560,12 +567,14 @@ static void ath12k_ahb_power_down(struct ath12k_base *ab, bool is_suspend)
 static void ath12k_ahb_init_qmi_ce_config(struct ath12k_base *ab)
 {
 	struct ath12k_qmi_ce_cfg *cfg = &ab->qmi.ce_cfg;
+	struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);
 
 	cfg->tgt_ce_len = ab->hw_params->target_ce_count;
 	cfg->tgt_ce = ab->hw_params->target_ce_config;
 	cfg->svc_to_ce_map_len = ab->hw_params->svc_to_ce_map_len;
 	cfg->svc_to_ce_map = ab->hw_params->svc_to_ce_map;
-	ab->qmi.service_ins_id = ab->hw_params->qmi_service_ins_id;
+	ab->qmi.service_ins_id = ab->hw_params->qmi_service_ins_id +
+				 (ab_ahb->userpd_id - ATH12K_AHB_USERPD_ID_0);
 }
 
 static void ath12k_ahb_ce_workqueue(struct work_struct *work)
@@ -717,6 +726,9 @@ static int ath12k_ahb_config_irq(struct ath12k_base *ab)
 	int irq, irq_idx, i;
 	int ret;
 
+	if (ab->hw_params->hybrid_bus_type)
+		return ath12k_pcic_config_irq(ab);
+
 	/* Configure CE irqs */
 	for (i = 0; i < ab->hw_params->ce_count; i++) {
 		struct ath12k_ce_pipe *ce_pipe = &ab->ce.ce_pipe[i];
@@ -790,6 +802,26 @@ const struct ath12k_hif_ops ath12k_ahb_hif_ops = {
 };
 EXPORT_SYMBOL(ath12k_ahb_hif_ops);
 
+const struct ath12k_hif_ops ath12k_ahb_hif_ops_qcn6432 = {
+	.start = ath12k_pcic_start,
+	.stop = ath12k_pcic_stop,
+	.cmem_read32 = ath12k_pcic_cmem_read32,
+	.cmem_write32 = ath12k_pcic_cmem_write32,
+	.power_down = ath12k_ahb_power_down,
+	.power_up = ath12k_ahb_power_up,
+	.read32 = ath12k_pcic_read32,
+	.write32 = ath12k_pcic_write32,
+	.irq_enable = ath12k_pci_ext_irq_enable,
+	.irq_disable = ath12k_pci_ext_irq_disable,
+	.get_msi_address = ath12k_pcic_get_msi_address,
+	.get_user_msi_vector = ath12k_pci_get_user_msi_assignment,
+	.map_service_to_pipe = ath12k_pci_map_service_to_pipe,
+	.ce_irq_enable = ath12k_pci_ce_irqs_enable,
+	.ce_irq_disable = ath12k_pci_ce_irq_disable_sync,
+	.config_static_window = ath12k_pcic_config_static_window,
+};
+EXPORT_SYMBOL(ath12k_ahb_hif_ops_qcn6432);
+
 static irqreturn_t ath12k_userpd_irq_handler(int irq, void *data)
 {
 	struct ath12k_base *ab = data;
@@ -1201,6 +1233,9 @@ static int ath12k_ahb_resource_init(struct ath12k_base *ab)
 
 	ab->mem_len = resource_size(mem_res);
 
+	if (ab->hw_params->hybrid_bus_type)
+		return 0;
+
 	if (ab->hw_params->ce_remap) {
 		const struct ce_remap *ce_remap = ab->hw_params->ce_remap;
 		/* CE register space is moved out of WCSS and the space is not
@@ -1257,10 +1292,14 @@ static void ath12k_ahb_resource_deinit(struct ath12k_base *ab)
 	if (ab->mem)
 		devm_iounmap(ab->dev, ab->mem);
 
+	ab->mem = NULL;
+
+	if (ab->hw_params->hybrid_bus_type)
+		return;
+
 	if (ab->mem_ce)
 		iounmap(ab->mem_ce);
 
-	ab->mem = NULL;
 	ab->mem_ce = NULL;
 
 	clk_disable_unprepare(ab_ahb->xo_clk);
@@ -1324,6 +1363,7 @@ static int ath12k_ahb_probe(struct platform_device *pdev)
 	ath12k_dbg(ab, ATH12K_DBG_AHB, "AHB device family id: %d\n", device_id);
 
 	ab_ahb->device_family_ops = &ath12k_ahb_family_drivers[device_id]->ops;
+	ab_ahb->reg_base = ath12k_ahb_family_drivers[device_id]->reg_base;
 
 	/* Call device specific probe. This is the callback that can
 	 * be used to override any ops in future
@@ -1382,7 +1422,7 @@ static int ath12k_ahb_probe(struct platform_device *pdev)
 	ret = ab_ahb->device_family_ops->arch_init(ab);
 	if (ret) {
 		ath12k_err(ab, "AHB arch_init failed %d\n", ret);
-		goto err_free_ext_napi;
+		goto err_free_irq;
 	}
 
 	ret = ath12k_core_init(ab);
@@ -1396,8 +1436,8 @@ static int ath12k_ahb_probe(struct platform_device *pdev)
 err_deinit_arch:
 	ab_ahb->device_family_ops->arch_deinit(ab);
 
-err_free_ext_napi:
-	ath12k_ahb_free_ext_napi(ab);
+err_free_irq:
+	ath12k_ahb_free_config_irq(ab);
 
 err_rproc_deconfigure:
 	mutex_lock(&ath12k_rproc_info_lock);
@@ -1441,7 +1481,7 @@ static void ath12k_ahb_free_resources(struct ath12k_base *ab)
 	struct platform_device *pdev = ab->pdev;
 	struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);
 
-	ath12k_ahb_free_ext_napi(ab);
+	ath12k_ahb_free_config_irq(ab);
 	ath12k_hal_srng_deinit(ab);
 	ath12k_ce_free_pipes(ab);
 	ath12k_ahb_resource_deinit(ab);
diff --git a/drivers/net/wireless/ath/ath12k/ahb.h b/drivers/net/wireless/ath/ath12k/ahb.h
index 46a4420d41bdc..373dc3b92728a 100644
--- a/drivers/net/wireless/ath/ath12k/ahb.h
+++ b/drivers/net/wireless/ath/ath12k/ahb.h
@@ -11,13 +11,17 @@
 #include <linux/platform_device.h>
 #include "core.h"
 
+struct ath12k_ahb_reg_base {
+	u32 umac_base;
+	u32 ce_reg_base;
+};
+
 #define ATH12K_AHB_RECOVERY_TIMEOUT (3 * HZ)
 
 #define ATH12K_AHB_SMP2P_SMEM_MSG		GENMASK(15, 0)
 #define ATH12K_AHB_SMP2P_SMEM_SEQ_NO		GENMASK(31, 16)
 #define ATH12K_AHB_SMP2P_SMEM_VALUE_MASK	0xFFFFFFFF
 #define ATH12K_PCI_CE_WAKE_IRQ			2
-#define ATH12K_PCI_IRQ_CE0_OFFSET		3
 #define ATH12K_ROOTPD_READY_TIMEOUT		(5 * HZ)
 #define ATH12K_RPROC_AFTER_POWERUP		QCOM_SSR_AFTER_POWERUP
 #define ATH12K_AHB_FW_PREFIX			"q6_fw"
@@ -66,6 +70,7 @@ enum ath12k_ahb_userpd_irq {
 
 struct ath12k_base;
 extern const struct ath12k_hif_ops ath12k_ahb_hif_ops;
+extern const struct ath12k_hif_ops ath12k_ahb_hif_ops_qcn6432;
 
 struct ath12k_ahb_device_family_ops {
 	int (*probe)(struct platform_device *pdev);
@@ -104,12 +109,15 @@ struct ath12k_ahb {
 	bool scm_auth_enabled;
 	struct ath12k_ahb_rproc_info *rproc_info;
 	bool supports_multipd;
+	u32 static_window_reg;
+	const struct ath12k_ahb_reg_base *reg_base;
 };
 
 struct ath12k_ahb_driver {
 	const char *name;
 	const struct of_device_id *id_table;
 	struct ath12k_ahb_device_family_ops ops;
+	const struct ath12k_ahb_reg_base *reg_base;
 	struct platform_driver driver;
 };
 
diff --git a/drivers/net/wireless/ath/ath12k/ce.c b/drivers/net/wireless/ath/ath12k/ce.c
index c99e915e3885b..cc8ed8451a2f1 100644
--- a/drivers/net/wireless/ath/ath12k/ce.c
+++ b/drivers/net/wireless/ath/ath12k/ce.c
@@ -270,7 +270,12 @@ static void ath12k_ce_srng_msi_ring_params_setup(struct ath12k_base *ab, u32 ce_
 
 	ring_params->msi_addr = addr_lo;
 	ring_params->msi_addr |= (dma_addr_t)(((u64)addr_hi) << 32);
-	ring_params->msi_data = (msi_data_idx % msi_data_count) + msi_data_start;
+
+	if (ab->hw_params->hybrid_bus_type)
+		ring_params->msi_data = ab->msi.ce_msi_data[ce_id];
+	else
+		ring_params->msi_data = (msi_data_idx % msi_data_count) + msi_data_start;
+
 	ring_params->flags |= HAL_SRNG_FLAGS_MSI_INTR;
 }
 
diff --git a/drivers/net/wireless/ath/ath12k/ce.h b/drivers/net/wireless/ath/ath12k/ce.h
index 009cddf2d68d6..c15ec0c32374c 100644
--- a/drivers/net/wireless/ath/ath12k/ce.h
+++ b/drivers/net/wireless/ath/ath12k/ce.h
@@ -9,6 +9,11 @@
 
 #define CE_COUNT_MAX 16
 
+#define ATH12K_MSI_IRQ_CE0_OFFSET	3
+
+/* IRQ name buffer size for CE interrupts */
+#define ATH12K_CE_IRQ_NAME_LEN		32
+
 /* Byte swap data words */
 #define CE_ATTR_BYTE_SWAP_DATA 2
 
@@ -170,6 +175,7 @@ struct ath12k_ce_pipe {
 	struct ath12k_ce_ring *dest_ring;
 	struct ath12k_ce_ring *status_ring;
 	u64 timestamp;
+	char irq_name[ATH12K_CE_IRQ_NAME_LEN];
 };
 
 struct ath12k_ce {
diff --git a/drivers/net/wireless/ath/ath12k/core.c b/drivers/net/wireless/ath/ath12k/core.c
index 25987bc58556e..cd0aa24848d95 100644
--- a/drivers/net/wireless/ath/ath12k/core.c
+++ b/drivers/net/wireless/ath/ath12k/core.c
@@ -1174,8 +1174,11 @@ static int ath12k_core_mlo_setup(struct ath12k_hw_group *ag)
 	if (ret)
 		return ret;
 
-	for (i = 0; i < ag->num_devices; i++)
-		ath12k_dp_partner_cc_init(ag->ab[i]);
+	for (i = 0; i < ag->num_devices; i++) {
+		ret = ath12k_dp_partner_cc_init(ag->ab[i]);
+		if (ret)
+			goto err_mlo_teardown;
+	}
 
 	ret = ath12k_mac_mlo_ready(ag);
 	if (ret)
@@ -1350,6 +1353,9 @@ int ath12k_core_qmi_firmware_ready(struct ath12k_base *ab)
 	struct ath12k_hw_group *ag = ath12k_ab_to_ag(ab);
 	int ret, i;
 
+	if (ab->hw_params->hybrid_bus_type)
+		ath12k_hif_config_static_window(ab);
+
 	ret = ath12k_core_start_firmware(ab, ab->fw_mode);
 	if (ret) {
 		ath12k_err(ab, "failed to start firmware: %d\n", ret);
diff --git a/drivers/net/wireless/ath/ath12k/core.h b/drivers/net/wireless/ath/ath12k/core.h
index 99d71dab7c04c..575139555dd7a 100644
--- a/drivers/net/wireless/ath/ath12k/core.h
+++ b/drivers/net/wireless/ath/ath12k/core.h
@@ -158,11 +158,14 @@ enum ath12k_hw_rev {
 	ATH12K_HW_IPQ5332_HW10,
 	ATH12K_HW_QCC2072_HW10,
 	ATH12K_HW_IPQ5424_HW10,
+	ATH12K_HW_QCN6432_HW10,
 };
 
 #define ATH12K_IRQ_NUM_MAX 57
 #define ATH12K_EXT_IRQ_NUM_MAX	16
 #define ATH12K_MAX_TCL_RING_NUM	3
+#define ATH12K_MAX_MSI_VECTOR	32
+#define ATH12K_EXT_IRQ_NAME_LEN	32
 
 struct ath12k_ext_irq_grp {
 	struct ath12k_base *ab;
@@ -173,6 +176,7 @@ struct ath12k_ext_irq_grp {
 	bool napi_enabled;
 	struct napi_struct napi;
 	struct net_device *napi_ndev;
+	char irq_name[ATH12K_EXT_IRQ_NAME_LEN];
 };
 
 enum ath12k_smbios_cc_type {
@@ -186,6 +190,16 @@ enum ath12k_smbios_cc_type {
 	ATH12K_SMBIOS_CC_WW = 2,
 };
 
+enum ath12k_msi_supported_hw {
+	ATH12K_MSI_CONFIG_PCI,
+
+	/*
+	 * IPCI (Integrated PCI) configuration is used by AHB devices that
+	 * support platform MSI.
+	 */
+	ATH12K_MSI_CONFIG_IPCI,
+};
+
 struct ath12k_smbios_bdf {
 	struct dmi_header hdr;
 	u8 features_disabled;
@@ -273,6 +287,7 @@ enum ath12k_dev_flags {
 	ATH12K_FLAG_QMI_FW_READY_COMPLETE,
 	ATH12K_FLAG_FTM_SEGMENTED,
 	ATH12K_FLAG_FIXED_MEM_REGION,
+	ATH12K_FLAG_MULTI_MSI_VECTORS,
 };
 
 struct ath12k_tx_conf {
@@ -1152,6 +1167,15 @@ struct ath12k_base {
 	struct rhashtable *rhead_sta_addr;
 	struct rhashtable_params rhash_sta_addr_param;
 
+	struct {
+		const struct ath12k_msi_config *config;
+		u32 ep_base_data;
+		u32 addr_lo;
+		u32 addr_hi;
+		u32 ce_msi_data[CE_COUNT_MAX];
+		u32 dp_msi_data[ATH12K_EXT_IRQ_GRP_NUM_MAX];
+	} msi;
+
 	/* must be last */
 	u8 drv_priv[] __aligned(sizeof(void *));
 };
diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c
index 83f9edfabf696..0f08003889357 100644
--- a/drivers/net/wireless/ath/ath12k/dp.c
+++ b/drivers/net/wireless/ath/ath12k/dp.c
@@ -225,8 +225,13 @@ static void ath12k_dp_srng_msi_setup(struct ath12k_base *ab,
 
 	ring_params->msi_addr = addr_lo;
 	ring_params->msi_addr |= (dma_addr_t)(((u64)addr_hi) << 32);
-	ring_params->msi_data = (msi_group_number % msi_data_count)
-		+ msi_data_start;
+
+	if (ab->hw_params->hybrid_bus_type)
+		ring_params->msi_data = ab->msi.dp_msi_data[msi_group_number];
+	else
+		ring_params->msi_data = (msi_group_number % msi_data_count)
+			+ msi_data_start;
+
 	ring_params->flags |= HAL_SRNG_FLAGS_MSI_INTR;
 }
 
@@ -1307,8 +1312,8 @@ static int ath12k_dp_cmem_init(struct ath12k_base *ab,
 			       enum ath12k_dp_desc_type type)
 {
 	const struct ath12k_dp_profile_params *dp_params = &ab->profile_param->dp_params;
-	u32 cmem_base;
-	int i, start, end;
+	u32 cmem_base, val, addr;
+	int i, start, end, ret;
 
 	cmem_base = ab->qmi.dev_mem[ATH12K_QMI_DEVMEM_CMEM_INDEX].start;
 
@@ -1328,24 +1333,38 @@ static int ath12k_dp_cmem_init(struct ath12k_base *ab,
 	}
 
 	/* Write to PPT in CMEM */
-	for (i = start; i < end; i++)
-		ath12k_hif_write32(ab, cmem_base + ATH12K_PPT_ADDR_OFFSET(i),
-				   dp->spt_info[i].paddr >> ATH12K_SPT_4K_ALIGN_OFFSET);
+	for (i = start; i < end; i++) {
+		addr = cmem_base + ATH12K_PPT_ADDR_OFFSET(i);
+		val = dp->spt_info[i].paddr >> ATH12K_SPT_4K_ALIGN_OFFSET;
+
+		if (ab->hw_params->hybrid_bus_type) {
+			ret = ath12k_hif_cmem_write32(ab, addr, val);
+			if (ret)
+				return ret;
+		} else {
+			ath12k_hif_write32(ab, addr, val);
+		}
+	}
 
 	return 0;
 }
 
-void ath12k_dp_partner_cc_init(struct ath12k_base *ab)
+int ath12k_dp_partner_cc_init(struct ath12k_base *ab)
 {
 	struct ath12k_hw_group *ag = ab->ag;
-	int i;
+	int i, ret;
 
 	for (i = 0; i < ag->num_devices; i++) {
 		if (ag->ab[i] == ab)
 			continue;
 
-		ath12k_dp_cmem_init(ab, ath12k_ab_to_dp(ag->ab[i]), ATH12K_DP_RX_DESC);
+		ret = ath12k_dp_cmem_init(ab, ath12k_ab_to_dp(ag->ab[i]),
+					  ATH12K_DP_RX_DESC);
+		if (ret)
+			return ret;
 	}
+
+	return 0;
 }
 
 static u32 ath12k_dp_get_num_spt_pages(struct ath12k_base *ab)
diff --git a/drivers/net/wireless/ath/ath12k/dp.h b/drivers/net/wireless/ath/ath12k/dp.h
index 108e27dd5797a..5e9cdf72670f1 100644
--- a/drivers/net/wireless/ath/ath12k/dp.h
+++ b/drivers/net/wireless/ath/ath12k/dp.h
@@ -737,7 +737,7 @@ ath12k_dp_rxdma_buf_ring_size(const struct ath12k_dp_profile_params *p)
 }
 
 void ath12k_dp_vdev_tx_attach(struct ath12k *ar, struct ath12k_link_vif *arvif);
-void ath12k_dp_partner_cc_init(struct ath12k_base *ab);
+int ath12k_dp_partner_cc_init(struct ath12k_base *ab);
 int ath12k_dp_pdev_alloc(struct ath12k_base *ab);
 void ath12k_dp_pdev_pre_alloc(struct ath12k *ar);
 void ath12k_dp_pdev_free(struct ath12k_base *ab);
diff --git a/drivers/net/wireless/ath/ath12k/hif.h b/drivers/net/wireless/ath/ath12k/hif.h
index aecdb0c5f2858..faeabd2c3d2a6 100644
--- a/drivers/net/wireless/ath/ath12k/hif.h
+++ b/drivers/net/wireless/ath/ath12k/hif.h
@@ -12,6 +12,8 @@
 struct ath12k_hif_ops {
 	u32 (*read32)(struct ath12k_base *ab, u32 address);
 	void (*write32)(struct ath12k_base *ab, u32 address, u32 data);
+	int (*cmem_read32)(struct ath12k_base *ab, u32 address, u32 *value);
+	int (*cmem_write32)(struct ath12k_base *ab, u32 address, u32 data);
 	void (*irq_enable)(struct ath12k_base *ab);
 	void (*irq_disable)(struct ath12k_base *ab);
 	int (*start)(struct ath12k_base *ab);
@@ -31,6 +33,7 @@ struct ath12k_hif_ops {
 	void (*ce_irq_disable)(struct ath12k_base *ab);
 	void (*get_ce_msi_idx)(struct ath12k_base *ab, u32 ce_id, u32 *msi_idx);
 	void (*coredump_download)(struct ath12k_base *ab);
+	void (*config_static_window)(struct ath12k_base *ab);
 };
 
 static inline int ath12k_hif_map_service_to_pipe(struct ath12k_base *ab, u16 service_id,
@@ -126,6 +129,24 @@ static inline u32 ath12k_hif_read32(struct ath12k_base *ab, u32 address)
 	return ab->hif.ops->read32(ab, address);
 }
 
+static inline int ath12k_hif_cmem_read32(struct ath12k_base *ab, u32 address,
+					 u32 *value)
+{
+	if (!ab->hif.ops->cmem_read32)
+		return -EOPNOTSUPP;
+
+	return ab->hif.ops->cmem_read32(ab, address, value);
+}
+
+static inline int ath12k_hif_cmem_write32(struct ath12k_base *ab, u32 address,
+					  u32 data)
+{
+	if (!ab->hif.ops->cmem_write32)
+		return -EOPNOTSUPP;
+
+	return ab->hif.ops->cmem_write32(ab, address, data);
+}
+
 static inline void ath12k_hif_write32(struct ath12k_base *ab, u32 address,
 				      u32 data)
 {
@@ -153,4 +174,13 @@ static inline void ath12k_hif_coredump_download(struct ath12k_base *ab)
 	if (ab->hif.ops->coredump_download)
 		ab->hif.ops->coredump_download(ab);
 }
+
+static inline void ath12k_hif_config_static_window(struct ath12k_base *ab)
+{
+	if (!ab->hif.ops->config_static_window)
+		return;
+
+	ab->hif.ops->config_static_window(ab);
+}
+
 #endif /* ATH12K_HIF_H */
diff --git a/drivers/net/wireless/ath/ath12k/hw.h b/drivers/net/wireless/ath/ath12k/hw.h
index 52558dd126a04..fb807d5a6ae4e 100644
--- a/drivers/net/wireless/ath/ath12k/hw.h
+++ b/drivers/net/wireless/ath/ath12k/hw.h
@@ -127,7 +127,7 @@ enum ath12k_bus {
 	ATH12K_BUS_AHB,
 };
 
-#define ATH12K_EXT_IRQ_GRP_NUM_MAX 11
+#define ATH12K_EXT_IRQ_GRP_NUM_MAX 12
 
 struct hal_rx_desc;
 struct hal_tcl_data_cmd;
@@ -240,6 +240,12 @@ struct ath12k_hw_params {
 
 	bool host_alloc_ml_id;
 	bool advertise_iface_mac_pool;
+	/*
+	 * True for devices with PCIe hardware registered as AHB platform devices.
+	 * Such devices use AHB APIs for probe/boot but PCIe APIs for operation.
+	 * Example: QCN6432 (PCIe device attached to Q6, registered as AHB).
+	 */
+	bool hybrid_bus_type;
 };
 
 struct ath12k_hw_ops {
diff --git a/drivers/net/wireless/ath/ath12k/mhi.c b/drivers/net/wireless/ath/ath12k/mhi.c
index ee87f00bc5de9..56e697fbdad52 100644
--- a/drivers/net/wireless/ath/ath12k/mhi.c
+++ b/drivers/net/wireless/ath/ath12k/mhi.c
@@ -86,7 +86,7 @@ static int ath12k_mhi_get_msi(struct ath12k_pci *ab_pci)
 
 	msi_data = base_vector;
 	for (i = 0; i < num_vectors; i++) {
-		if (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+		if (test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags))
 			irq[i] = ath12k_pci_get_msi_irq(ab->dev,
 							msi_data++);
 		else
@@ -248,7 +248,7 @@ int ath12k_mhi_register(struct ath12k_pci *ab_pci)
 		goto free_controller;
 	}
 
-	if (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+	if (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags))
 		mhi_ctrl->irq_flags = IRQF_SHARED | IRQF_NOBALANCING;
 
 	mhi_ctrl->iova_start = 0;
diff --git a/drivers/net/wireless/ath/ath12k/pci.c b/drivers/net/wireless/ath/ath12k/pci.c
index 12bbb75570f1f..4bb14a95aec98 100644
--- a/drivers/net/wireless/ath/ath12k/pci.c
+++ b/drivers/net/wireless/ath/ath12k/pci.c
@@ -22,14 +22,6 @@
 #define ATH12K_PCI_BAR_NUM		0
 #define ATH12K_PCI_DMA_MASK		36
 
-#define ATH12K_PCI_IRQ_CE0_OFFSET		3
-
-#define WINDOW_ENABLE_BIT		0x40000000
-#define WINDOW_VALUE_MASK		GENMASK(24, 19)
-#define WINDOW_START			0x80000
-#define WINDOW_RANGE_MASK		GENMASK(18, 0)
-#define WINDOW_STATIC_MASK		GENMASK(31, 6)
-
 /* BAR0 + 4k is always accessible, and no
  * need to force wakeup.
  * 4K - 32 = 0xFE0
@@ -48,6 +40,29 @@ static const struct ath12k_msi_config msi_config_one_msi = {
 	},
 };
 
+/* TODO: revisit IRQ mapping for new SRNGs */
+const struct ath12k_msi_config ath12k_msi_config[] = {
+	{
+		.total_vectors = 16,
+		.total_users = 3,
+		.users = (const struct ath12k_msi_user[]) {
+			{ .name = "MHI", .num_vectors = 3, .base_vector = 0 },
+			{ .name = "CE", .num_vectors = 5, .base_vector = 3 },
+			{ .name = "DP", .num_vectors = 8, .base_vector = 8 },
+		},
+	},
+	{
+		.total_vectors = 32,
+		.total_users = 3,
+		.users = (const struct ath12k_msi_user[]) {
+			{ .name = "QDSS", .num_vectors = 1, .base_vector = 0 },
+			{ .name = "CE", .num_vectors = 5, .base_vector = 1 },
+			{ .name = "DP", .num_vectors = 15, .base_vector = 6 },
+		},
+	},
+};
+EXPORT_SYMBOL(ath12k_msi_config);
+
 static const char *irq_name[ATH12K_IRQ_NUM_MAX] = {
 	"bhi",
 	"mhi-er0",
@@ -313,7 +328,7 @@ static void ath12k_pci_sw_reset(struct ath12k_base *ab, bool power_on)
 	ath12k_mhi_set_mhictrl_reset(ab);
 }
 
-static void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce)
+void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce)
 {
 	int i, irq_idx;
 
@@ -321,23 +336,27 @@ static void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce)
 		if (ath12k_ce_get_attr_flags(ab, i) & CE_ATTR_DIS_INTR)
 			continue;
 
-		irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + i;
+		irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;
 		free_irq(ab->irq_num[irq_idx], &ab->ce.ce_pipe[i]);
 	}
 }
 
-static void ath12k_pci_free_ext_irq(struct ath12k_base *ab, int num_ext_irq_grp)
+void ath12k_pci_free_ext_irq(struct ath12k_base *ab, int num_ext_irq_grp)
 {
 	int i, j;
 
 	for (i = 0; i < num_ext_irq_grp; i++) {
 		struct ath12k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i];
 
+		if (!irq_grp->napi_ndev)
+			continue;
+
 		for (j = 0; j < irq_grp->num_irq; j++)
 			free_irq(ab->irq_num[irq_grp->irqs[j]], irq_grp);
 
 		netif_napi_del(&irq_grp->napi);
 		free_netdev(irq_grp->napi_ndev);
+		irq_grp->napi_ndev = NULL;
 	}
 }
 
@@ -349,31 +368,29 @@ static void ath12k_pci_free_irq(struct ath12k_base *ab)
 
 static void ath12k_pci_ce_irq_enable(struct ath12k_base *ab, u16 ce_id)
 {
-	struct ath12k_pci *ab_pci = ath12k_pci_priv(ab);
 	u32 irq_idx;
 
 	/* In case of one MSI vector, we handle irq enable/disable in a
 	 * uniform way since we only have one irq
 	 */
-	if (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+	if (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags))
 		return;
 
-	irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_id;
+	irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_id;
 	enable_irq(ab->irq_num[irq_idx]);
 }
 
 static void ath12k_pci_ce_irq_disable(struct ath12k_base *ab, u16 ce_id)
 {
-	struct ath12k_pci *ab_pci = ath12k_pci_priv(ab);
 	u32 irq_idx;
 
 	/* In case of one MSI vector, we handle irq enable/disable in a
 	 * uniform way since we only have one irq
 	 */
-	if (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+	if (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags))
 		return;
 
-	irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_id;
+	irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_id;
 	disable_irq_nosync(ab->irq_num[irq_idx]);
 }
 
@@ -390,7 +407,7 @@ static void ath12k_pci_ce_irqs_disable(struct ath12k_base *ab)
 	}
 }
 
-static void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab)
+void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab)
 {
 	int i;
 	int irq_idx;
@@ -399,15 +416,15 @@ static void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab)
 		if (ath12k_ce_get_attr_flags(ab, i) & CE_ATTR_DIS_INTR)
 			continue;
 
-		irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + i;
+		irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;
 		synchronize_irq(ab->irq_num[irq_idx]);
 	}
 }
 
-static void ath12k_pci_ce_workqueue(struct work_struct *work)
+void ath12k_pci_ce_workqueue(struct work_struct *work)
 {
 	struct ath12k_ce_pipe *ce_pipe = from_work(ce_pipe, work, intr_wq);
-	int irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_pipe->pipe_num;
+	int irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_pipe->pipe_num;
 
 	ath12k_ce_per_engine_service(ce_pipe->ab, ce_pipe->pipe_num);
 
@@ -418,7 +435,7 @@ static irqreturn_t ath12k_pci_ce_interrupt_handler(int irq, void *arg)
 {
 	struct ath12k_ce_pipe *ce_pipe = arg;
 	struct ath12k_base *ab = ce_pipe->ab;
-	int irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + ce_pipe->pipe_num;
+	int irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_pipe->pipe_num;
 
 	if (!test_bit(ATH12K_FLAG_CE_IRQ_ENABLED, &ab->dev_flags))
 		return IRQ_HANDLED;
@@ -435,13 +452,13 @@ static irqreturn_t ath12k_pci_ce_interrupt_handler(int irq, void *arg)
 
 static void ath12k_pci_ext_grp_disable(struct ath12k_ext_irq_grp *irq_grp)
 {
-	struct ath12k_pci *ab_pci = ath12k_pci_priv(irq_grp->ab);
+	struct ath12k_base *ab = irq_grp->ab;
 	int i;
 
 	/* In case of one MSI vector, we handle irq enable/disable
 	 * in a uniform way since we only have one irq
 	 */
-	if (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+	if (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags))
 		return;
 
 	for (i = 0; i < irq_grp->num_irq; i++)
@@ -470,13 +487,13 @@ static void __ath12k_pci_ext_irq_disable(struct ath12k_base *ab)
 
 static void ath12k_pci_ext_grp_enable(struct ath12k_ext_irq_grp *irq_grp)
 {
-	struct ath12k_pci *ab_pci = ath12k_pci_priv(irq_grp->ab);
+	struct ath12k_base *ab = irq_grp->ab;
 	int i;
 
 	/* In case of one MSI vector, we handle irq enable/disable in a
 	 * uniform way since we only have one irq
 	 */
-	if (!test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+	if (!test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags))
 		return;
 
 	for (i = 0; i < irq_grp->num_irq; i++)
@@ -520,7 +537,7 @@ static int ath12k_pci_ext_grp_napi_poll(struct napi_struct *napi, int budget)
 	return work_done;
 }
 
-static irqreturn_t ath12k_pci_ext_interrupt_handler(int irq, void *arg)
+irqreturn_t ath12k_pci_ext_interrupt_handler(int irq, void *arg)
 {
 	struct ath12k_ext_irq_grp *irq_grp = arg;
 	struct ath12k_base *ab = irq_grp->ab;
@@ -551,7 +568,7 @@ static int ath12k_pci_ext_irq_config(struct ath12k_base *ab)
 	bool threaded_napi = false;
 	int irq;
 
-	base_idx = ATH12K_PCI_IRQ_CE0_OFFSET + CE_COUNT_MAX;
+	base_idx = ATH12K_MSI_IRQ_CE0_OFFSET + CE_COUNT_MAX;
 	ret = ath12k_pci_get_user_msi_assignment(ab, "DP",
 						 &num_vectors,
 						 &user_base_data,
@@ -634,7 +651,7 @@ static int ath12k_pci_ext_irq_config(struct ath12k_base *ab)
 static int ath12k_pci_set_irq_affinity_hint(struct ath12k_pci *ab_pci,
 					    const struct cpumask *m)
 {
-	if (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+	if (test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab_pci->ab->dev_flags))
 		return 0;
 
 	return irq_set_affinity_and_hint(ab_pci->pdev->irq, m);
@@ -666,7 +683,7 @@ static int ath12k_pci_config_irq(struct ath12k_base *ab)
 		irq = ath12k_pci_get_msi_irq(ab->dev, msi_data);
 		ce_pipe = &ab->ce.ce_pipe[i];
 
-		irq_idx = ATH12K_PCI_IRQ_CE0_OFFSET + i;
+		irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;
 
 		INIT_WORK(&ce_pipe->intr_wq, ath12k_pci_ce_workqueue);
 
@@ -718,7 +735,7 @@ static void ath12k_pci_init_qmi_ce_config(struct ath12k_base *ab)
 	}
 }
 
-static void ath12k_pci_ce_irqs_enable(struct ath12k_base *ab)
+void ath12k_pci_ce_irqs_enable(struct ath12k_base *ab)
 {
 	int i;
 
@@ -759,7 +776,7 @@ static void ath12k_pci_msi_disable(struct ath12k_pci *ab_pci)
 static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)
 {
 	struct ath12k_base *ab = ab_pci->ab;
-	const struct ath12k_msi_config *msi_config = ab_pci->msi_config;
+	const struct ath12k_msi_config *msi_config = ab->msi.config;
 	struct msi_desc *msi_desc;
 	int num_vectors;
 	int ret;
@@ -770,7 +787,7 @@ static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)
 					    PCI_IRQ_MSI);
 
 	if (num_vectors == msi_config->total_vectors) {
-		set_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags);
+		set_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags);
 		ab_pci->irq_flags = IRQF_SHARED;
 	} else {
 		num_vectors = pci_alloc_irq_vectors(ab_pci->pdev,
@@ -781,8 +798,8 @@ static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)
 			ret = -EINVAL;
 			goto reset_msi_config;
 		}
-		clear_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags);
-		ab_pci->msi_config = &msi_config_one_msi;
+		clear_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags);
+		ab->msi.config = &msi_config_one_msi;
 		ab_pci->irq_flags = IRQF_SHARED | IRQF_NOBALANCING;
 		ath12k_dbg(ab, ATH12K_DBG_PCI, "request MSI one vector\n");
 	}
@@ -798,11 +815,11 @@ static int ath12k_pci_msi_alloc(struct ath12k_pci *ab_pci)
 		goto free_msi_vector;
 	}
 
-	ab_pci->msi_ep_base_data = msi_desc->msg.data;
+	ab->msi.ep_base_data = msi_desc->msg.data;
 	if (msi_desc->pci.msi_attrib.is_64)
 		set_bit(ATH12K_PCI_FLAG_IS_MSI_64, &ab_pci->flags);
 
-	ath12k_dbg(ab, ATH12K_DBG_PCI, "msi base data is %d\n", ab_pci->msi_ep_base_data);
+	ath12k_dbg(ab, ATH12K_DBG_PCI, "msi base data is %u\n", ab->msi.ep_base_data);
 
 	return 0;
 
@@ -820,6 +837,7 @@ static void ath12k_pci_msi_free(struct ath12k_pci *ab_pci)
 
 static int ath12k_pci_config_msi_data(struct ath12k_pci *ab_pci)
 {
+	struct ath12k_base *ab = ab_pci->ab;
 	struct msi_desc *msi_desc;
 
 	msi_desc = irq_get_msi_desc(ab_pci->pdev->irq);
@@ -829,10 +847,10 @@ static int ath12k_pci_config_msi_data(struct ath12k_pci *ab_pci)
 		return -EINVAL;
 	}
 
-	ab_pci->msi_ep_base_data = msi_desc->msg.data;
+	ab->msi.ep_base_data = msi_desc->msg.data;
 
-	ath12k_dbg(ab_pci->ab, ATH12K_DBG_PCI, "pci after request_irq msi_ep_base_data %d\n",
-		   ab_pci->msi_ep_base_data);
+	ath12k_dbg(ab, ATH12K_DBG_PCI, "pci after request_irq msi_ep_base_data %u\n",
+		   ab->msi.ep_base_data);
 
 	return 0;
 }
@@ -955,7 +973,7 @@ static void ath12k_pci_aspm_restore(struct ath12k_pci *ab_pci)
 						   PCI_EXP_LNKCTL_ASPMC);
 }
 
-static void ath12k_pci_cancel_workqueue(struct ath12k_base *ab)
+void ath12k_pci_cancel_workqueue(struct ath12k_base *ab)
 {
 	int i;
 
@@ -969,7 +987,7 @@ static void ath12k_pci_cancel_workqueue(struct ath12k_base *ab)
 	}
 }
 
-static void ath12k_pci_ce_irq_disable_sync(struct ath12k_base *ab)
+void ath12k_pci_ce_irq_disable_sync(struct ath12k_base *ab)
 {
 	ath12k_pci_ce_irqs_disable(ab);
 	ath12k_pci_sync_ce_irqs(ab);
@@ -1030,15 +1048,14 @@ int ath12k_pci_get_user_msi_assignment(struct ath12k_base *ab, char *user_name,
 				       int *num_vectors, u32 *user_base_data,
 				       u32 *base_vector)
 {
-	struct ath12k_pci *ab_pci = ath12k_pci_priv(ab);
-	const struct ath12k_msi_config *msi_config = ab_pci->msi_config;
+	const struct ath12k_msi_config *msi_config = ab->msi.config;
 	int idx;
 
 	for (idx = 0; idx < msi_config->total_users; idx++) {
 		if (strcmp(user_name, msi_config->users[idx].name) == 0) {
 			*num_vectors = msi_config->users[idx].num_vectors;
 			*base_vector =  msi_config->users[idx].base_vector;
-			*user_base_data = *base_vector + ab_pci->msi_ep_base_data;
+			*user_base_data = *base_vector + ab->msi.ep_base_data;
 
 			ath12k_dbg(ab, ATH12K_DBG_PCI,
 				   "Assign MSI to user: %s, num_vectors: %d, user_base_data: %u, base_vector: %u\n",
@@ -1105,7 +1122,7 @@ void ath12k_pci_ext_irq_enable(struct ath12k_base *ab)
 	for (i = 0; i < ATH12K_EXT_IRQ_GRP_NUM_MAX; i++) {
 		struct ath12k_ext_irq_grp *irq_grp = &ab->ext_irq_grp[i];
 
-		if (!irq_grp->napi_enabled) {
+		if (irq_grp->napi_ndev && !irq_grp->napi_enabled) {
 			napi_enable(&irq_grp->napi);
 			irq_grp->napi_enabled = true;
 		}
@@ -1160,7 +1177,7 @@ int ath12k_pci_start(struct ath12k_base *ab)
 
 	set_bit(ATH12K_PCI_FLAG_INIT_DONE, &ab_pci->flags);
 
-	if (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags))
+	if (test_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags))
 		ath12k_pci_aspm_restore(ab_pci);
 	else
 		ath12k_info(ab, "leaving PCI ASPM disabled to avoid MHI M2 problems\n");
diff --git a/drivers/net/wireless/ath/ath12k/pci.h b/drivers/net/wireless/ath/ath12k/pci.h
index 0e0e2020c6ae5..55cc875f9ce08 100644
--- a/drivers/net/wireless/ath/ath12k/pci.h
+++ b/drivers/net/wireless/ath/ath12k/pci.h
@@ -76,6 +76,14 @@
 #define QRTR_PCI_DOMAIN_NR_MASK		GENMASK(7, 4)
 #define QRTR_PCI_BUS_NUMBER_MASK	GENMASK(3, 0)
 
+#define WINDOW_ENABLE_BIT		0x40000000
+#define WINDOW_REG_ADDRESS		0x310c
+#define WINDOW_REG_ADDRESS_QCC2072	0x3278
+#define WINDOW_VALUE_MASK		GENMASK(24, 19)
+#define WINDOW_START			0x80000
+#define WINDOW_RANGE_MASK		GENMASK(18, 0)
+#define WINDOW_STATIC_MASK		GENMASK(31, 6)
+
 struct ath12k_msi_user {
 	const char *name;
 	int num_vectors;
@@ -88,11 +96,12 @@ struct ath12k_msi_config {
 	const struct ath12k_msi_user *users;
 };
 
+extern const struct ath12k_msi_config ath12k_msi_config[];
+
 enum ath12k_pci_flags {
 	ATH12K_PCI_FLAG_INIT_DONE,
 	ATH12K_PCI_FLAG_IS_MSI_64,
 	ATH12K_PCI_ASPM_RESTORE,
-	ATH12K_PCI_FLAG_MULTI_MSI_VECTORS,
 };
 
 struct ath12k_pci_ops {
@@ -116,9 +125,7 @@ struct ath12k_pci {
 	struct ath12k_base *ab;
 	u16 dev_id;
 	char amss_path[100];
-	u32 msi_ep_base_data;
 	struct mhi_controller *mhi_ctrl;
-	const struct ath12k_msi_config *msi_config;
 	unsigned long mhi_state;
 	enum mhi_callback mhi_pre_cb;
 	u32 register_window;
@@ -177,4 +184,12 @@ void ath12k_pci_power_down(struct ath12k_base *ab, bool is_suspend);
 int ath12k_pci_register_driver(const enum ath12k_device_family device_id,
 			       struct ath12k_pci_driver *driver);
 void ath12k_pci_unregister_driver(const enum ath12k_device_family device_id);
+irqreturn_t ath12k_pci_ext_interrupt_handler(int irq, void *arg);
+void ath12k_pci_ce_irq_disable_sync(struct ath12k_base *ab);
+void ath12k_pci_ce_irqs_enable(struct ath12k_base *ab);
+void ath12k_pci_sync_ce_irqs(struct ath12k_base *ab);
+void ath12k_pci_cancel_workqueue(struct ath12k_base *ab);
+void ath12k_pci_ce_workqueue(struct work_struct *work);
+void ath12k_pci_free_ce_irq(struct ath12k_base *ab, int num_ce);
+void ath12k_pci_free_ext_irq(struct ath12k_base *ab, int num_ext_irq_grp);
 #endif /* ATH12K_PCI_H */
diff --git a/drivers/net/wireless/ath/ath12k/pcic.c b/drivers/net/wireless/ath/ath12k/pcic.c
new file mode 100644
index 0000000000000..b6d306fd3b99f
--- /dev/null
+++ b/drivers/net/wireless/ath/ath12k/pcic.c
@@ -0,0 +1,435 @@
+// SPDX-License-Identifier: BSD-3-Clause-Clear
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+#include <linux/module.h>
+#include <linux/msi.h>
+#include "ahb.h"
+#include "core.h"
+#include "debug.h"
+#include "hif.h"
+#include "hw.h"
+#include "pci.h"
+#include "pcic.h"
+
+void ath12k_pcic_config_static_window(struct ath12k_base *ab)
+{
+	struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);
+	u32 umac_window = u32_get_bits(ab_ahb->reg_base->umac_base, WINDOW_VALUE_MASK);
+	u32 ce_window = u32_get_bits(ab_ahb->reg_base->ce_reg_base, WINDOW_VALUE_MASK);
+	u32 window;
+
+	window = (umac_window << 12) | (ce_window << 6);
+	writel_relaxed(WINDOW_ENABLE_BIT | window, ab->mem + WINDOW_REG_ADDRESS);
+	ab_ahb->static_window_reg = readl_relaxed(ab->mem + WINDOW_REG_ADDRESS);
+}
+
+static int ath12k_pcic_select_static_window(struct ath12k_base *ab, u32 addr)
+{
+	struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);
+
+	u32 window_bits, new_window, reg_value;
+	const int max_retries = 10;
+	int i;
+
+	window_bits = u32_get_bits(addr, WINDOW_VALUE_MASK);
+
+	/* Update window bits [5:0], preserving other bits */
+	new_window = u32_replace_bits(ab_ahb->static_window_reg, window_bits, 0x3f);
+
+	if (new_window == ab_ahb->static_window_reg)
+		return 0;
+
+	reg_value = WINDOW_ENABLE_BIT | new_window;
+	writel_relaxed(reg_value, ab->mem + WINDOW_REG_ADDRESS);
+
+	/* Wait for the write to take effect */
+	for (i = 0; i < max_retries; i++) {
+		if (readl_relaxed(ab->mem + WINDOW_REG_ADDRESS) == reg_value) {
+			ab_ahb->static_window_reg = reg_value;
+			return 0;
+		}
+
+		usleep_range(1000, 2000);
+	}
+
+	ath12k_warn(ab, "failed to set static window for cmem init\n");
+	return -ETIMEDOUT;
+}
+
+int ath12k_pcic_cmem_read32(struct ath12k_base *ab, u32 addr, u32 *value)
+{
+	int ret;
+
+	if (!value)
+		return -EINVAL;
+
+	if (addr < WINDOW_START) {
+		*value = readl_relaxed(ab->mem + addr);
+		return 0;
+	}
+
+	ret = ath12k_pcic_select_static_window(ab, addr);
+	if (ret)
+		return ret;
+
+	*value = readl_relaxed(ab->mem + WINDOW_START + (addr & WINDOW_RANGE_MASK));
+	return 0;
+}
+
+int ath12k_pcic_cmem_write32(struct ath12k_base *ab, u32 addr, u32 value)
+{
+	int ret;
+
+	if (addr < WINDOW_START) {
+		writel_relaxed(value, ab->mem + addr);
+		return 0;
+	}
+
+	ret = ath12k_pcic_select_static_window(ab, addr);
+	if (ret)
+		return ret;
+
+	writel_relaxed(value, ab->mem + WINDOW_START + (addr & WINDOW_RANGE_MASK));
+	return 0;
+}
+
+static u32 ath12k_pcic_get_window_start(struct ath12k_base *ab, u32 offset)
+{
+	struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);
+	u32 window_start;
+
+	/* If offset lies within DP register range, use 3rd window */
+	if ((offset ^ ab_ahb->reg_base->umac_base) <= WINDOW_RANGE_MASK)
+		window_start = 3 * WINDOW_START;
+	/* If offset lies within CE register range, use 2nd window */
+	else if ((offset ^ ab_ahb->reg_base->ce_reg_base) <= WINDOW_RANGE_MASK)
+		window_start = 2 * WINDOW_START;
+	else
+		window_start = WINDOW_START;
+
+	return window_start;
+}
+
+void ath12k_pcic_get_msi_address(struct ath12k_base *ab, u32 *msi_addr_lo,
+				 u32 *msi_addr_hi)
+{
+	*msi_addr_lo = ab->msi.addr_lo;
+	*msi_addr_hi = ab->msi.addr_hi;
+}
+
+void ath12k_pcic_stop(struct ath12k_base *ab)
+{
+	ath12k_pci_ce_irq_disable_sync(ab);
+	timer_delete_sync(&ab->rx_replenish_retry);
+	ath12k_ce_cleanup_pipes(ab);
+}
+
+int ath12k_pcic_start(struct ath12k_base *ab)
+{
+	ath12k_pci_ce_irqs_enable(ab);
+	ath12k_ce_rx_post_buf(ab);
+	return 0;
+}
+
+u32 ath12k_pcic_read32(struct ath12k_base *ab, u32 offset)
+{
+	u32 window_start;
+
+	if (offset < WINDOW_START)
+		return readl_relaxed(ab->mem + offset);
+
+	window_start = ath12k_pcic_get_window_start(ab, offset);
+	return readl_relaxed(ab->mem + window_start + (offset & WINDOW_RANGE_MASK));
+}
+
+void ath12k_pcic_write32(struct ath12k_base *ab, u32 offset, u32 value)
+{
+	u32 window_start;
+
+	if (offset < WINDOW_START) {
+		writel_relaxed(value, ab->mem + offset);
+		return;
+	}
+
+	window_start = ath12k_pcic_get_window_start(ab, offset);
+	writel_relaxed(value, ab->mem + window_start + (offset & WINDOW_RANGE_MASK));
+}
+
+static void ath12k_pcic_ce_irq_disable(struct ath12k_base *ab, u16 ce_id)
+{
+	u32 irq_idx;
+
+	irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + ce_id;
+	disable_irq_nosync(ab->irq_num[irq_idx]);
+}
+
+static irqreturn_t ath12k_pcic_ce_interrupt_handler(int irq, void *arg)
+{
+	struct ath12k_ce_pipe *ce_pipe = arg;
+	struct ath12k_base *ab = ce_pipe->ab;
+
+	if (!test_bit(ATH12K_FLAG_CE_IRQ_ENABLED, &ab->dev_flags))
+		return IRQ_HANDLED;
+
+	/* last interrupt received for this CE */
+	ce_pipe->timestamp = jiffies;
+
+	ath12k_pcic_ce_irq_disable(ab, ce_pipe->pipe_num);
+	queue_work(system_bh_wq, &ce_pipe->intr_wq);
+
+	return IRQ_HANDLED;
+}
+
+static void ath12k_pcic_ext_grp_enable(struct ath12k_ext_irq_grp *irq_grp)
+{
+	int i;
+
+	for (i = 0; i < irq_grp->num_irq; i++)
+		enable_irq(irq_grp->ab->irq_num[irq_grp->irqs[i]]);
+}
+
+static int ath12k_pcic_ext_grp_napi_poll(struct napi_struct *napi, int budget)
+{
+	struct ath12k_ext_irq_grp *irq_grp = container_of(napi,
+						struct ath12k_ext_irq_grp,
+						napi);
+	struct ath12k_base *ab = irq_grp->ab;
+	int work_done;
+
+	work_done = ath12k_dp_service_srng(ab->dp, irq_grp, budget);
+	if (work_done < budget) {
+		if (likely(napi_complete_done(napi, work_done)))
+			ath12k_pcic_ext_grp_enable(irq_grp);
+	}
+
+	if (work_done > budget)
+		work_done = budget;
+
+	return work_done;
+}
+
+static int ath12k_pcic_ext_irq_config(struct ath12k_base *ab,
+				      struct msi_desc **msi_desc, int num_msi)
+{
+	struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);
+	struct ath12k_ext_irq_grp *irq_grp;
+	int j, i, k, vec_idx = 0, ret = 0;
+	u8 userpd_id = ab_ahb->userpd_id;
+	u32 num_irq, base_idx;
+	struct msi_desc *desc;
+
+	base_idx = ATH12K_MSI_IRQ_CE0_OFFSET + CE_COUNT_MAX;
+
+	for (i = 0; i < ATH12K_EXT_IRQ_GRP_NUM_MAX; i++) {
+		num_irq = 0;
+		irq_grp = &ab->ext_irq_grp[i];
+		irq_grp->ab = ab;
+		irq_grp->grp_id = i;
+
+		if (ab->hw_params->ring_mask->tx[i] ||
+		    ab->hw_params->ring_mask->rx[i] ||
+		    ab->hw_params->ring_mask->rx_err[i] ||
+		    ab->hw_params->ring_mask->rx_wbm_rel[i] ||
+		    ab->hw_params->ring_mask->reo_status[i] ||
+		    ab->hw_params->ring_mask->host2rxdma[i] ||
+		    ab->hw_params->ring_mask->rx_mon_dest[i]) {
+			num_irq = 1;
+		}
+
+		if (!num_irq)
+			continue;
+
+		desc = msi_desc[vec_idx];
+
+		irq_grp->napi_ndev = alloc_netdev_dummy(0);
+		if (!irq_grp->napi_ndev) {
+			ret = -ENOMEM;
+			goto fail_allocate;
+		}
+
+		netif_napi_add(irq_grp->napi_ndev, &irq_grp->napi,
+			       ath12k_pcic_ext_grp_napi_poll);
+		irq_grp->num_irq = num_irq;
+		irq_grp->irqs[0] = base_idx + i;
+
+		for (j = 0; j < irq_grp->num_irq; j++) {
+			int irq_idx = irq_grp->irqs[j];
+
+			scnprintf(irq_grp->irq_name, sizeof(irq_grp->irq_name),
+				  "pcic%u_wlan_dp_%u", userpd_id, i);
+			irq_set_status_flags(desc->irq, IRQ_DISABLE_UNLAZY);
+			ret = request_irq(desc->irq, ath12k_pci_ext_interrupt_handler,
+					  IRQF_SHARED, irq_grp->irq_name, irq_grp);
+			if (ret) {
+				ath12k_err(ab, "failed request irq %d, for group %d : %d\n",
+					   desc->irq, irq_grp->grp_id, ret);
+
+				for (k = 0; k < j; k++)
+					free_irq(ab->irq_num[irq_grp->irqs[k]], irq_grp);
+
+				netif_napi_del(&irq_grp->napi);
+				free_netdev(irq_grp->napi_ndev);
+				irq_grp->napi_ndev = NULL;
+				goto fail_allocate;
+			}
+
+			ab->irq_num[irq_idx] = desc->irq;
+			ab->msi.dp_msi_data[i] = desc->msg.data;
+			disable_irq_nosync(ab->irq_num[irq_idx]);
+		}
+
+		vec_idx = (vec_idx + 1) % num_msi;
+	}
+
+	return 0;
+
+fail_allocate:
+	ath12k_pci_free_ext_irq(ab, i);
+	return ret;
+}
+
+static int ath12k_pcic_ce_irq_config(struct ath12k_base *ab,
+				     struct msi_desc **msi_desc, int num_msi)
+{
+	struct ath12k_ahb *ab_ahb = ath12k_ab_to_ahb(ab);
+	int irq_idx, ret, i, vec_idx = 0;
+	u8 userpd_id = ab_ahb->userpd_id;
+	struct ath12k_ce_pipe *ce_pipe;
+	bool msi_info_captured = false;
+	struct msi_desc *desc;
+
+	for (i = 0; i < ab->hw_params->ce_count; i++) {
+		if (ath12k_ce_get_attr_flags(ab, i) & CE_ATTR_DIS_INTR)
+			continue;
+
+		ce_pipe = &ab->ce.ce_pipe[i];
+		desc = msi_desc[vec_idx];
+		INIT_WORK(&ce_pipe->intr_wq, ath12k_pci_ce_workqueue);
+		irq_idx = ATH12K_MSI_IRQ_CE0_OFFSET + i;
+
+		scnprintf(ce_pipe->irq_name, sizeof(ce_pipe->irq_name),
+			  "pcic%u_wlan_ce_%u", userpd_id, i);
+		ret = request_irq(desc->irq, ath12k_pcic_ce_interrupt_handler,
+				  IRQF_SHARED, ce_pipe->irq_name, ce_pipe);
+		if (ret) {
+			ath12k_warn(ab, "failed to request irq %d: %d\n", irq_idx, ret);
+			ath12k_pci_free_ce_irq(ab, i);
+			return ret;
+		}
+
+		ab->irq_num[irq_idx] = desc->irq;
+		ab->msi.ce_msi_data[i] = desc->msg.data;
+		ath12k_pcic_ce_irq_disable(ab, i);
+		vec_idx = (vec_idx + 1) % num_msi;
+
+		if (!msi_info_captured) {
+			ab->msi.addr_lo = desc->msg.address_lo;
+			ab->msi.addr_hi = desc->msg.address_hi;
+			msi_info_captured = true;
+		}
+	}
+
+	return 0;
+}
+
+static void ath12k_msi_msg_handler(struct msi_desc *desc, struct msi_msg *msg)
+{
+	desc->msg.address_lo = msg->address_lo;
+	desc->msg.address_hi = msg->address_hi;
+	desc->msg.data = msg->data;
+}
+
+static int ath12k_pcic_request_msi_irqs(struct ath12k_base *ab, int base_vector,
+					int num_vectors,
+					int (*irq_config)(struct ath12k_base *ab,
+							  struct msi_desc **msi_desc,
+							  int num_msi))
+{
+	struct msi_desc *msi_vecs[ATH12K_MAX_MSI_VECTOR];
+	struct platform_device *pdev = ab->pdev;
+	struct msi_desc *msi_desc;
+	int num_msi = 0, ret;
+
+	guard(msi_descs_lock)(&pdev->dev);
+
+	msi_for_each_desc(msi_desc, &pdev->dev, MSI_DESC_ALL) {
+		if (msi_desc->msi_index < base_vector ||
+		    msi_desc->msi_index >= (num_vectors + base_vector))
+			continue;
+
+		if (num_msi >= ATH12K_MAX_MSI_VECTOR)
+			return -EOVERFLOW;
+
+		msi_vecs[num_msi++] = msi_desc;
+	}
+
+	if (!num_msi)
+		return -EINVAL;
+
+	ret = irq_config(ab, msi_vecs, num_msi);
+	if (ret) {
+		ath12k_warn(ab, "failed to config irq %d\n", ret);
+		return ret;
+	}
+
+	return 0;
+}
+
+int ath12k_pcic_config_irq(struct ath12k_base *ab)
+{
+	int user_base_data, base_vector, num_vectors;
+	struct platform_device *pdev = ab->pdev;
+	int ret;
+
+	ab->msi.config = &ath12k_msi_config[ATH12K_MSI_CONFIG_IPCI];
+
+	ret = platform_device_msi_init_and_alloc_irqs(&pdev->dev,
+						      ab->msi.config->total_vectors,
+						      ath12k_msi_msg_handler);
+	if (ret)
+		return ret;
+
+	ret = ath12k_pci_get_user_msi_assignment(ab, "CE", &num_vectors,
+						 &user_base_data,
+						 &base_vector);
+	if (ret)
+		goto free_msi;
+
+	ret = ath12k_pcic_request_msi_irqs(ab, base_vector, num_vectors,
+					   ath12k_pcic_ce_irq_config);
+	if (ret) {
+		ath12k_err(ab, "failed to config CE irq\n");
+		goto free_msi;
+	}
+
+	ret = ath12k_pci_get_user_msi_assignment(ab, "DP", &num_vectors,
+						 &user_base_data, &base_vector);
+	if (ret)
+		goto free_ce_irq;
+
+	ret = ath12k_pcic_request_msi_irqs(ab, base_vector, num_vectors,
+					   ath12k_pcic_ext_irq_config);
+	if (ret) {
+		ath12k_err(ab, "failed to config DP irq\n");
+		goto free_ce_irq;
+	}
+
+	set_bit(ATH12K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags);
+	return 0;
+
+free_ce_irq:
+	ath12k_pci_free_ce_irq(ab, ab->hw_params->ce_count);
+free_msi:
+	platform_device_msi_free_irqs_all(&pdev->dev);
+	return ret;
+}
+
+void ath12k_pcic_free_irq(struct ath12k_base *ab)
+{
+	struct platform_device *pdev = ab->pdev;
+
+	ath12k_pci_free_ce_irq(ab, ab->hw_params->ce_count);
+	ath12k_pci_free_ext_irq(ab, ATH12K_EXT_IRQ_GRP_NUM_MAX);
+	platform_device_msi_free_irqs_all(&pdev->dev);
+}
diff --git a/drivers/net/wireless/ath/ath12k/pcic.h b/drivers/net/wireless/ath/ath12k/pcic.h
new file mode 100644
index 0000000000000..7b6c550436188
--- /dev/null
+++ b/drivers/net/wireless/ath/ath12k/pcic.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: BSD-3-Clause-Clear */
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+#ifndef _ATH12K_PCIC_H
+#define _ATH12K_PCIC_H
+
+#include <linux/types.h>
+
+struct ath12k_base;
+
+int ath12k_pcic_start(struct ath12k_base *ab);
+void ath12k_pcic_stop(struct ath12k_base *ab);
+void ath12k_pcic_write32(struct ath12k_base *ab, u32 offset, u32 value);
+u32 ath12k_pcic_read32(struct ath12k_base *ab, u32 offset);
+void ath12k_pcic_get_msi_address(struct ath12k_base *ab, u32 *msi_addr_lo,
+				 u32 *msi_addr_hi);
+int ath12k_pcic_cmem_write32(struct ath12k_base *ab, u32 addr,
+			     u32 value);
+int ath12k_pcic_cmem_read32(struct ath12k_base *ab, u32 addr, u32 *value);
+void ath12k_pcic_config_static_window(struct ath12k_base *ab);
+int ath12k_pcic_config_irq(struct ath12k_base *ab);
+void ath12k_pcic_free_irq(struct ath12k_base *ab);
+#endif /* _ATH12K_PCIC_H */
diff --git a/drivers/net/wireless/ath/ath12k/qmi.c b/drivers/net/wireless/ath/ath12k/qmi.c
index 817bd820623d2..cc488cfe2b2fb 100644
--- a/drivers/net/wireless/ath/ath12k/qmi.c
+++ b/drivers/net/wireless/ath/ath12k/qmi.c
@@ -2842,6 +2842,26 @@ static const char *ath12k_qmi_get_mem_reg_name(int mem_type)
 	}
 }
 
+static int ath12k_qmi_map_target_mem(struct ath12k_base *ab, int idx,
+				     phys_addr_t paddr, u32 size, u32 type)
+{
+	ab->qmi.target_mem[idx].paddr = paddr;
+
+	if (paddr) {
+		ab->qmi.target_mem[idx].v.ioaddr =
+			ioremap(ab->qmi.target_mem[idx].paddr, size);
+		if (!ab->qmi.target_mem[idx].v.ioaddr)
+			return -EIO;
+	} else {
+		ab->qmi.target_mem[idx].v.ioaddr = NULL;
+	}
+
+	ab->qmi.target_mem[idx].size = size;
+	ab->qmi.target_mem[idx].type = type;
+
+	return 0;
+}
+
 static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)
 {
 	struct device_node *np = ab->dev->of_node;
@@ -2851,6 +2871,48 @@ static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)
 	const char *rname;
 	int i, idx, ret;
 
+	ret = of_reserved_mem_region_to_resource_byname(np, "data-region", &res);
+	if (ret && ret != -ENODATA)
+		return ret;
+
+	if (!ret) {
+		avail_rmem_size = resource_size(&res);
+		for (i = 0, idx = 0; i < ab->qmi.mem_seg_count; i++) {
+			chunk = &ab->qmi.target_mem[i];
+
+			if (chunk->type == CALDB_MEM_REGION_TYPE) {
+				ret = ath12k_qmi_map_target_mem(ab, idx, 0, chunk->size,
+								chunk->type);
+				if (ret)
+					goto out;
+
+				idx++;
+				continue;
+			}
+
+			if (offset > avail_rmem_size ||
+			    avail_rmem_size - offset < chunk->size) {
+				ath12k_err(ab, "failed to assign mem type %u req size %u avail size %zu\n",
+					   chunk->type, chunk->size,
+					   offset > avail_rmem_size ? 0 :
+					   avail_rmem_size - offset);
+				ret = -EINVAL;
+				goto out;
+			}
+
+			ret = ath12k_qmi_map_target_mem(ab, idx, res.start + offset,
+							chunk->size, chunk->type);
+			if (ret)
+				goto out;
+
+			offset += chunk->size;
+			idx++;
+		}
+
+		ab->qmi.mem_seg_count = idx;
+		return 0;
+	}
+
 	for (i = 0, idx = 0; i < ab->qmi.mem_seg_count; i++) {
 		chunk = &ab->qmi.target_mem[i];
 		if (chunk->type == CALDB_MEM_REGION_TYPE) {
@@ -2860,10 +2922,11 @@ static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)
 			 * Once cold boot calibration is enabled add support to
 			 * assign reserved memory from DT.
 			 */
-			ab->qmi.target_mem[idx].paddr = 0;
-			ab->qmi.target_mem[idx].v.ioaddr = NULL;
-			ab->qmi.target_mem[idx].size = chunk->size;
-			ab->qmi.target_mem[idx].type = chunk->type;
+			ret = ath12k_qmi_map_target_mem(ab, idx, 0, chunk->size,
+							chunk->type);
+			if (ret)
+				goto out;
+
 			idx++;
 			continue;
 		}
@@ -2904,16 +2967,10 @@ static int ath12k_qmi_assign_target_mem_chunk(struct ath12k_base *ab)
 			goto out;
 		}
 
-		ab->qmi.target_mem[idx].paddr = res.start;
-		ab->qmi.target_mem[idx].v.ioaddr = ioremap(ab->qmi.target_mem[idx].paddr,
-							   chunk->size);
-		if (!ab->qmi.target_mem[idx].v.ioaddr) {
-			ret = -EIO;
+		ret = ath12k_qmi_map_target_mem(ab, idx, res.start, chunk->size,
+						chunk->type);
+		if (ret)
 			goto out;
-		}
-
-		ab->qmi.target_mem[idx].size = chunk->size;
-		ab->qmi.target_mem[idx].type = chunk->type;
 		idx++;
 	}
 	ab->qmi.mem_seg_count = idx;
diff --git a/drivers/net/wireless/ath/ath12k/qmi.h b/drivers/net/wireless/ath/ath12k/qmi.h
index 1b1c88906f1e9..60d5811b1c870 100644
--- a/drivers/net/wireless/ath/ath12k/qmi.h
+++ b/drivers/net/wireless/ath/ath12k/qmi.h
@@ -20,6 +20,7 @@
 
 #define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_QCN9274	0x07
 #define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ5332	0x2
+#define ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_QCN6432	0x60
 #define ATH12K_QMI_WLANFW_MAX_TIMESTAMP_LEN_V01	32
 #define ATH12K_QMI_RESP_LEN_MAX			8192
 #define ATH12K_QMI_WLANFW_MAX_NUM_MEM_SEG_V01	52
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/ahb.c b/drivers/net/wireless/ath/ath12k/wifi7/ahb.c
index 70372db6abae8..ae5380eb6f8f0 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/ahb.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/ahb.c
@@ -14,6 +14,13 @@
 #include "hw.h"
 #include "dp.h"
 #include "core.h"
+#include "hal.h"
+
+static const struct ath12k_ahb_userpd_map ath12k_wifi7_ahb_userpd_map[] = {
+	{ .io_start = 0x0c000000, .upd_id = ATH12K_AHB_USERPD_ID_0 },
+	{ .io_start = 0x21e00000, .upd_id = ATH12K_AHB_USERPD_ID_1 },
+	{ .io_start = 0x19e00000, .upd_id = ATH12K_AHB_USERPD_ID_2 },
+};
 
 static const struct ath12k_ahb_desc ath12k_wifi7_ahb_desc[] = {
 	[ATH12K_HW_IPQ5332_HW10] = {
@@ -28,6 +35,12 @@ static const struct ath12k_ahb_desc ath12k_wifi7_ahb_desc[] = {
 		.ops = &ath12k_ahb_hif_ops,
 		.supports_multipd = false,
 	},
+	[ATH12K_HW_QCN6432_HW10] = {
+		.hw_rev = ATH12K_HW_QCN6432_HW10,
+		.auth_enabled = true,
+		.ops = &ath12k_ahb_hif_ops_qcn6432,
+		.supports_multipd = true,
+	},
 };
 
 static const struct of_device_id ath12k_wifi7_ahb_of_match[] = {
@@ -37,11 +50,34 @@ static const struct of_device_id ath12k_wifi7_ahb_of_match[] = {
 	{ .compatible = "qcom,ipq5424-wifi",
 	  .data = (void *)&ath12k_wifi7_ahb_desc[ATH12K_HW_IPQ5424_HW10],
 	},
+	{ .compatible = "qcom,qcn6432",
+	  .data = (void *)&ath12k_wifi7_ahb_desc[ATH12K_HW_QCN6432_HW10],
+	},
 	{ }
 };
 
 MODULE_DEVICE_TABLE(of, ath12k_wifi7_ahb_of_match);
 
+static u32 ath12k_wifi7_ahb_get_userpd_id(struct ath12k_base *ab)
+{
+	const struct ath12k_ahb_userpd_map *map;
+	struct resource *res;
+	size_t i;
+
+	res = platform_get_resource(ab->pdev, IORESOURCE_MEM, 0);
+	if (!res)
+		return 0;
+
+	for (i = 0; i < ARRAY_SIZE(ath12k_wifi7_ahb_userpd_map); i++) {
+		map = &ath12k_wifi7_ahb_userpd_map[i];
+
+		if (map->io_start == res->start)
+			return map->upd_id;
+	}
+
+	return 0;
+}
+
 static int ath12k_wifi7_ahb_probe(struct platform_device *pdev)
 {
 	const struct ath12k_ahb_desc *desc;
@@ -59,7 +95,8 @@ static int ath12k_wifi7_ahb_probe(struct platform_device *pdev)
 	ab->hw_rev = desc->hw_rev;
 	ab->hif.ops = desc->ops;
 	ab_ahb->scm_auth_enabled = desc->auth_enabled;
-	ab_ahb->userpd_id = ATH12K_AHB_USERPD_ID_0;
+	ab_ahb->supports_multipd = desc->supports_multipd;
+	ab_ahb->userpd_id = ath12k_wifi7_ahb_get_userpd_id(ab);
 	if (!ab_ahb->userpd_id)
 		return -EOPNOTSUPP;
 
@@ -72,9 +109,15 @@ static int ath12k_wifi7_ahb_probe(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct ath12k_ahb_reg_base ath12k_wifi7_ahb_reg_base = {
+	.umac_base = HAL_SEQ_WCSS_UMAC_OFFSET,
+	.ce_reg_base = HAL_CE_WFSS_CE_REG_BASE,
+};
+
 static struct ath12k_ahb_driver ath12k_wifi7_ahb_driver = {
 	.name = "ath12k_wifi7_ahb",
 	.id_table = ath12k_wifi7_ahb_of_match,
+	.reg_base = &ath12k_wifi7_ahb_reg_base,
 	.ops.probe = ath12k_wifi7_ahb_probe,
 	.ops.arch_init = ath12k_wifi7_arch_init,
 	.ops.arch_deinit = ath12k_wifi7_arch_deinit,
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/hal.c b/drivers/net/wireless/ath/ath12k/wifi7/hal.c
index a0a1902fb4915..7c468159085f3 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/hal.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/hal.c
@@ -57,6 +57,13 @@ static const struct ath12k_hw_version_map ath12k_wifi7_hw_ver_map[] = {
 		.hal_params = &ath12k_hw_hal_params_ipq5332,
 		.hw_regs = &ipq5424_regs,
 	},
+	[ATH12K_HW_QCN6432_HW10] = {
+		.hal_ops = &hal_qcn9274_ops,
+		.hal_desc_sz = sizeof(struct hal_rx_desc_qcn9274_compact),
+		.tcl_to_wbm_rbm_map = ath12k_hal_tcl_to_wbm_rbm_map_qcn9274,
+		.hal_params = &ath12k_hw_hal_params_ipq5332,
+		.hw_regs = &qcn6432_regs,
+	},
 };
 
 int ath12k_wifi7_hal_init(struct ath12k_base *ab)
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
index 052b59265af85..34f6be9224792 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
@@ -572,6 +572,91 @@ const struct ath12k_hw_regs ipq5424_regs = {
 		HAL_IPQ5424_CE_WFSS_REG_BASE,
 };
 
+const struct ath12k_hw_regs qcn6432_regs = {
+	/* SW2TCL(x) R0 ring configuration address */
+	.tcl1_ring_id = 0x00000918,
+	.tcl1_ring_misc = 0x00000920,
+	.tcl1_ring_tp_addr_lsb = 0x0000092c,
+	.tcl1_ring_tp_addr_msb = 0x00000930,
+	.tcl1_ring_consumer_int_setup_ix0 = 0x00000940,
+	.tcl1_ring_consumer_int_setup_ix1 = 0x00000944,
+	.tcl1_ring_msi1_base_lsb = 0x00000958,
+	.tcl1_ring_msi1_base_msb = 0x0000095c,
+	.tcl1_ring_base_lsb = 0x00000910,
+	.tcl1_ring_base_msb = 0x00000914,
+	.tcl1_ring_msi1_data = 0x00000960,
+	.tcl2_ring_base_lsb = 0x00000988,
+	.tcl_ring_base_lsb = 0x00000b68,
+
+	/* TCL STATUS ring address */
+	.tcl_status_ring_base_lsb = 0x00000d48,
+
+	/* REO DEST ring address */
+	.reo2_ring_base = 0x00000578,
+	.reo1_misc_ctrl_addr = 0x00000b9c,
+	.reo1_sw_cookie_cfg0 = 0x0000006c,
+	.reo1_sw_cookie_cfg1 = 0x00000070,
+	.reo1_qdesc_lut_base0 = 0x00000074,
+	.reo1_qdesc_lut_base1 = 0x00000078,
+	.reo1_ring_base_lsb = 0x00000500,
+	.reo1_ring_base_msb = 0x00000504,
+	.reo1_ring_id = 0x00000508,
+	.reo1_ring_misc = 0x00000510,
+	.reo1_ring_hp_addr_lsb = 0x00000514,
+	.reo1_ring_hp_addr_msb = 0x00000518,
+	.reo1_ring_producer_int_setup = 0x00000524,
+	.reo1_ring_msi1_base_lsb = 0x00000548,
+	.reo1_ring_msi1_base_msb = 0x0000054c,
+	.reo1_ring_msi1_data = 0x00000550,
+	.reo1_aging_thres_ix0 = 0x00000b28,
+	.reo1_aging_thres_ix1 = 0x00000b2c,
+	.reo1_aging_thres_ix2 = 0x00000b30,
+	.reo1_aging_thres_ix3 = 0x00000b34,
+
+	/* REO Exception ring address */
+	.reo2_sw0_ring_base = 0x000008c0,
+
+	/* REO Reinject ring address */
+	.sw2reo_ring_base = 0x00000320,
+	.sw2reo1_ring_base = 0x00000398,
+
+	/* REO cmd ring address */
+	.reo_cmd_ring_base = 0x000002a8,
+
+	/* REO status ring address */
+	.reo_status_ring_base = 0x00000aa0,
+
+	/* WBM idle link ring address */
+	.wbm_idle_ring_base_lsb = 0x00000d3c,
+	.wbm_idle_ring_misc_addr = 0x00000d4c,
+	.wbm_r0_idle_list_cntl_addr = 0x00000240,
+	.wbm_r0_idle_list_size_addr = 0x00000244,
+	.wbm_scattered_ring_base_lsb = 0x00000250,
+	.wbm_scattered_ring_base_msb = 0x00000254,
+	.wbm_scattered_desc_head_info_ix0 = 0x00000260,
+	.wbm_scattered_desc_head_info_ix1 = 0x00000264,
+	.wbm_scattered_desc_tail_info_ix0 = 0x00000270,
+	.wbm_scattered_desc_tail_info_ix1 = 0x00000274,
+	.wbm_scattered_desc_ptr_hp_addr = 0x0000027c,
+
+	/* SW2WBM release ring address */
+	.wbm_sw_release_ring_base_lsb = 0x0000037c,
+
+	/* WBM2SW release ring address */
+	.wbm0_release_ring_base_lsb = 0x00000e08,
+	.wbm1_release_ring_base_lsb = 0x00000e80,
+
+	/* PCIe base address */
+	.pcie_qserdes_sysclk_en_sel = 0x01e0c0a8,
+	.pcie_pcs_osc_dtct_config_base = 0x01e0d45c,
+
+	/* CE base address */
+	.umac_ce0_src_reg_base = 0x01b80000,
+	.umac_ce0_dest_reg_base = 0x01b81000,
+	.umac_ce1_src_reg_base = 0x01b82000,
+	.umac_ce1_dest_reg_base = 0x01b83000,
+};
+
 static inline
 bool ath12k_hal_rx_desc_get_first_msdu_qcn9274(struct hal_rx_desc *desc)
 {
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h
index 03cf3792d5236..5c593773109d3 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h
+++ b/drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h
@@ -18,6 +18,7 @@ extern const struct ath12k_hw_regs qcn9274_v1_regs;
 extern const struct ath12k_hw_regs qcn9274_v2_regs;
 extern const struct ath12k_hw_regs ipq5332_regs;
 extern const struct ath12k_hw_regs ipq5424_regs;
+extern const struct ath12k_hw_regs qcn6432_regs;
 extern const struct ath12k_hal_tcl_to_wbm_rbm_map
 ath12k_hal_tcl_to_wbm_rbm_map_qcn9274[DP_TCL_NUM_RING_MAX];
 extern const struct ath12k_hw_hal_params ath12k_hw_hal_params_qcn9274;
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/hw.c b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
index b1c17cc197dfd..f7992f8c917f1 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/hw.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/hw.c
@@ -332,6 +332,56 @@ static const struct ath12k_hw_ring_mask ath12k_wifi7_hw_ring_mask_wcn7850 = {
 	},
 };
 
+static const struct ath12k_hw_ring_mask ath12k_wifi7_hw_ring_mask_qcn6432 = {
+	.tx  = {
+		ATH12K_TX_RING_MASK_0,
+		ATH12K_TX_RING_MASK_1,
+		ATH12K_TX_RING_MASK_2,
+		0, 0, 0, 0, 0, 0, 0, 0,
+		ATH12K_TX_RING_MASK_3
+	},
+	.rx_mon_dest = {
+		0, 0, 0, 0, 0, 0, 0, 0,
+		ATH12K_RX_MON_RING_MASK_0,
+		ATH12K_RX_MON_RING_MASK_1,
+		ATH12K_RX_MON_RING_MASK_2,
+		0
+	},
+	.rx = {
+		0, 0, 0, 0,
+		ATH12K_RX_RING_MASK_0,
+		ATH12K_RX_RING_MASK_1,
+		ATH12K_RX_RING_MASK_2,
+		ATH12K_RX_RING_MASK_3,
+		0, 0, 0, 0
+	},
+	.rx_err = {
+		0, 0, 0,
+		ATH12K_RX_ERR_RING_MASK_0,
+		0, 0, 0, 0, 0, 0, 0, 0
+	},
+	.rx_wbm_rel = {
+		0, 0, 0,
+		ATH12K_RX_WBM_REL_RING_MASK_0,
+		0, 0, 0, 0, 0, 0, 0, 0
+	},
+	.reo_status = {
+		0, 0, 0,
+		ATH12K_REO_STATUS_RING_MASK_0,
+		0, 0, 0, 0, 0, 0, 0, 0
+	},
+	.host2rxdma = {
+		0, 0,
+		ATH12K_HOST2RXDMA_RING_MASK_0,
+		0, 0, 0, 0, 0, 0, 0, 0, 0
+	},
+	.tx_mon_dest = {
+		ATH12K_TX_MON_RING_MASK_0,
+		0, 0, 0, 0, 0, 0, 0, 0, 0,
+		0, 0
+	},
+};
+
 static const struct ce_ie_addr ath12k_wifi7_ce_ie_addr_ipq5332 = {
 	.ie1_reg_addr = CE_HOST_IPQ5332_IE_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
 	.ie2_reg_addr = CE_HOST_IPQ5332_IE_2_ADDRESS - HAL_IPQ5332_CE_WFSS_REG_BASE,
@@ -448,6 +498,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
 
 		.host_alloc_ml_id = true,
 		.advertise_iface_mac_pool = false,
+		.hybrid_bus_type = false,
 	},
 	{
 		.name = "wcn7850 hw2.0",
@@ -544,6 +595,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
 
 		.host_alloc_ml_id = false,
 		.advertise_iface_mac_pool = true,
+		.hybrid_bus_type = false,
 	},
 	{
 		.name = "qcn9274 hw2.0",
@@ -636,6 +688,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
 
 		.host_alloc_ml_id = true,
 		.advertise_iface_mac_pool = false,
+		.hybrid_bus_type = false,
 	},
 	{
 		.name = "ipq5332 hw1.0",
@@ -722,6 +775,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
 
 		.host_alloc_ml_id = true,
 		.advertise_iface_mac_pool = false,
+		.hybrid_bus_type = false,
 	},
 	{
 		.name = "qcc2072 hw1.0",
@@ -819,6 +873,7 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
 
 		.host_alloc_ml_id = false,
 		.advertise_iface_mac_pool = true,
+		.hybrid_bus_type = false,
 	},
 	{
 		.name = "ipq5424 hw1.0",
@@ -908,6 +963,94 @@ static const struct ath12k_hw_params ath12k_wifi7_hw_params[] = {
 
 		.host_alloc_ml_id = true,
 		.advertise_iface_mac_pool = false,
+		.hybrid_bus_type = false,
+	},
+	{
+		.name = "qcn6432 hw1.0",
+		.hw_rev = ATH12K_HW_QCN6432_HW10,
+		.fw = {
+			.dir = "QCN6432/hw1.0",
+			.board_size = 256 * 1024,
+			.cal_offset = 128 * 1024,
+			.m3_loader = ath12k_m3_fw_loader_remoteproc,
+			.download_aux_ucode = false,
+		},
+		.max_radios = 1,
+		.single_pdev_only = false,
+		.qmi_service_ins_id = ATH12K_QMI_WLFW_SERVICE_INS_ID_V01_QCN6432,
+		.qmi_max_chunk_size = SZ_2M,
+		.internal_sleep_clock = false,
+
+		.hw_ops = &qcn9274_ops,
+		.ring_mask = &ath12k_wifi7_hw_ring_mask_qcn6432,
+
+		.host_ce_config = ath12k_wifi7_host_ce_config_ipq5332,
+		.ce_count = 12,
+		.target_ce_config = ath12k_wifi7_target_ce_config_wlan_ipq5332,
+		.target_ce_count = 12,
+		.svc_to_ce_map = ath12k_wifi7_target_service_to_ce_map_wlan_ipq5332,
+		.svc_to_ce_map_len = 18,
+
+		.rxdma1_enable = true,
+		.num_rxdma_per_pdev = 1,
+		.num_rxdma_dst_ring = 0,
+		.rx_mac_buf_ring = false,
+		.vdev_start_delay = false,
+
+		.interface_modes = BIT(NL80211_IFTYPE_STATION) |
+				   BIT(NL80211_IFTYPE_AP) |
+				   BIT(NL80211_IFTYPE_MESH_POINT) |
+				   BIT(NL80211_IFTYPE_AP_VLAN),
+		.supports_monitor = true,
+		.supports_cong_ctrl_max_msdus = true,
+
+		.idle_ps = false,
+		.download_calib = true,
+		.supports_suspend = false,
+		.tcl_ring_retry = true,
+		.reoq_lut_support = false,
+		.supports_shadow_regs = false,
+
+		.num_tcl_banks = 48,
+		.max_tx_ring = 4,
+		.mhi_config = NULL,
+		.wmi_init = &ath12k_wifi7_wmi_init_qcn9274,
+
+		.qmi_cnss_feature_bitmap = BIT(CNSS_QDSS_CFG_MISS_V01),
+
+		.rfkill_pin = 0,
+		.rfkill_cfg = 0,
+		.rfkill_on_level = 0,
+
+		.rddm_size = 0,
+
+		.def_num_link = 0,
+		.max_mlo_peer = 256,
+
+		.otp_board_id_register = 0,
+
+		.supports_sta_ps = false,
+
+		.acpi_guid = NULL,
+		.supports_dynamic_smps_6ghz = false,
+		.iova_mask = 0,
+		.supports_aspm = false,
+
+		.ce_ie_addr = NULL,
+		.ce_remap = NULL,
+		.bdf_addr_offset = 0,
+
+		.current_cc_support = false,
+		.dp_primary_link_only = true,
+		.client = {
+			.max_client_single = 256,
+			.max_client_dbs = 128,
+			.max_client_dbs_sbs = 128,
+		},
+
+		.host_alloc_ml_id = true,
+		.advertise_iface_mac_pool = false,
+		.hybrid_bus_type = true,
 	},
 };
 
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/pci.c b/drivers/net/wireless/ath/ath12k/wifi7/pci.c
index 6c96b52dec131..783c5d020f07c 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/pci.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/pci.c
@@ -28,9 +28,6 @@
 #define TCSR_SOC_HW_VERSION_MAJOR_MASK	GENMASK(11, 8)
 #define TCSR_SOC_HW_VERSION_MINOR_MASK	GENMASK(7, 4)
 
-#define WINDOW_REG_ADDRESS		0x310c
-#define WINDOW_REG_ADDRESS_QCC2072	0x3278
-
 static const struct pci_device_id ath12k_wifi7_pci_id_table[] = {
 	{ PCI_VDEVICE(QCOM, QCN9274_DEVICE_ID) },
 	{ PCI_VDEVICE(QCOM, WCN7850_DEVICE_ID) },
@@ -40,19 +37,6 @@ static const struct pci_device_id ath12k_wifi7_pci_id_table[] = {
 
 MODULE_DEVICE_TABLE(pci, ath12k_wifi7_pci_id_table);
 
-/* TODO: revisit IRQ mapping for new SRNG's */
-static const struct ath12k_msi_config ath12k_wifi7_msi_config[] = {
-	{
-		.total_vectors = 16,
-		.total_users = 3,
-		.users = (struct ath12k_msi_user[]) {
-			{ .name = "MHI", .num_vectors = 3, .base_vector = 0 },
-			{ .name = "CE", .num_vectors = 5, .base_vector = 3 },
-			{ .name = "DP", .num_vectors = 8, .base_vector = 8 },
-		},
-	},
-};
-
 static const struct ath12k_pci_ops ath12k_wifi7_pci_ops_qcn9274 = {
 	.wakeup = NULL,
 	.release = NULL,
@@ -106,7 +90,7 @@ static int ath12k_wifi7_pci_probe(struct pci_dev *pdev,
 
 	switch (pci_dev->device) {
 	case QCN9274_DEVICE_ID:
-		ab_pci->msi_config = &ath12k_wifi7_msi_config[0];
+		ab->msi.config = &ath12k_msi_config[ATH12K_MSI_CONFIG_PCI];
 		ab->static_window_map = true;
 		ab_pci->pci_ops = &ath12k_wifi7_pci_ops_qcn9274;
 		/*
@@ -133,7 +117,7 @@ static int ath12k_wifi7_pci_probe(struct pci_dev *pdev,
 		break;
 	case WCN7850_DEVICE_ID:
 		ab->id.bdf_search = ATH12K_BDF_SEARCH_BUS_AND_BOARD;
-		ab_pci->msi_config = &ath12k_wifi7_msi_config[0];
+		ab->msi.config = &ath12k_msi_config[ATH12K_MSI_CONFIG_PCI];
 		ab->static_window_map = false;
 		ab_pci->pci_ops = &ath12k_wifi7_pci_ops_wcn7850;
 		/*
@@ -157,7 +141,7 @@ static int ath12k_wifi7_pci_probe(struct pci_dev *pdev,
 		break;
 	case QCC2072_DEVICE_ID:
 		ab->id.bdf_search = ATH12K_BDF_SEARCH_BUS_AND_BOARD;
-		ab_pci->msi_config = &ath12k_wifi7_msi_config[0];
+		ab->msi.config = &ath12k_msi_config[ATH12K_MSI_CONFIG_PCI];
 		ab->static_window_map = false;
 		ab_pci->pci_ops = &ath12k_wifi7_pci_ops_wcn7850;
 		ab_pci->window_reg_addr = WINDOW_REG_ADDRESS_QCC2072;

3/2 2026/10/23 20:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 37088
							output: 45
							thoughts: 838
						

Thoughts:
**Evaluating the Patch Series: A Reachability Analysis**

Okay, so the task is to assess this Linux kernel patch series targeting the amd64 architecture. My initial thought is to dive into the patch's purpose. It seems to be adding support for the Qualcomm QCN6432 wireless device to the `ath12k` driver. Specifically, this involves adding a Device Tree binding and integrating AHB platform support via new files `pcic.c` and `pcic.h`, and modifications across various `ath12k` files, including core components like `ahb.c`, `ce.c`, and `hif.h` as well as relevant WiFi7 code.

But before I get too deep into the code, I need to understand the big picture. What *is* the QCN6432, and how does `ath12k` generally operate? Is this something I can even *reach* in a standard virtualized environment like QEMU or GCE? The instructions emphasize reachability as the primary hurdle. My expert intuition tells me that fuzzing is only effective on executable code in environments that I can readily simulate. Section 1 is very clear: unreachable code should not be fuzzed.

Now, I need to determine if this new support is, in fact, reachable. According to Section 2, there are specific scenarios where I can immediately return `WorthFuzzing=false`. The fact that QCN6432 is an AHB platform device - a Qualcomm Hexagon DSP / WCSS Q6 subsystem - raises a red flag. Then, after reading the documentation, I see that QCN6432 is a hybrid AHB device.

I'm starting to think about whether QEMU emulates the hardware required. QEMU doesn't emulate the `ath12k` PCIe or AHB device! The existing `ath12k` PCI driver might be irrelevant. My past experience tells me that without an emulated device, the driver likely won't even probe, so the new code is unreachable. Section 2 confirms this: "Structurally unreachable hardware... requiring physical ASIC/PCIe cards not emulated in standard QEMU."

So, can `ath12k` probe without *physical* hardware? My current knowledge says no. But let me confirm: is there a mock or virtual device within the `ath12k` driver that would allow the code to run in the target environment? I'll grep the source to make sure that there isn't some hidden simulation capability.



4/2 2026/10/23 20:05 tool grepper
0m Args:
{
  "Expression": "module_init|platform_driver|pci_register",
  "PathPrefixes": [
    "drivers/net/wireless/ath/ath12k"
  ]
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath12k/ahb.c=1512=int ath12k_ahb_register_driver(const enum ath12k_device_family device_id,\n--\ndrivers/net/wireless/ath/ath12k/ahb.c-1514-{\ndrivers/net/wireless/ath/ath12k/ahb.c:1515:\tstruct platform_driver *ahb_driver;\ndrivers/net/wireless/ath/ath12k/ahb.c-1516-\n--\ndrivers/net/wireless/ath/ath12k/ahb.c-1536-\ndrivers/net/wireless/ath/ath12k/ahb.c:1537:\treturn platform_driver_register(ahb_driver);\ndrivers/net/wireless/ath/ath12k/ahb.c-1538-}\n--\ndrivers/net/wireless/ath/ath12k/ahb.c=1541=void ath12k_ahb_unregister_driver(const enum ath12k_device_family device_id)\ndrivers/net/wireless/ath/ath12k/ahb.c-1542-{\ndrivers/net/wireless/ath/ath12k/ahb.c:1543:\tstruct platform_driver *ahb_driver;\ndrivers/net/wireless/ath/ath12k/ahb.c-1544-\n--\ndrivers/net/wireless/ath/ath12k/ahb.c-1551-\tahb_driver = \u0026ath12k_ahb_family_drivers[device_id]-\u003edriver;\ndrivers/net/wireless/ath/ath12k/ahb.c:1552:\tplatform_driver_unregister(ahb_driver);\ndrivers/net/wireless/ath/ath12k/ahb.c-1553-\tath12k_ahb_family_drivers[device_id] = NULL;\n--\ndrivers/net/wireless/ath/ath12k/ahb.h=116=struct ath12k_ahb_driver {\n--\ndrivers/net/wireless/ath/ath12k/ahb.h-120-\tconst struct ath12k_ahb_reg_base *reg_base;\ndrivers/net/wireless/ath/ath12k/ahb.h:121:\tstruct platform_driver driver;\ndrivers/net/wireless/ath/ath12k/ahb.h-122-};\n--\ndrivers/net/wireless/ath/ath12k/pci.c=1830=static const struct dev_pm_ops __maybe_unused ath12k_pci_pm_ops = {\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1836-\ndrivers/net/wireless/ath/ath12k/pci.c:1837:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.c-1838-\t\t\t       struct ath12k_pci_driver *driver)\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1863-\ndrivers/net/wireless/ath/ath12k/pci.c:1864:\treturn pci_register_driver(pci_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1865-}\ndrivers/net/wireless/ath/ath12k/pci.c:1866:EXPORT_SYMBOL(ath12k_pci_register_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1867-\n--\ndrivers/net/wireless/ath/ath12k/pci.h=183=void ath12k_pci_power_down(struct ath12k_base *ab, bool is_suspend);\ndrivers/net/wireless/ath/ath12k/pci.h:184:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.h-185-\t\t\t       struct ath12k_pci_driver *driver);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/core.c=55=static void ath12k_wifi7_exit(void)\n--\ndrivers/net/wireless/ath/ath12k/wifi7/core.c-63-\ndrivers/net/wireless/ath/ath12k/wifi7/core.c:64:module_init(ath12k_wifi7_init);\ndrivers/net/wireless/ath/ath12k/wifi7/core.c-65-module_exit(ath12k_wifi7_exit);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c=181=int ath12k_wifi7_pci_init(void)\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-184-\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:185:\tret = ath12k_pci_register_driver(ATH12K_DEVICE_FAMILY_WIFI7,\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-186-\t\t\t\t\t \u0026ath12k_wifi7_pci_driver);\n"
}

5/2 2026/10/23 20:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 39917
							output: 45
							thoughts: 39
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach summarizing the thought process, as if it were my own:

**Analyzing the Initialization of the ath12k WiFi 7 Driver**

Right, so I need to understand the initialization process for the ath12k WiFi 7 driver. I'm going to focus on `ath12k_wifi7_init` within `drivers/net/wireless/ath/ath12k/wifi7/core.c`. This is where the core setup happens, so it’s the logical starting point. I want to see what this function actually *does*. What structures are allocated? What hardware registers are being configured? Are there any crucial steps in bringing up the WiFi 7 functionality that are unique to this driver versus earlier iterations? I need to understand the flow – is it synchronous or asynchronous? Are there any specific dependencies or timing considerations I need to be aware of? This will help me gain a solid understanding of how the WiFi 7 features are brought online within the larger ath12k framework. I'm expecting some interesting changes compared to the legacy code. Let's see...



6/2 2026/10/23 20:05 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath12k/wifi7/core.c",
  "FirstLine": 1,
  "LineCount": 70
}

Results:
{
  "Contents": "   1:\t// SPDX-License-Identifier: BSD-3-Clause-Clear\n   2:\t/*\n   3:\t * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.\n   4:\t * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n   5:\t */\n   6:\t\n   7:\t#include \u003clinux/module.h\u003e\n   8:\t#include \"../ahb.h\"\n   9:\t#include \"../pci.h\"\n  10:\t#include \"pci.h\"\n  11:\t#include \"ahb.h\"\n  12:\t#include \"core.h\"\n  13:\t#include \"dp.h\"\n  14:\t#include \"../debug.h\"\n  15:\t\n  16:\tstatic int ahb_err, pci_err;\n  17:\t\n  18:\tint ath12k_wifi7_arch_init(struct ath12k_base *ab)\n  19:\t{\n  20:\t\tstruct ath12k_dp *dp;\n  21:\t\n  22:\t\tdp = ath12k_wifi7_dp_device_alloc(ab);\n  23:\t\tif (!dp) {\n  24:\t\t\tath12k_err(ab, \"dp alloc failed\");\n  25:\t\t\treturn -EINVAL;\n  26:\t\t}\n  27:\t\n  28:\t\tab-\u003edp = dp;\n  29:\t\n  30:\t\treturn 0;\n  31:\t}\n  32:\t\n  33:\tvoid ath12k_wifi7_arch_deinit(struct ath12k_base *ab)\n  34:\t{\n  35:\t\tath12k_wifi7_dp_device_free(ab-\u003edp);\n  36:\t\tab-\u003edp = NULL;\n  37:\t}\n  38:\t\n  39:\tstatic int ath12k_wifi7_init(void)\n  40:\t{\n  41:\t\tahb_err = ath12k_wifi7_ahb_init();\n  42:\t\tif (ahb_err)\n  43:\t\t\tpr_warn(\"Failed to initialize ath12k Wi-Fi 7 AHB device: %d\\n\",\n  44:\t\t\t\tahb_err);\n  45:\t\n  46:\t\tpci_err = ath12k_wifi7_pci_init();\n  47:\t\tif (pci_err)\n  48:\t\t\tpr_warn(\"Failed to initialize ath12k Wi-Fi 7 PCI device: %d\\n\",\n  49:\t\t\t\tpci_err);\n  50:\t\n  51:\t\t/* If both failed, return one of the failures (arbitrary) */\n  52:\t\treturn ahb_err \u0026\u0026 pci_err ? ahb_err : 0;\n  53:\t}\n  54:\t\n  55:\tstatic void ath12k_wifi7_exit(void)\n  56:\t{\n  57:\t\tif (!pci_err)\n  58:\t\t\tath12k_wifi7_pci_exit();\n  59:\t\n  60:\t\tif (!ahb_err)\n  61:\t\t\tath12k_wifi7_ahb_exit();\n  62:\t}\n  63:\t\n  64:\tmodule_init(ath12k_wifi7_init);\n  65:\tmodule_exit(ath12k_wifi7_exit);\n  66:\t\n  67:\tMODULE_DESCRIPTION(\"Driver support for Qualcomm Technologies 802.11be WLAN devices\");\n  68:\tMODULE_LICENSE(\"Dual BSD/GPL\");\n"
}

7/2 2026/10/23 20:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 41197
							output: 45
							thoughts: 41
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach that kernel code review, from the perspective of an expert:

**Investigating ath12k_wifi7_ahb_init**

Alright, I need to get a handle on how this `ath12k_wifi7_ahb_init` function works. First, I'll go directly to the source: `drivers/net/wireless/ath/ath12k/wifi7/ahb.c`. Given the naming convention, and the location within the file structure, it's pretty clear this is a crucial initialization function for the AHB (Advanced High-performance Bus) interface within the ath12k Wi-Fi 7 driver. I'd immediately expect it to be responsible for setting up the hardware, enabling the AHB-specific resources, likely registering the necessary interrupt handlers, and perhaps configuring clocks or DMA channels related to the AHB communication pathway. Given this is the init function I'd expect to see the key bus specific and Wi-Fi 7 device specific initialization. Now I'll start digging into the code itself to see my expectations proven or find what the actual initialization includes.



8/2 2026/10/23 20:05 tool grepper
0m Args:
{
  "Expression": "ath12k_wifi7_ahb_init",
  "PathPrefixes": [
    "drivers/net/wireless/ath/ath12k"
  ]
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath12k/wifi7/ahb.c=117=static struct ath12k_ahb_driver ath12k_wifi7_ahb_driver = {\n--\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-125-\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c:126:int ath12k_wifi7_ahb_init(void)\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-127-{\n--\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.h-9-#ifdef CONFIG_ATH12K_AHB\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.h:10:int ath12k_wifi7_ahb_init(void);\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.h-11-void ath12k_wifi7_ahb_exit(void);\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.h-12-#else\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.h:13:static inline int ath12k_wifi7_ahb_init(void)\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.h-14-{\n--\ndrivers/net/wireless/ath/ath12k/wifi7/core.c=39=static int ath12k_wifi7_init(void)\ndrivers/net/wireless/ath/ath12k/wifi7/core.c-40-{\ndrivers/net/wireless/ath/ath12k/wifi7/core.c:41:\tahb_err = ath12k_wifi7_ahb_init();\ndrivers/net/wireless/ath/ath12k/wifi7/core.c-42-\tif (ahb_err)\n"
}

9/2 2026/10/23 20:05 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 42045
							output: 37
							thoughts: 2249
						

Thoughts:
**Analysis of Reachability for ath12k_wifi7_ahb_init Patch**

Alright, let's break this down. We're looking at `ath12k_wifi7_ahb_init`, and the initial question is whether we can even *reach* this code in a standard fuzzing environment. The function registers `ath12k_wifi7_ahb_driver` as a platform driver, but does this matter if the underlying hardware isn't present or emulated?

Immediately, I'm thinking about platform devices. Can a `qcom,qcn6432` device, or *any* platform device, exist without Device Tree (DT), ACPI, or platform registration? In x86_64, which is the target architecture, DT is typically absent, and even if it *were* present in a QEMU setup, there's no way a `qcom,qcn6432` device is going to be there. QEMU doesn't emulate the Qualcomm Hexagon DSP / WCSS Q6 subsystem device that this hardware represents, even on ARM64. This is a crucial point, and it's backed up by the documentation: the "REACHABILITY IS THE PRIMARY GATE".

Section 2 of the guidance is key: it states that code related to "Structurally unreachable hardware" – like vendor-specific PCIe cards, SmartNICs, or GPU drivers – *should not* be fuzzed if their physical ASICs/PCIe cards aren't emulated. That sounds like a perfect fit for this Qualcomm device.

So, are there any PCIe devices that would allow a backdoor route to a QCN6432 device, perhaps? Does standard QEMU even have QCN9274 or WCN7850 or QCN6432 emulated? The documentation specifies QCN6432 as an IEEE 802.11be Wi-Fi device associated with the WCSS Q6 subsystem, represented as a platform device using MSI interrupts. It's designed for amd64, but that doesn't matter if there's no emulated device!

Could this code be reached on amd64 via PCI, somehow? We need to verify if any common or reachable code paths are affected, or if all changes are strictly within the `ath12k` driver and reliant on absent hardware. The first thing to check is if `ath12k` can even be instantiated in QEMU. QEMU does *not* emulate this Qualcomm driver. It focuses on emulating devices like e1000, virtio-net, and mac80211_hwsim, but not this. Importantly, `mac80211_hwsim` itself is a software simulator directly registering with `mac80211` and does *not* utilize `ath12k`.

`ath12k` is the Qualcomm Atheros 802.11be driver for specific Qualcomm chips. It's a non-starter if there are no emulated devices. Can platform devices be created from userspace on amd64? No. They are instantiated by the kernel via DT, board files, or ACPI, not some user-space backdoor. Even if someone tried using configfs, the required components (Qualcomm remoteproc, smp2p, hexagon DSP, memory regions) are absent.

Now, a careful examination of the patch itself is needed: is this touching any core subsystem code, or just driver code? Looking at the modified files:

1.  `Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml`
2.  `drivers/net/wireless/ath/ath12k/Makefile`
3.  `drivers/net/wireless/ath/ath12k/ahb.c`
4.  `drivers/net/wireless/ath/ath12k/ahb.h`
5.  `drivers/net/wireless/ath/ath12k/ce.c`
6.  `drivers/net/wireless/ath/ath12k/ce.h`
7.  `drivers/net/wireless/ath/ath12k/core.c`
8.  `drivers/net/wireless/ath/ath12k/core.h`
9.  `drivers/net/wireless/ath/ath12k/dp.c`
10. `drivers/net/wireless/ath/ath12k/dp.h`
11. `drivers/net/wireless/ath/ath12k/hif.h`
12. `drivers/net/


10/2 2026/10/23 20:06 tool grepper
0m Error:
no matches

Args:
{
  "Expression": "wiphy_register",
  "PathPrefixes": [
    "drivers/net/wireless/ath/ath12k"
  ]
}

Results:
{
  "error": "no matches"
}

11/2 2026/10/23 20:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 45370
							output: 53
							thoughts: 29
						

Thoughts:
Okay, here's my attempt at summarizing those thoughts from an expert's perspective, using a first-person narrative:

**Digging into the Wireless Driver Initialization**

Alright, time to get to the heart of this wireless driver initialization. I need to understand how this hardware is being integrated with the kernel's wireless subsystem. My first instinct, given my experience, is to zero in on the core registration functions. I’m thinking `ieee80211_register_hw` is almost certainly involved. That's the standard entry point for registering a new 802.11 hardware interface. That's a strong starting point and the place I expect to find the initial hardware setup.

Alternatively, if this is a newer, more specialized driver, I'm going to look for something manufacturer-specific. Maybe `ath12k_mac_register` is the relevant function for this particular Atheros (or whoever) chipset. It will likely be similar in purpose to `ieee80211_register_hw`, but customized for the nuances of their hardware and driver architecture. So I’ll quickly grep the code for either one of those two functions. That’ll tell me where to start digging in.



12/2 2026/10/23 20:06 tool grepper
0m Args:
{
  "Expression": "ieee80211_register_hw|ath12k_mac_register",
  "PathPrefixes": [
    "drivers/net/wireless/ath/ath12k"
  ]
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath12k/core.c=1195=static int ath12k_core_hw_group_start(struct ath12k_hw_group *ag)\n--\ndrivers/net/wireless/ath/ath12k/core.c-1218-\ndrivers/net/wireless/ath/ath12k/core.c:1219:\tret = ath12k_mac_register(ag);\ndrivers/net/wireless/ath/ath12k/core.c-1220-\tif (WARN_ON(ret))\n--\ndrivers/net/wireless/ath/ath12k/mac.c=14858=static int ath12k_mac_hw_register(struct ath12k_hw *ah)\n--\ndrivers/net/wireless/ath/ath12k/mac.c-15096-\ndrivers/net/wireless/ath/ath12k/mac.c:15097:\tret = ieee80211_register_hw(hw);\ndrivers/net/wireless/ath/ath12k/mac.c-15098-\tif (ret) {\n--\ndrivers/net/wireless/ath/ath12k/mac.c-15103-\tif (is_monitor_disable)\ndrivers/net/wireless/ath/ath12k/mac.c:15104:\t\t/* There's a race between calling ieee80211_register_hw()\ndrivers/net/wireless/ath/ath12k/mac.c-15105-\t\t * and here where the monitor mode is enabled for a little\n--\ndrivers/net/wireless/ath/ath12k/mac.c=15372=void ath12k_mac_mlo_teardown(struct ath12k_hw_group *ag)\n--\ndrivers/net/wireless/ath/ath12k/mac.c-15393-\ndrivers/net/wireless/ath/ath12k/mac.c:15394:int ath12k_mac_register(struct ath12k_hw_group *ag)\ndrivers/net/wireless/ath/ath12k/mac.c-15395-{\n--\ndrivers/net/wireless/ath/ath12k/mac.h=154=void ath12k_mac_unregister(struct ath12k_hw_group *ag);\ndrivers/net/wireless/ath/ath12k/mac.h:155:int ath12k_mac_register(struct ath12k_hw_group *ag);\ndrivers/net/wireless/ath/ath12k/mac.h-156-int ath12k_mac_allocate(struct ath12k_hw_group *ag);\n"
}

13/2 2026/10/23 20:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 46414
							output: 45
							thoughts: 63
						

Thoughts:
Here's my summary, as though I'm thinking through this process:

**Diving into the ath12k Driver Initialization**

Okay, so I'm tracking down how the ath12k driver registers with the hardware, specifically the MAC layer. I see that `ath12k_mac_register` is the key function here, and the call stack indicates it's triggered from within `ath12k_core_hw_group_start`. Right, that makes sense – we'd expect the MAC registration to happen once the hardware has booted and the firmware has initialized, indicating the system is ready to go.

Now, I want to confirm the call context. Let me trace back the callers of `ath12k_core_hw_group_start` and see what's leading into the hardware group start. This should illuminate the specific boot-up sequence this is involved in and confirm if my mental model is correct. I suspect this will lead me to the various initialization routines within the driver's core.



14/2 2026/10/23 20:06 tool grepper
0m Args:
{
  "Expression": "ath12k_core_hw_group_start",
  "PathPrefixes": [
    "drivers/net/wireless/ath/ath12k"
  ]
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath12k/core.c=1166=static int ath12k_core_mlo_setup(struct ath12k_hw_group *ag)\n--\ndrivers/net/wireless/ath/ath12k/core.c-1194-\ndrivers/net/wireless/ath/ath12k/core.c:1195:static int ath12k_core_hw_group_start(struct ath12k_hw_group *ag)\ndrivers/net/wireless/ath/ath12k/core.c-1196-{\n--\ndrivers/net/wireless/ath/ath12k/core.c=1270=static inline\ndrivers/net/wireless/ath/ath12k/core.c:1271:bool ath12k_core_hw_group_start_ready(struct ath12k_hw_group *ag)\ndrivers/net/wireless/ath/ath12k/core.c-1272-{\n--\ndrivers/net/wireless/ath/ath12k/core.c=1351=int ath12k_core_qmi_firmware_ready(struct ath12k_base *ab)\n--\ndrivers/net/wireless/ath/ath12k/core.c-1387-\ndrivers/net/wireless/ath/ath12k/core.c:1388:\tif (ath12k_core_hw_group_start_ready(ag)) {\ndrivers/net/wireless/ath/ath12k/core.c:1389:\t\tret = ath12k_core_hw_group_start(ag);\ndrivers/net/wireless/ath/ath12k/core.c-1390-\t\tif (ret) {\n--\ndrivers/net/wireless/ath/ath12k/core.c=1681=static void ath12k_core_restart(struct work_struct *work)\n--\ndrivers/net/wireless/ath/ath12k/core.c-1704-\ndrivers/net/wireless/ath/ath12k/core.c:1705:\t\tif (!ath12k_core_hw_group_start_ready(ag)) {\ndrivers/net/wireless/ath/ath12k/core.c-1706-\t\t\tmutex_unlock(\u0026ag-\u003emutex);\n"
}

15/2 2026/10/23 20:06 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 47334
							output: 154
							thoughts: 1127
						

Thoughts:
**Analysis of `ath12k` Driver Changes for Fuzzing Eligibility**

Okay, let's break this down. The core concern is whether these `ath12k` changes are worth fuzzing, and the answer, based on the information I've got, is a firm "no." My initial thought process, triggered by the `ath12k_core_qmi_firmware_ready` call, is focused on the hardware dependency. This function, and by extension the driver's operation, hinges on a successful hardware boot and a QMI handshake with the firmware. Probe, critical for any driver interaction, is only called when a matching PCI or AHB device is found.

The crucial question is whether a `qcom,qcn6432` platform device, specifically what these changes aim to support, could even be probed within a QEMU environment on amd64. The answer is a definitive "no".

Here's why:

1.  **amd64 and Device Tree:** Standard amd64 kernels utilize ACPI, not Device Tree, by default. Even with Device Tree support compiled in, QEMU on x86_64 doesn't pass a Device Tree with `qcom,qcn6432`.
2.  **QEMU Emulation Limitations:** Even on architectures that do use Device Tree, QEMU doesn't emulate the necessary Qualcomm hardware, like the QCN6432 or the Hexagon WCSS DSP.
3.  **Physical Hardware Requirement:** The driver fundamentally requires specific Qualcomm SoC hardware – the WCSS Q6 subsystem, SMP2P shared memory, remote processor (rproc), an MSI parent controller, and dedicated reserved memory regions. Without these physical components, the driver's `probe` function, and therefore *any* operational routines, won't be executed.
4.  **PCI Emulation Constraints:** Even for PCI-based ath12k devices (like the QCN9274 or WCN7850), QEMU fails to emulate these Qualcomm Wi-Fi 7 chips.
5.  **Virtualized Limitations:** Standard virtualized environments (GCE or QEMU) simply lack the hardware to bind to the `ath12k` driver.

Now, let's revisit the negative criteria from Section 2: the "Structurally unreachable hardware" category and the "Non-kernel and non-executable changes" category.

Looking at the proposed changes:

1.  `Documentation/devicetree/bindings/net/wireless/qcom,qcn6432.yaml` is non-executable documentation.
2.  The remaining changes reside within `drivers/net/wireless/ath/ath12k/`, and specifically aim to support Qualcomm Wi-Fi 7 hardware, focusing on adding support for the QCN6432 on Qualcomm SoC WCSS platform bus, along with refactoring existing `ath12k` PCI/AHB code.
3.  Given all the points stated before, the hardware is definitively "structurally unreachable" within standard virtualization. It necessitates specific Qualcomm SoC/ASIC hardware not emulated by QEMU. Furthermore, the `qcom,qcn6432` platform device is bound via Device Tree which, on amd64, is structurally unreachable.

Therefore, since all the modified code strictly falls within the specified "Structurally unreachable hardware" and "Non-kernel and non-executable changes" categories, `WorthFuzzing` must be `false`.

To confirm this conclusion, I've double-checked all relevant aspects:

*   No changes in `include/` or core kernel code.
*   No changes in `net/mac80211` or `net/wireless` code.
*   No changes in `drivers/base`.
*   None of the modified symbols are reachable without the hardware being probed. The sole entry point is `ath12k_wifi7_init()`, which registers the platform and PCI drivers. No matching hardware = no probes, no operations.
*   FocusSymbols: Empty list (`[]`), as `WorthFuzzing` is `false`.
*   EnableConfigs: Empty list (`[]`), as `WorthFuzzing` is `false`.

My reasoning encapsulates that the changes support the Qualcomm QCN6432 Wi-Fi 7 device, and they refactor ath12k PCI/AHB handling. The driver requires a specific Qualcomm SoC/ASIC hardware that is not emulated within standard virtualized environments. On the target architecture (amd64), DT-based platform devices like the one being supported are structurally unreachable. Finally, the documentation changes are non-executable.

The assessment aligns completely with the fuzzing guidelines. Time to set the results.



16/2 2026/10/23 20:07 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch series introduces support for the Qualcomm QCN6432 802.11be (Wi-Fi 7) device along with internal driver refactorings in the ath12k driver, plus device tree documentation. The affected driver code targets vendor-specific Qualcomm SoC/PCIe hardware (Hexagon DSP / WCSS Q6 subsystem) that is not emulated in standard QEMU or GCE virtual environments. Furthermore, on amd64, the DT-based platform device is structurally unreachable. Consequently, none of the modified executable code can be reached during fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch series introduces support for the Qualcomm QCN6432 802.11be (Wi-Fi 7) device along with internal driver refactorings in the ath12k driver, plus device tree documentation. The affected driver code targets vendor-specific Qualcomm SoC/PCIe hardware (Hexagon DSP / WCSS Q6 subsystem) that is not emulated in standard QEMU or GCE virtual environments. Furthermore, on amd64, the DT-based platform device is structurally unreachable. Consequently, none of the modified executable code can be reached during fuzzing.",
  "WorthFuzzing": false
}

17/1 2026/10/23 20:07 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)