Re: [PATCH] hwmon: (powerz) Avoid cacheline sharing for DMA buffer
From: Guenter Roeck
Date: Fri Apr 10 2026 - 11:39:14 EST
On Wed, Apr 08, 2026 at 08:45:50PM +0200, Thomas Weißschuh wrote:
> Depending on the architecture the transfer buffer may share a cacheline
> with the following mutex. As the buffer may be used for DMA, that is
> problematic.
>
> Use the high-level DMA helpers to make sure that cacheline sharing can
> not happen.
>
> Also drop the comment, as the helpers are documentation enough.
>
> https://sashiko.dev/#/message/20260408175814.934BFC19421%40smtp.kernel.org
>
> Fixes: 4381a36abdf1c ("hwmon: add POWER-Z driver")
> Cc: stable@xxxxxxxxxxxxxxx # ca085faabb42: dma-mapping: add __dma_from_device_group_begin()/end()
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Applied.
Thanks,
Guenter