From ba680882416b9e2cd89d9fc61efbdbefe9980f27 Mon Sep 17 00:00:00 2001 From: Akhil R Date: Wed, 3 Apr 2024 15:03:09 +0530 Subject: [PATCH] NVIDIA: SAUCE: crypto: Skip lrw(aes) in tcrypt BugLink: https://bugs.launchpad.net/bugs/2072591 Skip lrw(aes) from AES test in tcrypt. It is not supported by Tegra SE. Also enable the success print so that the success message is clear. Signed-off-by: Akhil R Reviewed-by: Laxman Dewangan Signed-off-by: Laxman Dewangan Acked-by: Jacob Martin Acked-by: Noah Wager Signed-off-by: Noah Wager --- crypto/tcrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 38a0317dab72..722b128bba47 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1520,10 +1520,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m, u32 num_mb) case 10: ret = min(ret, tcrypt_test("ecb(aes)")); ret = min(ret, tcrypt_test("cbc(aes)")); - ret = min(ret, tcrypt_test("lrw(aes)")); ret = min(ret, tcrypt_test("xts(aes)")); ret = min(ret, tcrypt_test("ctr(aes)")); #if !defined(CONFIG_CRYPTO_SUPPORT_TEGRA_TESTS) + ret = min(ret, tcrypt_test("lrw(aes)")); ret = min(ret, tcrypt_test("rfc3686(ctr(aes))")); ret = min(ret, tcrypt_test("xctr(aes)")); #endif @@ -2828,7 +2828,7 @@ static int __init tcrypt_mod_init(void) pr_err("one or more tests failed!\n"); goto err_free_tv; } else { - pr_debug("all tests passed\n"); + pr_info("all tests passed\n"); } /* We intentionaly return -EAGAIN to prevent keeping the module,