[PATCH v2] crypto: caam/qi2 - lower the algorithm priority
From: Vincent Jardin via B4 Relay
Date: Tue Sep 29 2026 - 16:29:19 EST
From: Vincent Jardin <vjardin@xxxxxxx>
Lower the priority to 100, as done for QAT in commit
8024774190a5 ("crypto: qat - lower priority for skcipher and aead algorithms").
The SEC stays reachable by driver name, and user space can raise its
priority through the crypto_user interface.
Suggested-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Link: https://lore.kernel.org/r/aruvJECCDNdguMdw@xxxxxxxxxxxxxxxxxxx
Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>
---
v2 lowers the priority to 100, as was done for QAT, and leaves the
choice to user space through crypto_user.
---
Changes in v2:
- Drop both the dpaa2_caam.priority module parameter and the
fsl,qi2-crypto-priority DT property
- Lower the default priority to 100, user space adjust it with
crypto_user (Herbert).
- No policy in the device tree (Krzysztof, Eric).
- Link to v1: https://lore.kernel.org/r/20260928-for-upstream-caam-qi2-priority-v1-0-e4a8e5f01dbc@xxxxxxx
---
drivers/crypto/caam/caamalg_qi2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c
index 6b47bcc16a50..d3cb2bd5c41d 100644
--- a/drivers/crypto/caam/caamalg_qi2.c
+++ b/drivers/crypto/caam/caamalg_qi2.c
@@ -26,7 +26,7 @@
#include <crypto/xts.h>
#include <linux/unaligned.h>
-#define CAAM_CRA_PRIORITY 2000
+#define CAAM_CRA_PRIORITY 100
/* max key is sum of AES_MAX_KEY_SIZE, max split key size */
#define CAAM_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE + \
---
base-commit: 67aefeccc4101a93627f36abbd049f191b54f903
change-id: 20260928-for-upstream-caam-qi2-priority-76301b8eb3a6
Best regards,
--
Vincent Jardin <vjardin@xxxxxxx>