* [PATCH ath-next] wifi: ath12k: fix datapath lookup in ath12k_wifi7_dp_rx_process_err()
@ 2026-10-14 14:37 Lorenzo Bianconi
2026-12-04 14:32 ` Lorenzo Bianconi
0 siblings, 1 reply; 2+ messages in thread
From: Lorenzo Bianconi @ 2026-10-14 14:37 UTC (permalink / raw)
To: Jeff Johnson; +Cc: linux-wireless, ath12k, Lorenzo Bianconi
ath12k_wifi7_dp_rx_process_err() resolves the per-pdev datapath with
ath12k_dp_to_pdev_dp(dp, pdev_idx), using the local 'dp', while
'pdev_idx' is computed from the owning 'partner_dp'. As dp_pdevs[] is
indexed per ath12k_dp, this picks the wrong pdev when the REO exception
descriptor was sourced by a partner device in a multi-device group.
The error is currently masked by the drop condition that only processes
same-device fragments (partner_dp->device_id == dp->device_id), but it
is still incorrect and would misbehave as soon as that restriction is
relaxed. For this reason do not add a specific 'Fixes' tag to backport
the patch.
Look the pdev datapath up from partner_dp, as already done in the other
Rx processing paths.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
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 a32c804403e8..633cb91b9e5d 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
@@ -1536,7 +1536,7 @@ int ath12k_wifi7_dp_rx_process_err(struct ath12k_dp *dp, struct napi_struct *nap
rcu_read_lock();
- dp_pdev = ath12k_dp_to_pdev_dp(dp, pdev_idx);
+ dp_pdev = ath12k_dp_to_pdev_dp(partner_dp, pdev_idx);
if (!dp_pdev) {
rcu_read_unlock();
continue;
---
base-commit: cd026e68fdbf88b9cc522b76c7a9d92c9a41f709
change-id: 20261014-ath12k_wifi7_dp_rx_process_err-fix-lookup-d1a2e08e6c96
Best regards,
--
Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH ath-next] wifi: ath12k: fix datapath lookup in ath12k_wifi7_dp_rx_process_err()
2026-10-14 14:37 [PATCH ath-next] wifi: ath12k: fix datapath lookup in ath12k_wifi7_dp_rx_process_err() Lorenzo Bianconi
@ 2026-12-04 14:32 ` Lorenzo Bianconi
0 siblings, 0 replies; 2+ messages in thread
From: Lorenzo Bianconi @ 2026-12-04 14:32 UTC (permalink / raw)
To: Jeff Johnson; +Cc: linux-wireless, ath12k
[-- Attachment #1: Type: text/plain, Size: 1980 bytes --]
> ath12k_wifi7_dp_rx_process_err() resolves the per-pdev datapath with
> ath12k_dp_to_pdev_dp(dp, pdev_idx), using the local 'dp', while
> 'pdev_idx' is computed from the owning 'partner_dp'. As dp_pdevs[] is
> indexed per ath12k_dp, this picks the wrong pdev when the REO exception
> descriptor was sourced by a partner device in a multi-device group.
>
> The error is currently masked by the drop condition that only processes
> same-device fragments (partner_dp->device_id == dp->device_id), but it
> is still incorrect and would misbehave as soon as that restriction is
> relaxed. For this reason do not add a specific 'Fixes' tag to backport
> the patch.
>
> Look the pdev datapath up from partner_dp, as already done in the other
> Rx processing paths.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
>
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
Hi Jeff,
do you have any update about this fix? Thanks in advance.
Regards,
Lorenzo
> ---
> 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 a32c804403e8..633cb91b9e5d 100644
> --- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
> +++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
> @@ -1536,7 +1536,7 @@ int ath12k_wifi7_dp_rx_process_err(struct ath12k_dp *dp, struct napi_struct *nap
>
> rcu_read_lock();
>
> - dp_pdev = ath12k_dp_to_pdev_dp(dp, pdev_idx);
> + dp_pdev = ath12k_dp_to_pdev_dp(partner_dp, pdev_idx);
> if (!dp_pdev) {
> rcu_read_unlock();
> continue;
>
> ---
> base-commit: cd026e68fdbf88b9cc522b76c7a9d92c9a41f709
> change-id: 20261014-ath12k_wifi7_dp_rx_process_err-fix-lookup-d1a2e08e6c96
>
> Best regards,
> --
> Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-04 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14 14:37 [PATCH ath-next] wifi: ath12k: fix datapath lookup in ath12k_wifi7_dp_rx_process_err() Lorenzo Bianconi
2026-12-04 14:32 ` Lorenzo Bianconi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox