On Fri, Nov 08, 2024 at 01:28:56PM +0300, Alexey Romanov wrote: > > +struct meson_hasher_req_ctx { > + u8 state[SHA256_DIGEST_SIZE + 16] ____cacheline_aligned; > + u8 partial[SHA256_BLOCK_SIZE] ____cacheline_aligned; > + unsigned int partial_size ____cacheline_aligned; Is this alignment for DMA? If so you cannot use ___cachealign_aligned to achieve what you want. Instead of this check out the crypto_ahash_ctx_dma helper. For an example driver doing this for DMA, you could look at caam. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt