Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
74e7ef7
FROMLIST: wifi: ath11k: add usecase firmware handling based on device…
miaoqing-quic Nov 14, 2025
5de2966
FROMLIST: mhi: host: Add standard elf image download functionality
Dec 2, 2025
1ffaf58
BACKPORT: FROMLIST: wifi: ath12k: refactor PCI window register access
Nov 13, 2025
1913bd9
BACKPORT: FROMLIST: wifi: ath12k: refactor REO CMD ring handling
Nov 13, 2025
9394b7a
BACKPORT: FROMLIST: wifi: ath12k: refactor REO status ring handling
Dec 5, 2025
8e827ea
BACKPORT: FROMLIST: wifi: ath12k: fix preferred hardware mode calcula…
Nov 12, 2025
40924a8
BACKPORT: FROMLIST: wifi: ath12k: refactor 320 MHz bandwidth support …
Nov 12, 2025
e8ac32f
BACKPORT: FROMLIST: wifi: ath12k: fix mac phy capability parsing
Nov 13, 2025
e65f5bd
BACKPORT: FROMLIST: wifi: ath12k: add hardware registers for QCC2072
Nov 13, 2025
b1dfb61
BACKPORT: FROMLIST: wifi: ath12k: add hardware parameters for QCC2072
Nov 13, 2025
2860d23
BACKPORT: FROMLIST: wifi: ath12k: advertise standard ELF image format…
Nov 13, 2025
9b2f93d
BACKPORT: FROMLIST: wifi: ath12k: support LPASS_SHARED target memory …
Nov 13, 2025
636c84f
BACKPORT: FROMLIST: wifi: ath12k: support downloading auxiliary ucode…
Dec 18, 2025
30f3b76
BACKPORT: FROMLIST: wifi: ath12k: add HAL descriptor and ops for QCC2072
Nov 12, 2025
e2be856
BACKPORT: FROMLIST: wifi: ath12k: add hardware ops support for QCC2072
Nov 13, 2025
34d03f6
BACKPORT: FROMLIST: wifi: ath12k: limit number of channels per WMI co…
Nov 13, 2025
d0c439b
BACKPORT: FROMLIST: wifi: ath12k: send peer meta data version to firm…
Nov 13, 2025
1feb0eb
BACKPORT: FROMLIST: wifi: ath12k: fix PCIE_LOCAL_REG_QRTR_NODE_ID def…
miaoqing-quic Dec 18, 2025
6ed7ea2
BACKPORT: FROMLIST: wifi: ath12k: enable QCC2072 support
Dec 18, 2025
84eecaf
FROMLIST: wifi: ath11k: Fix failure to connect to a 6 GHz AP
Realzhq Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions drivers/bus/mhi/host/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,13 @@ void mhi_fw_load_handler(struct mhi_controller *mhi_cntrl)
* device transitioning into MHI READY state
*/
if (fw_load_type == MHI_FW_LOAD_FBC) {
dev_dbg(dev, "standard_elf_image:%s\n",
(mhi_cntrl->standard_elf_image ? "True" : "False"));
if (mhi_cntrl->standard_elf_image) {
fw_data += mhi_cntrl->sbl_size;
fw_sz -= mhi_cntrl->sbl_size;
}

ret = mhi_alloc_bhie_table(mhi_cntrl, &mhi_cntrl->fbc_image, fw_sz);
if (ret) {
release_firmware(firmware);
Expand Down
37 changes: 36 additions & 1 deletion drivers/net/wireless/ath/ath11k/core.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

Expand Down Expand Up @@ -997,6 +996,42 @@ static const struct dmi_system_id ath11k_pm_quirk_table[] = {
{}
};

static const struct __ath11k_core_usecase_firmware_table {
u32 hw_rev;
const char *compatible;
const char *firmware_name;
} ath11k_core_usecase_firmware_table[] = {
{ ATH11K_HW_WCN6855_HW21, "qcom,lemans-evk", "nfa765"},
{ ATH11K_HW_WCN6855_HW21, "qcom,monaco-evk", "nfa765"},
{ ATH11K_HW_WCN6855_HW21, "qcom,hamoa-iot-evk", "nfa765"},
{ /* Sentinel */ }
};

const char *ath11k_core_get_usecase_firmware(struct ath11k_base *ab)
{
struct device_node *root __free(device_node) = of_find_node_by_path("/");
const struct __ath11k_core_usecase_firmware_table *entry = NULL;
int i, count = of_property_count_strings(root, "compatible");
const char *compatible = NULL;

for (i = 0; i < count; i++) {
if (of_property_read_string_index(root, "compatible", i,
&compatible) < 0)
continue;

entry = ath11k_core_usecase_firmware_table;
while (entry->compatible) {
if (ab->hw_rev == entry->hw_rev &&
!strcmp(entry->compatible, compatible))
return entry->firmware_name;
entry++;
}
}

return NULL;
}
EXPORT_SYMBOL(ath11k_core_get_usecase_firmware);

void ath11k_fw_stats_pdevs_free(struct list_head *head)
{
struct ath11k_fw_stats_pdev *i, *tmp;
Expand Down
7 changes: 3 additions & 4 deletions drivers/net/wireless/ath/ath11k/core.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

#ifndef ATH11K_CORE_H
Expand Down Expand Up @@ -1275,6 +1275,7 @@ bool ath11k_core_coldboot_cal_support(struct ath11k_base *ab);

const struct firmware *ath11k_core_firmware_request(struct ath11k_base *ab,
const char *filename);
const char *ath11k_core_get_usecase_firmware(struct ath11k_base *ab);

static inline const char *ath11k_scan_state_str(enum ath11k_scan_state state)
{
Expand Down Expand Up @@ -1325,9 +1326,7 @@ static inline void ath11k_core_create_firmware_path(struct ath11k_base *ab,
const char *filename,
void *buf, size_t buf_len)
{
const char *fw_name = NULL;

of_property_read_string(ab->dev->of_node, "firmware-name", &fw_name);
const char *fw_name = ath11k_core_get_usecase_firmware(ab);

if (fw_name && strncmp(filename, "board", 5))
snprintf(buf, buf_len, "%s/%s/%s/%s", ATH11K_FW_DIR,
Expand Down
9 changes: 6 additions & 3 deletions drivers/net/wireless/ath/ath11k/reg.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: BSD-3-Clause-Clear
/*
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2021-2025 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/
#include <linux/rtnetlink.h>

Expand Down Expand Up @@ -926,8 +926,11 @@ int ath11k_reg_handle_chan_list(struct ath11k_base *ab,
*/
if (ab->default_regd[pdev_idx] && !ab->new_regd[pdev_idx] &&
!memcmp((char *)ab->default_regd[pdev_idx]->alpha2,
(char *)reg_info->alpha2, 2))
goto retfail;
(char *)reg_info->alpha2, 2) &&
power_type == IEEE80211_REG_UNSET_AP) {
ath11k_reg_reset_info(reg_info);
return 0;
}

/* Intersect new rules with default regd if a new country setting was
* requested, i.e a default regd was already set during initialization
Expand Down
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/ath12k/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ enum ath12k_hw_rev {
ATH12K_HW_QCN9274_HW20,
ATH12K_HW_WCN7850_HW20,
ATH12K_HW_IPQ5332_HW10,
ATH12K_HW_QCC2072_HW10,
};

enum ath12k_firmware_mode {
Expand Down Expand Up @@ -1191,6 +1192,8 @@ struct ath12k_base {
size_t amss_dualmac_len;
const u8 *m3_data;
size_t m3_len;
const u8 *aux_uc_data;
size_t aux_uc_len;

DECLARE_BITMAP(fw_features, ATH12K_FW_FEATURE_COUNT);
bool fw_features_valid;
Expand Down
45 changes: 44 additions & 1 deletion drivers/net/wireless/ath/ath12k/dp_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4421,6 +4421,7 @@ void ath12k_dp_rx_process_reo_status(struct ath12k_base *ab)
bool found = false;
u16 tag;
struct hal_reo_status reo_status;
void *desc;

srng = &ab->hal.srng_list[dp->reo_status_ring.ring_id];

Expand All @@ -4431,7 +4432,7 @@ void ath12k_dp_rx_process_reo_status(struct ath12k_base *ab)
ath12k_hal_srng_access_begin(ab, srng);

while ((hdr = ath12k_hal_srng_dst_get_next_entry(ab, srng))) {
tag = le64_get_bits(hdr->tl, HAL_SRNG_TLV_HDR_TAG);
tag = ab->hw_params->hal_ops->reo_status_decode_hdr(hdr, &desc);

switch (tag) {
case HAL_REO_GET_QUEUE_STATS_STATUS:
Expand Down Expand Up @@ -4606,6 +4607,48 @@ int ath12k_dp_rxdma_ring_sel_config_wcn7850(struct ath12k_base *ab)
return ret;
}

int ath12k_dp_rxdma_ring_sel_config_qcc2072(struct ath12k_base *ab)
{
struct ath12k_dp *dp = &ab->dp;
struct htt_rx_ring_tlv_filter tlv_filter = {};
u32 ring_id;
int ret = 0;
u32 hal_rx_desc_sz = ab->hal.hal_desc_sz;
int i;

ring_id = dp->rx_refill_buf_ring.refill_buf_ring.ring_id;

tlv_filter.rx_filter = HTT_RX_TLV_FLAGS_RXDMA_RING;
tlv_filter.pkt_filter_flags2 = HTT_RX_FP_CTRL_PKT_FILTER_TLV_FLAGS2_BAR;
tlv_filter.pkt_filter_flags3 = HTT_RX_FP_DATA_PKT_FILTER_TLV_FLASG3_MCAST |
HTT_RX_FP_DATA_PKT_FILTER_TLV_FLASG3_UCAST |
HTT_RX_FP_DATA_PKT_FILTER_TLV_FLASG3_NULL_DATA;
tlv_filter.offset_valid = true;
tlv_filter.rx_packet_offset = hal_rx_desc_sz;

tlv_filter.rx_header_offset = offsetof(struct hal_rx_desc_qcc2072, pkt_hdr_tlv);

tlv_filter.rx_mpdu_start_offset =
ath12k_hal_rx_desc_get_mpdu_start_offset_qcc2072();
tlv_filter.rx_msdu_end_offset =
ath12k_hal_rx_desc_get_msdu_end_offset_qcc2072();

/* TODO: Selectively subscribe to required qwords within msdu_end
* and mpdu_start and setup the mask in below msg
* and modify the rx_desc struct
*/

for (i = 0; i < ab->hw_params->num_rxdma_per_pdev; i++) {
ring_id = dp->rx_mac_buf_ring[i].ring_id;
ret = ath12k_dp_tx_htt_rx_filter_setup(ab, ring_id, i,
HAL_RXDMA_BUF,
DP_RXDMA_REFILL_RING_SIZE,
&tlv_filter);
}

return ret;
}

int ath12k_dp_rx_htt_setup(struct ath12k_base *ab)
{
struct ath12k_dp *dp = &ab->dp;
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath12k/dp_rx.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ u32 ath12k_dp_rx_h_mpdu_err(struct ath12k_base *ab,
void ath12k_dp_rx_h_ppdu(struct ath12k *ar, struct ath12k_dp_rx_info *rx_info);
int ath12k_dp_rxdma_ring_sel_config_qcn9274(struct ath12k_base *ab);
int ath12k_dp_rxdma_ring_sel_config_wcn7850(struct ath12k_base *ab);
int ath12k_dp_rxdma_ring_sel_config_qcc2072(struct ath12k_base *ab);

int ath12k_dp_htt_tlv_iter(struct ath12k_base *ab, const void *ptr, size_t len,
int (*iter)(struct ath12k_base *ar, u16 tag, u16 len,
Expand Down
8 changes: 8 additions & 0 deletions drivers/net/wireless/ath/ath12k/fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ static int ath12k_fw_request_firmware_api_n(struct ath12k_base *ab,
ab->fw.m3_data = data;
ab->fw.m3_len = ie_len;
break;
case ATH12K_FW_IE_AUX_UC_IMAGE:
ath12k_dbg(ab, ATH12K_DBG_BOOT,
"found aux_uc image ie (%zd B)\n",
ie_len);

ab->fw.aux_uc_data = data;
ab->fw.aux_uc_len = ie_len;
break;
case ATH12K_FW_IE_AMSS_DUALMAC_IMAGE:
ath12k_dbg(ab, ATH12K_DBG_BOOT,
"found dualmac fw image ie (%zd B)\n",
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath12k/fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ enum ath12k_fw_ie_type {
ATH12K_FW_IE_AMSS_IMAGE = 2,
ATH12K_FW_IE_M3_IMAGE = 3,
ATH12K_FW_IE_AMSS_DUALMAC_IMAGE = 4,
ATH12K_FW_IE_AUX_UC_IMAGE = 5,
};

enum ath12k_fw_features {
Expand Down
Loading