From patchwork Mon Jun 19 12:49:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejasree Kondoj X-Patchwork-Id: 128797 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9E80842CFA; Mon, 19 Jun 2023 14:50:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 21F3C42C24; Mon, 19 Jun 2023 14:49:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id F3B7442BD9 for ; Mon, 19 Jun 2023 14:49:52 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35JBfqCo000682 for ; Mon, 19 Jun 2023 05:49:52 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=OKEW7vt6Upo/KmVFkwKsLFo7+58lfSetq/lbwaL5xTI=; b=kmEdYrW43LQdVQII+8pzeSBGCnA6uNvCapHrYwBmDvI8sBOHx5bp3nu61jQzzpIALALi zxUr8XcaAAGCcCZF9WOaBVCglFln1ug3sl7Vm+nLEogA3bv/NgLLl4LGsQYVyhSAO4+k 90vVBSYcYb4iyILjgHqqSbQ/Z35QUAUeiBbriy2p8yz22KzNf3sq8MvMNNAK9qWtvGiz DiWaJuSSN2lQfPZDQ9nBHej/XOsLonclG8anVSyuiA9q0iNfJ50qXWLfCYU2G/pqxZwH RPPG6SKkLm3dbsERPVBKGu52TXhEwq4OSmAR/DmpeoGFPPpEXrWCCW5K64D7cBPrIpOX aQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r9a6n5hxv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 19 Jun 2023 05:49:52 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 19 Jun 2023 05:49:50 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Mon, 19 Jun 2023 05:49:50 -0700 Received: from hyd1554.marvell.com (unknown [10.29.57.11]) by maili.marvell.com (Postfix) with ESMTP id 764005C68EB; Mon, 19 Jun 2023 05:49:48 -0700 (PDT) From: Tejasree Kondoj To: Akhil Goyal CC: Gowrishankar Muthukrishnan , Anoob Joseph , Aakash Sasidharan , "Vidya Sagar Velumuri" , Subject: [PATCH 8/8] crypto/cnxk: fix order of ECFPM parameters Date: Mon, 19 Jun 2023 18:19:41 +0530 Message-ID: <20230619124941.3967346-3-ktejasree@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230619124941.3967346-1-ktejasree@marvell.com> References: <20230619124941.3967346-1-ktejasree@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: YigKFsFF82LvOdXHSzUA3dE_hA4x-SkY X-Proofpoint-GUID: YigKFsFF82LvOdXHSzUA3dE_hA4x-SkY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-19_09,2023-06-16_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Gowrishankar Muthukrishnan Fix order of ECFPM parameters. Fixes: 76618fc4bef ("crypto/cnxk: fix order of ECFPM parameters") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/crypto/cnxk/cnxk_ae.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/cnxk/cnxk_ae.h b/drivers/crypto/cnxk/cnxk_ae.h index 47f000dd5e..7ad259b7f4 100644 --- a/drivers/crypto/cnxk/cnxk_ae.h +++ b/drivers/crypto/cnxk/cnxk_ae.h @@ -723,7 +723,8 @@ cnxk_ae_ecfpm_prep(struct rte_crypto_ecpm_op_param *ecpm, * optionally ROUNDUP8(input point(x and y coordinates)). * Please note point length is equivalent to prime of the curve */ - if (cpt_ver == ROC_CPT_REVISION_ID_96XX_C0) { + if (cpt_ver == ROC_CPT_REVISION_ID_96XX_B0 || cpt_ver == ROC_CPT_REVISION_ID_96XX_C0 || + cpt_ver == ROC_CPT_REVISION_ID_98XX) { dlen = sizeof(fpm_table_iova) + 3 * p_align + scalar_align; memset(dptr, 0, dlen); *(uint64_t *)dptr = fpm_table_iova;