Linux wireless drivers development
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
To: Jeff Johnson <jjohnson@kernel.org>, Kalle Valo <kvalo@kernel.org>
Cc: Jeff Johnson <jeff.johnson@oss.qualcomm.com>,
	linux-wireless@vger.kernel.org, ath12k@lists.infradead.org
Subject: Re: [PATCH ath-current] wifi: ath12k: fix DP used for WBM error buffer refill
Date: Fri, 4 Dec 2026 15:41:01 +0100	[thread overview]
Message-ID: <axLQ_Z5zbmEQZ3YX@lore-desk> (raw)
In-Reply-To: <20261017-ath12k_wifi7_dp_rx_process_wbm_err-fix-dp-replenish-v1-1-21eff2270080@oss.qualcomm.com>

[-- Attachment #1: Type: text/plain, Size: 1799 bytes --]

> ath12k_wifi7_dp_rx_process_wbm_err() replenishes RX buffers belonging to a
> partner device, but passes the current device's DP object while using the
> partner device's refill ring. This can map replacement buffers with the
> wrong DMA device and access the wrong RX descriptor state in multi-device
> setups. Use the partner device's DP object consistently when replenishing
> its RX buffers.
> 
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
> 
> Fixes: 1d18b197bc4b ("wifi: ath12k: add partner device buffer support in receive data path")
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
> ---
>  drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Hi Jeff,

do you have any update about this fix? Thanks in advance.

Regards,
Lorenzo

> 
> diff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
> index 95d87dd67872..c3e4ec0ac281 100644
> --- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
> +++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
> @@ -2052,7 +2052,7 @@ int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,
>  		partner_dp = ath12k_dp_hw_grp_to_dp(dp_hw_grp, device_id);
>  		rx_ring = &partner_dp->rx_refill_buf_ring;
>  
> -		ath12k_dp_rx_bufs_replenish(dp, rx_ring,
> +		ath12k_dp_rx_bufs_replenish(partner_dp, rx_ring,
>  					    &rx_desc_used_list[device_id],
>  					    num_buffs_reaped[device_id]);
>  	}
> 
> ---
> base-commit: 08a3f02fea636e97a7422d1512f76dacdb5b0887
> change-id: 20261017-ath12k_wifi7_dp_rx_process_wbm_err-fix-dp-replenish-2c7ec293f37e
> 
> Best regards,
> -- 
> Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

      parent reply	other threads:[~2026-12-04 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-17  9:36 [PATCH ath-current] wifi: ath12k: fix DP used for WBM error buffer refill Lorenzo Bianconi
2026-11-26 17:19 ` Vasanthakumar Thiagarajan
2026-12-04 14:41 ` Lorenzo Bianconi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axLQ_Z5zbmEQZ3YX@lore-desk \
    --to=lorenzo.bianconi@oss.qualcomm.com \
    --cc=ath12k@lists.infradead.org \
    --cc=jeff.johnson@oss.qualcomm.com \
    --cc=jjohnson@kernel.org \
    --cc=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox