Re: [REGRESSION] alg: ahash: Several tests fail during boot on Turris Omnia

Herbert Xu
2024-10-15T04:53:02Z

On Thu, Oct 10, 2024 at 07:35:33PM +0200, Klaus Kudielka wrote:
>
> Hmmm, not really (patch applied on top of 6.12-rc2). 5 algorithms failed self-test.

OK, let's try disabling TDMA altogether. And if it still fails with
this could you please bring back the printk patch and send me the
result of it with TDMA disabled please?

Thanks!

diff --git a/drivers/crypto/marvell/cesa/cesa.c b/drivers/crypto/marvell/cesa/cesa.c
index 5fd31ba715c2..a3f0465aa178 100644
--- a/drivers/crypto/marvell/cesa/cesa.c
+++ b/drivers/crypto/marvell/cesa/cesa.c
@@ -278,7 +278,7 @@ static const struct mv_cesa_caps kirkwood_caps = {
.ncipher_algs = ARRAY_SIZE(orion_cipher_algs),
.ahash_algs = orion_ahash_algs,
.nahash_algs = ARRAY_SIZE(orion_ahash_algs),
- .has_tdma = true,
+ .has_tdma = false,
};

static const struct mv_cesa_caps armada_370_caps = {
@@ -287,7 +287,7 @@ static const struct mv_cesa_caps armada_370_caps = {
.ncipher_algs = ARRAY_SIZE(armada_370_cipher_algs),
.ahash_algs = armada_370_ahash_algs,
.nahash_algs = ARRAY_SIZE(armada_370_ahash_algs),
- .has_tdma = true,
+ .has_tdma = false,
};

static const struct mv_cesa_caps armada_xp_caps = {
@@ -296,7 +296,7 @@ static const struct mv_cesa_caps armada_xp_caps = {
.ncipher_algs = ARRAY_SIZE(armada_370_cipher_algs),
.ahash_algs = armada_370_ahash_algs,
.nahash_algs = ARRAY_SIZE(armada_370_ahash_algs),
- .has_tdma = true,
+ .has_tdma = false,
};

static const struct of_device_id mv_cesa_of_match_table[] = {