From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3BBF545748; Tue, 6 Aug 2024 10:42:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4443740E2F; Tue, 6 Aug 2024 10:42:00 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2041.outbound.protection.outlook.com [40.107.247.41]) by mails.dpdk.org (Postfix) with ESMTP id 1C91F40E1B; Tue, 6 Aug 2024 10:41:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nfoZlUKwEgva0lB6i6IEw4wNjDCfCJD5nGAZOgDJmUi3XbWaKgSxbViHa0dkfLCMn41r7h+x669tcK+BOFP+e+X1wEwJDITuqv/vIWM556TVeTgySV4UtFtcRxqPkxtu+xc8qhrZ4qMzxrE3TzsCU+IeJULn5JPYbC7+f1hJU+eiP/1yn0kwxL1N8YDg2Oso6o/kBoWuewzbSIGqoFsfdYFvCQb0NV9i89xCYGvkx4fG9AT8kscMSXN5VgXb8kQQGlCVY2zWs4BZpzLAvStfiW6wDDoc3SZB3wI6KcOgmCgfsMeMK2fZoxGyeZV83VizO4+mWJ+2bhjFcjIiMOQM2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=F0iwTzpriYk+4DoSl31oF9/3A+nDdQRsqnvoVWvNMfA=; b=QwENV8kNA6CCuqqIXgOfTRtuT9NH2TyMJKtWhGQICS/2AtuqbJv2OkbrrcAhBAynsi07GzvA0HLTAmQ5LvQvcaIMOFCTrjr77bCtShCuXnwwWutiVnqUiAhDlgC4fK82b42IEDm6FsJ5g6JvByFyTrSmlFrn870KtEqnimhvYxRKhrNW3VXf7VtP4sciKihbGE10vKN+7gbB3C3/UYS5Ak8lf6WDeQwCb/L68YZRDwK4wMbyDKZIpXn5faxdqRa9Amvy4fQKSi0ol6HOYHkqgqmaMOQNOkZDttARm0leyOevd16t9IVvf+sDEqafxn487JAlkZZ9VUof7mM+XVuqwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F0iwTzpriYk+4DoSl31oF9/3A+nDdQRsqnvoVWvNMfA=; b=KXSE4r81Pe2GXLS2FJAX07gB135awuDoS/sClbZx/FyDa9Mh+ZVu4Tyj4MFG+VzNvr+aYYmQr2g/aSqnh6EGDDH8NZ3Pi4C+aBOhSrfnTjWMyArWIeQVxxQzRXMdjbWKTcBA60NwD1T222VzfANKaxrmMVtoMPcfBfzg/t73Lt+amnjhpehx9ro1VXYdWtOTNkPdki8zY44ivkpv+HxdMpwsndXnLG4FC66BtLgJkvOx2JBo6hE3kbcXwgSfB2S9tAlA15Fw1wWx/dpOy4lQmjwcb65q8B7KBpDS9coE1SpENy60C26iVzOK7qH4gxEGZ5Q6HxO+3lmIv63brHJaRQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) by PR3PR04MB7210.eurprd04.prod.outlook.com (2603:10a6:102:8f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.26; Tue, 6 Aug 2024 08:41:56 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%7]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 08:41:56 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena , Vakul Garg , Akhil Goyal Cc: Varun Sethi , stable@dpdk.org Subject: [v1 2/7] common/dpaax: caamflib: fix PDCP SNOW-ZUC wdog DECO err Date: Tue, 6 Aug 2024 14:11:31 +0530 Message-Id: <20240806084136.3212615-3-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806084136.3212615-1-g.singh@nxp.com> References: <20240806084136.3212615-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0041.apcprd01.prod.exchangelabs.com (2603:1096:4:193::15) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|PR3PR04MB7210:EE_ X-MS-Office365-Filtering-Correlation-Id: 3dd2b324-19cd-491f-854b-08dcb5f3a13c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?rdbeHRY7kX8Nact0ZP5UmgffaR4tcZIZIttY67ttqcRzO93rgE+SBZ6V2mxD?= =?us-ascii?Q?7/sgdLY6QikKScabd2BewV6sysWZvx2ay3vFpZWL0PQmCnLWYDbNwJJCL71f?= =?us-ascii?Q?CaL5eVIUpL4MaCgkcyo8awPH3jNq60/f8aOdEsjdCcsrBHCqbmh+P1DwcTKd?= =?us-ascii?Q?Y+76h4bkZxTaL5cTU93gFRC576TWJevSyw77zbaqjz1Ip0hbGgeC0GvI+zk0?= =?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CBb3jNUvlD31JBsAp09lFiu1Qx4DcURuxOEW?= =?us-ascii?Q?HcV6kHoNoxml2jNdjYE1P7u8O4jdZF8xNUAX/bYjJeV0xgXoQoYVcmItMjp9?= =?us-ascii?Q?oXXv19NeXWoEmNvKfRKx8fAQ7vvhVqbh/45CBCaaiNgG40uRFuaPhM2EtoKQ?= =?us-ascii?Q?S8+CNnAaHdt5KeAWs/jSgi/W1QOEUpzArzJMHKQLt2uTNT71F2Xlf5+G/Y6E?= =?us-ascii?Q?GbpH9GltBv3X2f6fxTiQPD7Fu6K4AmM45ypZihaBjG4o9F+AETGwJIExIkfO?= =?us-ascii?Q?A0ZATh4JixapeKlQAdtVzkfLx6VihNEgzxebOHc9GUxr43wHIA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8SPR01MB0024.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TS/XnWgCHxO/JlYk0Lm3+4vmEGgrT0XQdEXNpQGDqYl0xu8IuNitLnMlkiel?= =?us-ascii?Q?77KF7rVqqcY15W0xpoYq+wwNgccCMzXAQ2YAL6fzIC8z3eN5xWMSjUR7XQ+G?= =?us-ascii?Q?np2JptOb8Wh7/4fHvxRNthq8pTihU9WfutF7UptDEcsXcC2ELYrEvu8LEkia?= =?us-ascii?Q?1O9IIbs9/+5a6s7XRTTZcu6t2mSxB/9h3zKMLMLwP3oCx7Gzd3HgWzSV/TFt?= =?us-ascii?Q?mDYgp+jj/nZ0jy8IzKnG73tXnOIkCwPZGs3dWDpj/kYdsKoLiGVAUfCPeeWb?= =?us-ascii?Q?xlPaU+66rfWyB5VgDJ+yEuAxdgxzMJd0u/Ce6kmM73XkRZZJ36gi/G2F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nOBUPND/6nUaiiZ+oAbU4pjqJQ?= =?us-ascii?Q?vVk3coM+OvSW+chFWMpnGu4iVDdApnnc3piyAakwLg3OgdJ9XWG2TD2JVEEK?= =?us-ascii?Q?wQkZIC6fHLdVHuTg9Y1WjjY2tgbeud/hm55zEqzlqfB7ibqryEb/s6zZ+4Lc?= =?us-ascii?Q?MrVTGEuRqT33q+HRRWplLTW0mXKYLirAPsS0dIK/W9l4oxWFJW6wTvJhxdKn?= =?us-ascii?Q?7Bzf6oAhbDm/XbOpbPfh8awpleNfDNLsogz8lzXxOSb4BNvMwq1mU1J3iZKP?= =?us-ascii?Q?ir+WpjHd/MVHSw4OVG+wwt4bdiGOe4A/+0QIiDah34ttYyq9gluEHn/ZkxPC?= =?us-ascii?Q?L9/Wf2hxlGTy1FdvPPg=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3dd2b324-19cd-491f-854b-08dcb5f3a13c X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 08:41:56.8199 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 65NWsanMIz1sYlWotgd6W75tyk/LjRqJjntcC8agPNFd/LZYgERbukhdZE01WPox X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7210 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: Varun Sethi Adding a Jump instruction with CALM flag to ensure previous processing has been completed. Fixes: 8827d94398f1 ("crypto/dpaa2_sec/hw: support AES-AES 18-bit PDCP") Cc: vakul.garg@nxp.com Cc: stable@dpdk.org Signed-off-by: Gagandeep Singh Signed-off-by: Varun Sethi Acked-by: Hemant Agrawal --- drivers/common/dpaax/caamflib/desc/pdcp.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax/caamflib/desc/pdcp.h index bc35114cf4..9ada3905c5 100644 --- a/drivers/common/dpaax/caamflib/desc/pdcp.h +++ b/drivers/common/dpaax/caamflib/desc/pdcp.h @@ -1220,6 +1220,11 @@ pdcp_insert_cplane_snow_aes_op(struct program *p, SEQFIFOLOAD(p, MSG1, 0, VLF | LAST1 | FLUSH1); MOVEB(p, CONTEXT1, 0, MATH3, 0, 4, WAITCOMP | IMMED); + /* conditional jump with calm added to ensure that the + * previous processing has been completed + */ + JUMP(p, 1, LOCAL_JUMP, ALL_TRUE, CALM); + LOAD(p, CLRW_RESET_CLS1_CHA | CLRW_CLR_C1KEY | CLRW_CLR_C1CTX | @@ -1921,6 +1926,11 @@ pdcp_insert_cplane_zuc_aes_op(struct program *p, MOVEB(p, OFIFO, 0, MATH3, 0, 4, IMMED); + /* conditional jump with calm added to ensure that the + * previous processing has been completed + */ + JUMP(p, 1, LOCAL_JUMP, ALL_TRUE, CALM); + LOAD(p, CLRW_RESET_CLS1_CHA | CLRW_CLR_C1KEY | CLRW_CLR_C1CTX | -- 2.25.1