[PATCH] crypto: sun8i-ss - Remove GFP_DMA and add DMA alignment padding

Corentin Labbe clabbe.montjoie at gmail.com
Mon Jan 2 22:51:24 PST 2023


Le Thu, Dec 29, 2022 at 04:58:21PM +0800, Herbert Xu a écrit :
> GFP_DMA does not guarantee that the returned memory is aligned
> for DMA.  In fact for sun8i-ss it is superfluous and can be removed.
> 
> However, kmalloc may start returning DMA-unaligned memory in future
> so fix this by adding the alignment by hand.
> 
> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>

Hello

Tested-by: Corentin Labbe <clabbe.montjoie at gmail.com>
Tested-on: sun8i-a83t-bananapi-m3
Acked-by: Corentin Labbe <clabbe.montjoie at gmail.com>

This means that lot of other crypto driver (sun8i-ce, amlogic, etc...) I maintain need the same fix, right ?

Regards



More information about the linux-arm-kernel mailing list