Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH ath-current] wifi: ath12k: fix DP used for WBM error buffer refill
@ 2026-10-17  9:36 Lorenzo Bianconi
  2026-11-26 17:19 ` Vasanthakumar Thiagarajan
  2026-12-04 14:41 ` Lorenzo Bianconi
  0 siblings, 2 replies; 3+ messages in thread
From: Lorenzo Bianconi @ 2026-10-17  9:36 UTC (permalink / raw)
  To: Jeff Johnson, Kalle Valo
  Cc: Jeff Johnson, linux-wireless, ath12k, Lorenzo Bianconi

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(-)

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>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-04 14:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox