Thread (16 messages) 16 messages, 3 authors, 2022-11-28

Re: [v2 PATCH 3/9] crypto: aead - Add ctx helpers with DMA alignment

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2022-11-28 04:07:34
Also in: linux-crypto, linux-mm, lkml

On Fri, Nov 25, 2022 at 12:24:31PM +0000, Catalin Marinas wrote:
I wonder, if drivers end up calling this, isn't it easier to do the
alignment in crypto_aead_ctx() directly? There are over 300 callers (not
sure about the padding though, it may need still driver changes unless
we can add it to something like crypto_tfm_alg_alignmask()). Or is the
expectation that not all drivers need a DMA alignment?
I'm only changing the specific drivers that map things from the ctx
structures for DMA.  So it's not as bad as a simple grep would suggest.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help