Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
081fb3a
BACKPORT: FROMLIST: wifi: ath12k: refactor PCI window register access
Nov 13, 2025
67d64f1
BACKPORT: FROMLIST: wifi: ath12k: refactor REO CMD ring handling
Nov 13, 2025
4d465c8
BACKPORT: FROMLIST: wifi: ath12k: refactor REO status ring handling
Dec 5, 2025
4eae5bf
BACKPORT: FROMLIST: wifi: ath12k: fix preferred hardware mode calcula…
Nov 12, 2025
2f4f350
BACKPORT: FROMLIST: wifi: ath12k: refactor 320 MHz bandwidth support …
Nov 12, 2025
bd699ce
BACKPORT: FROMLIST: wifi: ath12k: fix mac phy capability parsing
Nov 13, 2025
6e2eb18
BACKPORT: FROMLIST: wifi: ath12k: add hardware registers for QCC2072
Nov 13, 2025
c3a3928
BACKPORT: FROMLIST: wifi: ath12k: add hardware parameters for QCC2072
Nov 13, 2025
33e6df2
BACKPORT: FROMLIST: wifi: ath12k: advertise standard ELF image format…
Nov 13, 2025
2168e96
BACKPORT: FROMLIST: wifi: ath12k: support LPASS_SHARED target memory …
Nov 13, 2025
c7f7a3d
BACKPORT: FROMLIST: wifi: ath12k: support downloading auxiliary ucode…
Dec 18, 2025
4a03901
BACKPORT: FROMLIST: wifi: ath12k: add HAL descriptor and ops for QCC2072
Nov 12, 2025
5c48fbd
BACKPORT: FROMLIST: wifi: ath12k: add hardware ops support for QCC2072
Nov 13, 2025
46cb219
BACKPORT: FROMLIST: wifi: ath12k: limit number of channels per WMI co…
Nov 13, 2025
72e5595
BACKPORT: FROMLIST: wifi: ath12k: send peer meta data version to firm…
Nov 13, 2025
265dd3f
BACKPORT: FROMLIST: wifi: ath12k: fix PCIE_LOCAL_REG_QRTR_NODE_ID def…
miaoqing-quic Dec 18, 2025
0997338
BACKPORT: FROMLIST: wifi: ath12k: enable QCC2072 support
Dec 18, 2025
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
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 @@ -1189,6 +1190,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 @@ -4359,6 +4359,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 @@ -4369,7 +4370,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 @@ -4544,6 +4545,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