public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] wifi: ath12k: fix dest ring-buffer corruption
@ 2025-05-26 11:51 Johan Hovold
  2025-05-26 11:51 ` [PATCH 1/2] " Johan Hovold
  2025-05-26 11:51 ` [PATCH 2/2] wifi: ath12k: use plain access for descriptor length Johan Hovold
  0 siblings, 2 replies; 4+ messages in thread
From: Johan Hovold @ 2025-05-26 11:51 UTC (permalink / raw)
  To: Jeff Johnson
  Cc: Miaoqing Pan, Remi Pommarel, linux-wireless, ath12k, linux-kernel,
	Johan Hovold

As a follow up to commit:

	b67d2cf14ea ("wifi: ath12k: fix ring-buffer corruption")

add the remaining missing memory barriers to make sure that destination
ring descriptors are read after the head pointers to avoid using stale
data on weakly ordered architectures like aarch64.

Also switch back to plain accesses for the descriptor fields which is
sufficient after the memory barrier.

Johan


Johan Hovold (2):
  wifi: ath12k: fix dest ring-buffer corruption
  wifi: ath12k: use plain access for descriptor length

 drivers/net/wireless/ath/ath12k/dp_mon.c |  3 +++
 drivers/net/wireless/ath/ath12k/dp_rx.c  | 12 ++++++++++++
 drivers/net/wireless/ath/ath12k/dp_tx.c  |  3 +++
 drivers/net/wireless/ath/ath12k/hal.c    |  2 +-
 4 files changed, 19 insertions(+), 1 deletion(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-06-04  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-26 11:51 [PATCH 0/2] wifi: ath12k: fix dest ring-buffer corruption Johan Hovold
2025-05-26 11:51 ` [PATCH 1/2] " Johan Hovold
2025-06-04  8:19   ` Miaoqing Pan
2025-05-26 11:51 ` [PATCH 2/2] wifi: ath12k: use plain access for descriptor length Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox