Re: [PATCH ath-next] wifi: ath9k: Clear DMA descriptors without memset
From: Jeff Johnson
Date: Sat Jun 06 2026 - 11:54:40 EST
On Sat, 16 May 2026 21:27:16 -0700, Rosen Penev wrote:
> Clear ath9k DMA descriptors with explicit status word stores instead of
> memset(). The descriptor rings are coherent DMA memory, which may be
> mapped uncached on 32-bit powerpc. The optimized memset() path can use
> dcbz there and trigger an alignment warning.
>
> Use WRITE_ONCE() for the descriptor status words so the compiler keeps
> the clears as ordinary stores instead of folding them back into bulk
> memset(). This covers AR9003 TX status descriptors as well as the RX
> status area cleared when setting up RX descriptors.
>
> [...]
Applied, thanks!
[1/1] wifi: ath9k: Clear DMA descriptors without memset
commit: 44589c155e6f4531100ddd3b6478190edd075035
Best regards,
--
Jeff Johnson <jeff.johnson@xxxxxxxxxxxxxxxx>