[PATCH 8/9] crypto: sun8i-ce - save hash buffers and dma info to request context
Herbert Xu
herbert at gondor.apana.org.au
Sat Aug 16 02:09:14 PDT 2025
On Mon, Jul 28, 2025 at 09:07:00AM +0300, Ovidiu Panait wrote:
>
> + u8 result[CE_MAX_HASH_DIGEST_SIZE] ____cacheline_aligned;
To get proper alignment for the reqctx, the driver should use
the ahash_request_ctx_dma helper. Of course, the reqsize should
also be increased by CRYPTO_DMA_PADDING.
For the struct member, instead of __cacheline_aligned use
__aligned(CRYPTO_DMA_ALIGN).
> + u8 pad[2 * CE_MAX_HASH_BLOCK_SIZE] ____cacheline_aligned;
This is to-devce only, right? If so it doesn't need to be aligned.
Cheers,
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list