From nobody Sun Feb 8 15:57:41 2026 Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4065627280F for ; Fri, 9 Jan 2026 04:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767933909; cv=none; b=MbG03vdaGaGCbfxCMwjJ0Q0HOB7Oe0SRd3nR8QSsN34GXtbvfoQXA/Fi+4OmMRtEYc+/NrOSMEgqcpg+G6EaSVUnq0RfN5vSNbSfaxXRKwH5+FgeOwaMaC4OZCoDI4l9a4An4BYcSCEMEDfy9tKa1vjaaaz0NdNmUTdRt18M2+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767933909; c=relaxed/simple; bh=6iQDwtevvySAUcxuOQU2gUPx2JfPZcBpHSFcpdzIBcg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=anyVCzNaPfNZOpwLUEnKdp0EAHP+AS+OWCluD5YbALQSq4wLVsghvCnnAa8vXoN3NB7LP3K+WLxjTEATwqC0PMNN/+2gblIsRVvGe5zRGqh7vm4+5b8FViK8E/TZHfcde/MJatjj6N2WxYucCVC37CkXC0hDY7+iwoA/E+HxF84= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BF3vgD4e; arc=none smtp.client-ip=209.85.210.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BF3vgD4e" Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-7c7545310b8so2160465a34.1 for ; Thu, 08 Jan 2026 20:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767933907; x=1768538707; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ypKeszfpgojbgy6wMmI/rGB/PjQY3jemXow+UjHywJQ=; b=BF3vgD4egiT2mkVWe3lIXN05NxYHYFMOZhxj6J/7YXIGs6/iNsJEPy91Yo0oq/NAvf 2MMy5rqVM8NayPIoYHDwbFsZr3MFERy2vn+DXDqF78c2ZGUvHVwQJpTgO0+h0bTqyXeJ oWdtOyx5bpNalaHP87GqmSpgo1uXLN2nTZwGiY2KeUsCQhJMAnJ/yU+ZhhA8xLjkzox9 jmHO7rPOKJYIDQOSSGM9C7hyJlJOYIRJt35RkhNeM1b4mtOXhUFgg7h5ZY5DZz5kwWOF speWMqpDR/HXs68aAR43pY/Omauk61U3wNIRCokSpq+h7GPlY0mHIIVEHkZHTTEoWPOx SrBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767933907; x=1768538707; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ypKeszfpgojbgy6wMmI/rGB/PjQY3jemXow+UjHywJQ=; b=oj9cWNy0kakQYG7xaCup2rgsv3K1omRQOD1dV50O518V0ASKyEFT1U04//Xy2AtGcy PXLV+n2DeldEQN1uoTVlLTwyb1GEIAxdvUUrb+B07isu0YjzREi3rkU5szWqsd1/h99w IjKPTkCLPEsvxLbKv9FallDAFwNyLNJKLSh+GmmVuHEmS5Zb6nCFuoeMi7st7cx4LxrO chJnsK/CJ+/KzHjdE7fFTK5nLhBPM9JxOW5HSrjk89jGirjEai7YdPENVwAzcn69MTg8 ZiIM1oSWpeF6ts1BtuuE52t4xioIFEtVxhC5E8nBCieS2NlU7Kl6Qy9HebriRyMF6bjw xXVA== X-Forwarded-Encrypted: i=1; AJvYcCUQzOKFqUyUglViDUpxSB5JtpVGmyzZIqeoAywpvkBmo/B8hM/jSHkz5bpIVbzkfAuwOdeJM1fLIWThIfA=@vger.kernel.org X-Gm-Message-State: AOJu0Yw/T/bKHISQqBtBHQq0pjqFzt4DPea76yD67flsnPesUD7JzNBP hvH21ezk05Pany9km/bHHTYDvHkX9qXqgzGhSVcbZ9csa8mc8PWZZCcR X-Gm-Gg: AY/fxX5pMt4v0obG6j+dKOmughXi1cNl39W7kmvyyjN9LF3KeOG112iCWoor6IK7wIW wKK8AxuYMjMEcInY5p0U/+eMsRAlvgUW/Q6D/U0dyPPagbChtd/YGMiRxwmBbttO3CcjEOsCagd h9xBH5GCFz62k0+tyX5AUcKyrSdgkdICv4B9FX+byA5JjuQamEjl1NaXy+L9F2SzLrjDTRwyb35 Jn0xAUNvQyH4jgpJd3Wkpcd+qrNGkIJG93INe4FDzGnq5X2pn0Nc0Q4rBXA0e0lsa05w4Um6xC/ /w2qXtU8w9fts80EmWxeH1vW43Co5UZy0neVMBwkDxDDrcEzMttrK0gnIwQzMmFKoZbl2SWR+sq iot+fWCcWAUvQdCznAzM2d0SimbQ43NkeLDozJZUhpWV4g5ss8uRUyIfZez52jC62j9KsYc0Bds FCto6Y/aAxL+BWN1qBNZf6VfWxS7kE0ZVtrr85H79zAqCpKCFTK6cWzBy2gwNoRnuZC6j+HUQxs FETV8BIYtvK97bu06JhpD3Z9tozO//W6AtqpyE= X-Google-Smtp-Source: AGHT+IHzGEtr343kQgjxmKV9EME11PnTGtdoj63Wm6AsleFjdKkdyI4VIVj9KJa4nZdVheAIBE7S5g== X-Received: by 2002:a05:6830:2b28:b0:7c7:586c:846c with SMTP id 46e09a7af769-7ce50b8d34fmr5291070a34.19.1767933907080; Thu, 08 Jan 2026 20:45:07 -0800 (PST) Received: from nukework.lan (c-98-57-15-22.hsd1.tx.comcast.net. [98.57.15.22]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7ce47802551sm6683515a34.1.2026.01.08.20.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 20:45:06 -0800 (PST) From: Alexandru Gagniuc To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, jjohnson@kernel.org, ath11k@lists.infradead.org Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandru Gagniuc Subject: [PATCH v2 2/2] wifi: ath11k: support ipq9574 Date: Thu, 8 Jan 2026 22:44:54 -0600 Message-ID: <20260109044457.3074510-3-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20260109044457.3074510-1-mr.nuke.me@gmail.com> References: <20260109044457.3074510-1-mr.nuke.me@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The IPQ9574 can be coupled with wifi-6 chips, like QCN5024 to expose a wifi device over AHB. Add the data structures necessarry to describe the IPQ9574 wifi hardware. The CE configs are identical to IPQ6018, as confirmed by inspecting the out-of-tree qca-wifi-host-cmn (cnss2) driver. Coldboot calibration does not seem to work. One of two issues are seen. (1) The remoteproc firmware crashes with a fatal error, or (2) the firmware stops sending qmi responses, appearing to hang. Leave coldboot calibration disabled for now. Tested-on: IPQ5974 WLAN.HK.2.9.0.1-01890-QCAHKSWPL_SILICONZ-1 Signed-off-by: Alexandru Gagniuc --- Most information about the fields cames from the donwstream patch [1]. Analysis of the out-of-tree driver [2] shows that the IPQ9574 uses the same CE configs as IPQ6018. [1] https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/raw/NH= SS.QSDK.12.4.5.r2/mac80211/patches/324-ath11k-ipq9574-support.patch?inline= =3Dfalse [2] https://git.codelinaro.org/clo/external-wlan/qca-wifi-host-cmn/-/blob/c= af_migration/wlan-cmn.driver.lnx.2.13/hif/src/ce/ce_assignment.h?ref_type= =3Dheads --- drivers/net/wireless/ath/ath11k/ahb.c | 4 ++ drivers/net/wireless/ath/ath11k/core.c | 82 ++++++++++++++++++++++++++ drivers/net/wireless/ath/ath11k/core.h | 1 + drivers/net/wireless/ath/ath11k/hw.c | 51 ++++++++++++++++ drivers/net/wireless/ath/ath11k/hw.h | 1 + 5 files changed, 139 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/a= th/ath11k/ahb.c index 8dfe9b40c126..e68bcc6b6069 100644 --- a/drivers/net/wireless/ath/ath11k/ahb.c +++ b/drivers/net/wireless/ath/ath11k/ahb.c @@ -25,6 +25,9 @@ static const struct of_device_id ath11k_ahb_of_match[] = =3D { /* TODO: Should we change the compatible string to something similar * to one that ath10k uses? */ + { .compatible =3D "qcom,ipq9574-wifi", + .data =3D (void *)ATH11K_HW_IPQ9574, + }, { .compatible =3D "qcom,ipq8074-wifi", .data =3D (void *)ATH11K_HW_IPQ8074, }, @@ -1117,6 +1120,7 @@ static int ath11k_ahb_probe(struct platform_device *p= dev) hw_rev =3D (uintptr_t)device_get_match_data(&pdev->dev); =20 switch (hw_rev) { + case ATH11K_HW_IPQ9574: case ATH11K_HW_IPQ8074: case ATH11K_HW_IPQ6018_HW10: case ATH11K_HW_IPQ5018_HW10: diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/= ath/ath11k/core.c index 812686173ac8..fed888414005 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -40,6 +40,88 @@ module_param_named(ftm_mode, ath11k_ftm_mode, bool, 0444= ); MODULE_PARM_DESC(ftm_mode, "Boots up in factory test mode"); =20 static const struct ath11k_hw_params ath11k_hw_params[] =3D { + { + .hw_rev =3D ATH11K_HW_IPQ9574, + .name =3D "ipq9574", + .fw =3D { + .dir =3D "IPQ9574/hw1.0", + .board_size =3D 256 * 1024, + .cal_offset =3D 128 * 1024, + }, + .max_radios =3D 1, + .bdf_addr =3D 0x4B700000, + .hw_ops =3D &ipq9574_ops, + .ring_mask =3D &ath11k_hw_ring_mask_ipq8074, + .internal_sleep_clock =3D false, + .regs =3D &ipq8074_regs, + .qmi_service_ins_id =3D ATH11K_QMI_WLFW_SERVICE_INS_ID_V01_IPQ8074, + .host_ce_config =3D ath11k_host_ce_config_ipq8074, + .ce_count =3D 12, + .target_ce_config =3D ath11k_target_ce_config_wlan_ipq8074, + .target_ce_count =3D 11, + .svc_to_ce_map =3D ath11k_target_service_to_ce_map_wlan_ipq6018, + .svc_to_ce_map_len =3D 19, + .ce_ie_addr =3D &ath11k_ce_ie_addr_ipq8074, + .single_pdev_only =3D false, + .rxdma1_enable =3D true, + .num_rxdma_per_pdev =3D 1, + .rx_mac_buf_ring =3D false, + .vdev_start_delay =3D false, + .htt_peer_map_v2 =3D true, + + .spectral =3D { + .fft_sz =3D 2, + .fft_pad_sz =3D 2, + .summary_pad_sz =3D 0, + .fft_hdr_len =3D 16, + .max_fft_bins =3D 512, + .fragment_160mhz =3D true, + }, + + .interface_modes =3D BIT(NL80211_IFTYPE_STATION) | + BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_MESH_POINT), + .supports_monitor =3D true, + .full_monitor_mode =3D false, + .supports_shadow_regs =3D false, + .idle_ps =3D false, + .supports_sta_ps =3D false, + .coldboot_cal_mm =3D false, + .coldboot_cal_ftm =3D false, + .fw_mem_mode =3D 0, + .num_vdevs =3D 16 + 1, + .num_peers =3D 512, + .supports_suspend =3D false, + .hal_desc_sz =3D sizeof(struct hal_rx_desc_ipq8074), + .supports_regdb =3D false, + .fix_l1ss =3D true, + .credit_flow =3D false, + .hal_params =3D &ath11k_hw_hal_params_ipq8074, + .supports_dynamic_smps_6ghz =3D false, + .alloc_cacheable_memory =3D true, + .supports_rssi_stats =3D false, + .fw_wmi_diag_event =3D false, + .current_cc_support =3D false, + .dbr_debug_support =3D true, + .global_reset =3D false, + .bios_sar_capa =3D NULL, + .m3_fw_support =3D false, + .fixed_bdf_addr =3D true, + .fixed_mem_region =3D true, + .static_window_map =3D false, + .hybrid_bus_type =3D false, + .fixed_fw_mem =3D false, + .support_off_channel_tx =3D false, + .supports_multi_bssid =3D false, + + .sram_dump =3D {}, + + .tcl_ring_retry =3D true, + .tx_ring_size =3D DP_TCL_DATA_RING_SIZE, + .smp2p_wow_exit =3D false, + .support_dual_stations =3D false, + .pdev_suspend =3D false, + }, { .hw_rev =3D ATH11K_HW_IPQ8074, .name =3D "ipq8074 hw2.0", diff --git a/drivers/net/wireless/ath/ath11k/core.h b/drivers/net/wireless/= ath/ath11k/core.h index e8780b05ce11..9a4acde3acfa 100644 --- a/drivers/net/wireless/ath/ath11k/core.h +++ b/drivers/net/wireless/ath/ath11k/core.h @@ -142,6 +142,7 @@ struct ath11k_skb_rxcb { }; =20 enum ath11k_hw_rev { + ATH11K_HW_IPQ9574, ATH11K_HW_IPQ8074, ATH11K_HW_QCA6390_HW20, ATH11K_HW_IPQ6018_HW10, diff --git a/drivers/net/wireless/ath/ath11k/hw.c b/drivers/net/wireless/at= h/ath11k/hw.c index caa6dc12a790..6862b718b004 100644 --- a/drivers/net/wireless/ath/ath11k/hw.c +++ b/drivers/net/wireless/ath/ath11k/hw.c @@ -34,6 +34,17 @@ static u8 ath11k_hw_ipq6018_mac_from_pdev_id(int pdev_id= x) return pdev_idx; } =20 +static u8 ath11k_hw_ipq9574_mac_from_pdev_id(int pdev_idx) +{ + /* ipq9574 is a single PHY radio which maps to PHY B(mac3) */ + switch (pdev_idx) { + case 0: + return 2; + default: + return ATH11K_INVALID_HW_MAC_ID; + } +} + static void ath11k_hw_ipq8074_tx_mesh_enable(struct ath11k_base *ab, struct hal_tcl_data_cmd *tcl_cmd) { @@ -900,6 +911,46 @@ static u32 ath11k_hw_wcn6750_get_tcl_ring_selector(str= uct sk_buff *skb) return skb_get_hash(skb); } =20 +const struct ath11k_hw_ops ipq9574_ops =3D { + .get_hw_mac_from_pdev_id =3D ath11k_hw_ipq9574_mac_from_pdev_id, + .wmi_init_config =3D ath11k_init_wmi_config_ipq8074, + .mac_id_to_pdev_id =3D ath11k_hw_mac_id_to_pdev_id_ipq8074, + .mac_id_to_srng_id =3D ath11k_hw_mac_id_to_srng_id_ipq8074, + .tx_mesh_enable =3D ath11k_hw_ipq8074_tx_mesh_enable, + .rx_desc_get_first_msdu =3D ath11k_hw_ipq8074_rx_desc_get_first_msdu, + .rx_desc_get_last_msdu =3D ath11k_hw_ipq8074_rx_desc_get_last_msdu, + .rx_desc_get_l3_pad_bytes =3D ath11k_hw_ipq8074_rx_desc_get_l3_pad_bytes, + .rx_desc_get_hdr_status =3D ath11k_hw_ipq8074_rx_desc_get_hdr_status, + .rx_desc_encrypt_valid =3D ath11k_hw_ipq8074_rx_desc_encrypt_valid, + .rx_desc_get_encrypt_type =3D ath11k_hw_ipq8074_rx_desc_get_encrypt_type, + .rx_desc_get_decap_type =3D ath11k_hw_ipq8074_rx_desc_get_decap_type, + .rx_desc_get_mesh_ctl =3D ath11k_hw_ipq8074_rx_desc_get_mesh_ctl, + .rx_desc_get_ldpc_support =3D ath11k_hw_ipq8074_rx_desc_get_ldpc_support, + .rx_desc_get_mpdu_seq_ctl_vld =3D ath11k_hw_ipq8074_rx_desc_get_mpdu_seq_= ctl_vld, + .rx_desc_get_mpdu_fc_valid =3D ath11k_hw_ipq8074_rx_desc_get_mpdu_fc_vali= d, + .rx_desc_get_mpdu_start_seq_no =3D ath11k_hw_ipq8074_rx_desc_get_mpdu_sta= rt_seq_no, + .rx_desc_get_msdu_len =3D ath11k_hw_ipq8074_rx_desc_get_msdu_len, + .rx_desc_get_msdu_sgi =3D ath11k_hw_ipq8074_rx_desc_get_msdu_sgi, + .rx_desc_get_msdu_rate_mcs =3D ath11k_hw_ipq8074_rx_desc_get_msdu_rate_mc= s, + .rx_desc_get_msdu_rx_bw =3D ath11k_hw_ipq8074_rx_desc_get_msdu_rx_bw, + .rx_desc_get_msdu_freq =3D ath11k_hw_ipq8074_rx_desc_get_msdu_freq, + .rx_desc_get_msdu_pkt_type =3D ath11k_hw_ipq8074_rx_desc_get_msdu_pkt_typ= e, + .rx_desc_get_msdu_nss =3D ath11k_hw_ipq8074_rx_desc_get_msdu_nss, + .rx_desc_get_mpdu_tid =3D ath11k_hw_ipq8074_rx_desc_get_mpdu_tid, + .rx_desc_get_mpdu_peer_id =3D ath11k_hw_ipq8074_rx_desc_get_mpdu_peer_id, + .rx_desc_copy_attn_end_tlv =3D ath11k_hw_ipq8074_rx_desc_copy_attn_end, + .rx_desc_get_mpdu_start_tag =3D ath11k_hw_ipq8074_rx_desc_get_mpdu_start_= tag, + .rx_desc_get_mpdu_ppdu_id =3D ath11k_hw_ipq8074_rx_desc_get_mpdu_ppdu_id, + .rx_desc_set_msdu_len =3D ath11k_hw_ipq8074_rx_desc_set_msdu_len, + .rx_desc_get_attention =3D ath11k_hw_ipq8074_rx_desc_get_attention, + .rx_desc_get_msdu_payload =3D ath11k_hw_ipq8074_rx_desc_get_msdu_payload, + .reo_setup =3D ath11k_hw_ipq8074_reo_setup, + .mpdu_info_get_peerid =3D ath11k_hw_ipq8074_mpdu_info_get_peerid, + .rx_desc_mac_addr2_valid =3D ath11k_hw_ipq8074_rx_desc_mac_addr2_valid, + .rx_desc_mpdu_start_addr2 =3D ath11k_hw_ipq8074_rx_desc_mpdu_start_addr2, + .get_ring_selector =3D ath11k_hw_ipq8074_get_tcl_ring_selector, +}; + const struct ath11k_hw_ops ipq8074_ops =3D { .get_hw_mac_from_pdev_id =3D ath11k_hw_ipq8074_mac_from_pdev_id, .wmi_init_config =3D ath11k_init_wmi_config_ipq8074, diff --git a/drivers/net/wireless/ath/ath11k/hw.h b/drivers/net/wireless/at= h/ath11k/hw.h index 52d9f4c13b13..0ea36c8ebb66 100644 --- a/drivers/net/wireless/ath/ath11k/hw.h +++ b/drivers/net/wireless/ath/ath11k/hw.h @@ -273,6 +273,7 @@ struct ath11k_hw_ops { u32 (*get_ring_selector)(struct sk_buff *skb); }; =20 +extern const struct ath11k_hw_ops ipq9574_ops; extern const struct ath11k_hw_ops ipq8074_ops; extern const struct ath11k_hw_ops ipq6018_ops; extern const struct ath11k_hw_ops qca6390_ops; --=20 2.45.1