[PATCH v10 11/22] crypto: amlogic - Introduce hasher
Herbert Xu
herbert at gondor.apana.org.au
Fri Nov 15 03:40:34 PST 2024
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 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-amlogic
mailing list