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 9F9D84555B for ; Wed, 3 Jul 2024 12:27:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B6B342D7F; Wed, 3 Jul 2024 12:27:24 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011058.outbound.protection.outlook.com [52.101.65.58]) by mails.dpdk.org (Postfix) with ESMTP id 6CDB042D26; Wed, 3 Jul 2024 12:27:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TQ4lgaYpZC4Qz1bSkQs65NUHpP18ED2/g4JimNCwaXfLTi2eOimE1gcswUBrwyTIaJ0wBSjk2bGPhCzoa85LQGY35KsGYEbZDOZWA6mGLWziTOU5XHey3dTqCyu+ob2Ui+yyGefsaovw8A90o+TZNL/Doobb6hbQrmMhPJ5sA6gpFCAn5Q8IVazVGDvLb4hpqkyPUbkRY8xM8neQY9WaQUts0JQM1WucOazHKwYxD83qjx3GPzBlZ03NEfYKwfmmMl6px/7w4h4umTpIP1J/EhuZ7N1adac75Qw7j15Eta0HyZoTyuwgUlyUrysr/OMOoc26Yo2H32En0IpAoLGVPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=QF9JDx15/NKxexo1xyjwgjTmSOHCFvlXo8lmRdKgi7k=; b=fsPCZpJJhHDAsSGlJlmoZdE5oH5GVDsaJe1pP4yx8BQyBvsZ5D7XLbaF6il7ZqiFvwFJd+Ai5GB3sz6kszVJ5k3vwObG0zdGZp7OFwOhKw3Ki27ZR42l29RUar7IBaIW1zf0+2tW5o/zo6Klkf7Z2GPq7JH7kB9h2O/XTd4NINfpUHy+3IkZqOPTH46CtVQ0ju40URO9nrCR/WEkssBiQ1d4Wyep2zklw5cKBkrFCYSySthBJ+SQL2Iffrk3OV7R1UhIG+LFPzB7iNB6s+tTIf7N5DPRB29E90txuAyUbQGUmHhDCvl0aetb9aEwHKfG5w/EV8OVAQIyEI4fuHdUgg== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QF9JDx15/NKxexo1xyjwgjTmSOHCFvlXo8lmRdKgi7k=; b=O+jLSSRs6ykQ0EhLJGFOnBABI8kPCuAdGmjwtd9Wx8M4ZY31ia3GpR02PpGXIGeIEwIb/avm/o1l/SJtXMQV3vRN/aJ3GHKsEAYCBv64PCM/mbxR4AKMiyEi5htK4m7tbvj5FokyiHRKP27hbuwcYRaV830qvL7JlDFCEc+bu2Y= 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 PA2PR04MB10238.eurprd04.prod.outlook.com (2603:10a6:102:404::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.25; Wed, 3 Jul 2024 10:27:20 +0000 Received: from AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325]) by AS8SPR01MB0024.eurprd04.prod.outlook.com ([fe80::c634:479e:8f8a:a325%4]) with mapi id 15.20.7741.017; Wed, 3 Jul 2024 10:27:20 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena , Akhil Goyal , Vakul Garg Cc: Varun Sethi , stable@dpdk.org Subject: [PATCH 02/11] common/dpaax: caamflib: fix PDCP AES-AES wdog DECO err Date: Wed, 3 Jul 2024 15:56:40 +0530 Message-Id: <20240703102649.3096530-3-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240703102649.3096530-1-g.singh@nxp.com> References: <20240703102649.3096530-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SGBP274CA0010.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::22) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|PA2PR04MB10238:EE_ X-MS-Office365-Filtering-Correlation-Id: 05c3147c-c226-4604-8577-08dc9b4ab844 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|52116014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?3T2GktTnNFZttfLE/9BB90X4sJcxbamg4IyXW9odg5peBq0ihk3ftfG0QJ79?= =?us-ascii?Q?sMIyXZKySUDkbhLlukqjjLOvi8i67PzhI3FioKd4iQHx3+/3mVGyq0wq3hsE?= =?us-ascii?Q?MMbykiS1FZYCngSdhhrWthaHTco8drxD7VY9vNQJk+xYqGqfPgKSjiOn/9FU?= =?us-ascii?Q?2mzNvF1PO6ZunLoZXlBFSDAuRMT5mVvMs6UAG0X0b18yMkjrEwsoOnb685N4?= =?us-ascii?Q?gGWaFi1TgA7JaZBUPRCMgBN+2q2mcaS+bLr5G4Wj7Q9kNu7GhGK9UebZmUp3?= =?us-ascii?Q?GMTxoNxPnu8Q/Q0RCtqTz7WVd7lRjbQxd7Tg8lECT97jYtx5eU2hSVIxtLic?= =?us-ascii?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zgQVjgLuQe+/KQL961yxdljAvhQ?= =?us-ascii?Q?6yrLsWCd/vFX2d6ua7JmjBzuewr6pDexN66KfGnwWASu7SNvaH/cI3po/wLK?= =?us-ascii?Q?uMPu74KCJINnC2nZZF8G+J6HZxB7+yf0t7H0LPIUR7LT2Cw/HK+pDEUwshFc?= =?us-ascii?Q?dzi5DDQGN1oRcye+xmUlFE9rtDfB9FBepSNl+A+Wv4Kan4UFAQ=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)(1800799024)(376014)(52116014)(366016)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1CQFaO+/aklzmo61NoIRbldgmVFy8tHHxYKYHni7gQ292TD+C5HjSZ8kh2HR?= =?us-ascii?Q?4VsKdgW0NcIxlEX5824GtxbBc0p/QuL7zXL5pzicPFALzJvgSBcWDwGTQfQz?= =?us-ascii?Q?NI62Y3my1//2UfcJiQPBLBG8bt2C3VPRy4kZtxHb/Dsf3ryMylkFkav1oN88?= =?us-ascii?Q?lLk11MT3uMtKxHAM26qOmFnqK1QGmKI9t934ZiSEuxsVuCseMb5e8sFkeqXL?= =?us-ascii?Q?jKRIf1D7U1D0EhD4NyjY9Z7QJjoYJMIrMLvl8iStm7CUQQYM+ocVTdS5EdON?= =?us-ascii?Q?d5WHJiiJsmcWyDgzNgRMWStB8Dic9wNukVwBjD0wyiG9qGTb3LNzz7+lVMoB?= =?us-ascii?Q?uF68I/Vkd+BXLEcV7Wnd97mimyblmZKHOeGgn+qDvec9QaIrsX7mnsTqJmzK?= =?us-ascii?Q?N3HnHOcuq0PKNkmORYHyU0BlN+xs9O5O3XJK841HNQyt7rbE+mZQ5p/x4zoR?= =?us-ascii?Q?ljVn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TIvMKmWwIZlJT/nG1E4d?= =?us-ascii?Q?8lrS3AIeRi2Xd4sK2KPtTVtrv/jMWfdpv/XRn7lza57auuwJITduGwsbdo7T?= =?us-ascii?Q?LNyxah7ZIBh9FobDYOW91wKm/CTARS0Eb0qAuphKPTGWt0E3wgEfa2BXXjgB?= =?us-ascii?Q?nquzzUNwLR22GGeTpzfy6coa5VrPd2CVddNVyhoU3h7p/BU9LOKgVJavZORA?= =?us-ascii?Q?lmIUzhoBeSe6x8GxTtHvnHitGet04F3LIktveqYQ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05c3147c-c226-4604-8577-08dc9b4ab844 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2024 10:27:20.3738 (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: H+5yfd4PkVfQ+fCd9L41nqPqVWVBno1akPwuF0mmOgFtK3enxjvDvJntrbfwn+mX X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10238 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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 --- 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 7d16c66d79..0ed9eec816 100644 --- a/drivers/common/dpaax/caamflib/desc/pdcp.h +++ b/drivers/common/dpaax/caamflib/desc/pdcp.h @@ -1023,6 +1023,11 @@ pdcp_insert_uplane_aes_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 | @@ -1070,6 +1075,11 @@ pdcp_insert_uplane_aes_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