]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: octeontx2 - suppress auth failure screaming due to negative tests
authorShashank Gupta <shashankg@marvell.com>
Wed, 5 Mar 2025 07:57:05 +0000 (13:27 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 15 Mar 2025 08:21:22 +0000 (16:21 +0800)
This patch addresses an issue where authentication failures were being
erroneously reported due to negative test failures in the "ccm(aes)"
selftest.
pr_debug suppress unnecessary screaming of these tests.

Signed-off-by: Shashank Gupta <shashankg@marvell.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c

index 5387c68f3c9df1f3d59860a6687e9bc996cbf373..426244107037297fa3b25d153345b3a0380fb687 100644 (file)
@@ -264,9 +264,10 @@ static int cpt_process_ccode(struct otx2_cptlfs_info *lfs,
                                break;
                        }
 
-                       dev_err(&pdev->dev,
-                               "Request failed with software error code 0x%x\n",
-                               cpt_status->s.uc_compcode);
+                       pr_debug("Request failed with software error code 0x%x: algo = %s driver = %s\n",
+                                cpt_status->s.uc_compcode,
+                                info->req->areq->tfm->__crt_alg->cra_name,
+                                info->req->areq->tfm->__crt_alg->cra_driver_name);
                        otx2_cpt_dump_sg_list(pdev, info->req);
                        break;
                }