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@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt