Re: [PATCH 1/3] crypto: caam/qi2 - algorithm priority be a parameter
From: Herbert Xu
Date: Tue Sep 29 2026 - 08:36:05 EST
On Mon, Sep 28, 2026 at 04:01:03PM +0200, Vincent Jardin via B4 Relay wrote:
> From: Vincent Jardin <vjardin@xxxxxxx>
>
> dpaa2_caam registers every skcipher, aead and ahash at a fixed priority
> of 2000.
>
> It is above the ARMv8 Crypto Extensions (200 to 300), so on any DPAA2 SoC,
> every in-kernel user of AES, SHA or GCM moves from the CPU to the SEC,
> whatever the request size.
>
> Whether the SEC should be the default or only be reached by driver name
> depends on the system, and there is no way to choose/tune it.
You can easily change the priority from user-space through the
crypto_user interface.
So why not lower the default priority and let the user adjust
it if necessary?
Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt