[PATCH] crypto: octeontx2: suppress auth failure screaming due to negative tests

Shashank Gupta posted 1 patch 11 months, 1 week ago
drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
[PATCH] crypto: octeontx2: suppress auth failure screaming due to negative tests
Posted by Shashank Gupta 11 months, 1 week ago
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>
---
 drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c b/drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c
index b89e245c9aa4..835a2a2de477 100644
--- a/drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c
+++ b/drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c
@@ -276,9 +276,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);
 			if (uc_ccode == 0x4C)
 				*res_code = -EBADMSG;
-- 
2.34.1
Re: [PATCH] crypto: octeontx2: suppress auth failure screaming due to negative tests
Posted by Herbert Xu 10 months, 4 weeks ago
On Wed, Mar 05, 2025 at 01:27:05PM +0530, Shashank Gupta wrote:
> 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>
> ---
>  drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt