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 3FAF64555B for ; Wed, 3 Jul 2024 12:14:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D7DB41060; Wed, 3 Jul 2024 12:14:09 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2073.outbound.protection.outlook.com [40.107.20.73]) by mails.dpdk.org (Postfix) with ESMTP id 72E0D41143 for ; Wed, 3 Jul 2024 12:14:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D6H7mKvTbB0953kuw+a5fKmj1PR33pPrjVBQM1HE8kfRW6eS5uJCRocJnTG4CYBQUfEC6PJABqmCCAJBLT4vyjK7EyEw0phhxupRrAU6yJXvtzYRO0MLzOJdoGE9Toi7U+8fDRPgJpc6JKubkZK5xp63cF+DFrj3L3NfSQ+aBwPdVkf0THsQzv0TJnoNZpA3JixgnibrwEJsYRfb6kzWhV6WEXlVIqE3EniQpTUuZzjjppAhZ5JXqpdFKZ/hrgLEZEXwzyaV4VCqJVOiLMTDl4A5oECnM+5isqDDvhADhmPqY0SqTXfSb+w4M+/Adu8d6F4q+qI1uAo+HtAKA9GSyA== 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=XKKBzyDNTpzuLLW83uJqghdAKOi7v8TIcbhwTE5Cx3DluX8h0f/5MOYfSsr8+c+QDMUli+iNfhNf4KlyvcZ1p+EET5lF/aepm/SlLSKbjeu8jXj/hqnizMeDEgPUey7/JXzVVUF2l+INxOLftDOn0VnRpdJSASW2RIEi2A8+lya6edn8E02HDITRxFPJs7QyOLCACKrEHR1wzqsKr4U5wSw6Bmt6vZaH9rRdOQavGroxHiFm6e/DI1NhvWD+HMYRfKZahUE4VRY3W1dRJglMqWL28pv+UFwzzfwaFM0dEb39JvnkbTE+FQzquQHSacL/zlNhleRmSWRi5rTRhZIdXA== 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=Ep/tp5XBp++cRgaYn2OGJ0OgwW9KqlYAwbhNeXiFdUo8xyESQfRAOoCLPgIYHWhVFswAdpgd3Q4i5A2NcHaon/u8EGC1RFbbPvF4htqRvcAk2aAHOsVl+7KpdtJosnngWaDGo44X7gubngO0jxq74ECPXqVwP9RgpsEIJYmKKio= 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 PAXPR04MB9707.eurprd04.prod.outlook.com (2603:10a6:102:24d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.23; Wed, 3 Jul 2024 10:14:05 +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:14:05 +0000 From: Gagandeep Singh To: hemant.agrawal@nxp.com Cc: Varun Sethi , vakul.garg@nxp.com, stable@dpdk.org, Gagandeep Singh Subject: [PATCH 02/11] common/dpaax: caamflib: fix PDCP AES-AES wdog DECO err Date: Wed, 3 Jul 2024 15:43:38 +0530 Message-Id: <20240703101347.3091547-3-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240703101347.3091547-1-g.singh@nxp.com> References: <20240703101347.3091547-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0030.apcprd02.prod.outlook.com (2603:1096:4:195::17) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|PAXPR04MB9707:EE_ X-MS-Office365-Filtering-Correlation-Id: 52f8a7c6-68cf-4d08-001d-08dc9b48deae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?X7mUtN/uAsqnaLRYsFWfxRSZmoxODF19GYfdjNbLE65KCcZB+Vv/ZVPvvF+p?= =?us-ascii?Q?G27wsuqr74GWBMLKSv9p3mV4Q9BcVdQfSYdgKnN7M8vsEaMgi9R/hy51kCT2?= =?us-ascii?Q?PhDPrrUtUx5R1WExhC6ih9ET2BeqtxRMElO5k72bBwPut5UPL/JvDJJqJKkG?= =?us-ascii?Q?sOqdntKxCAOzPK8R9bptxAWz5Cgvbuoha6QVIbJ8mD9IhJGjwCEQvh6CGXWf?= =?us-ascii?Q?Ju1V3A9i2aA66N38z413YKmc9MrecpkBfe0UWpYm2ZalwV+1i5UURcHgDe9C?= =?us-ascii?Q?mpfE6aCuGv/sedwJREBfzfa53DXYStAlhSNWcBLB6wfjFbd+xygkNIYxD8B6?= =?us-ascii?Q?1fHw5VfvYsrZZdwE/PPQ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ae/?= =?us-ascii?Q?fLh+WdCwGTVy7Y92hamvSh3/OyQpLLeQQp0+/+xsbpoVIiQiCm06eF2kIwSr?= =?us-ascii?Q?gDjFljZfi0mr3Z4niilbBrwovQc7HEz4cbaTr7Mj8nHzrLT2lsZ40xMhOYH/?= =?us-ascii?Q?AgLvvsP7hmSWcZDraQVPPi3HbSGbmi7vGLzFCxz53K9abklm7g=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)(366016)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?5SEQbBcCngPGUiaP4zJIhPfedFjZ0UqTqbg7uhDO4bvokhF8bRCxXVxPCkqZ?= =?us-ascii?Q?brvundusp/rHpno0NITpX1LV8M0meNaEd9hUi2ABS87W1SBBytUg19JP3BZc?= =?us-ascii?Q?z0ssUFihDcVLzk4pUrN5B2+b4lo4KVJbaaW8gXRKVGMWADSloVbnW/EXKcum?= =?us-ascii?Q?zqCcfPkHuQmhrUAeVq86Xn4X7Yil2MCahSfCNuSCyXCYE7vqP9jlLMnKUEs/?= =?us-ascii?Q?KtFllA+BEGwXWm1BTv6xF0GRzj5GxqrZwP+n2wEI4qnlBIdZPRUIbQhocpng?= =?us-ascii?Q?Mf+MSGWsAErTIWIE/6Ys00h2WDDTwr4no4YxuBglvywR+Gj9Iq4aLPm1LKbp?= =?us-ascii?Q?O+1U1XaWA+woDuhkdu3GMHVv3E29rOiaDlt0iY+quboscCfVffyEoEDALnZP?= =?us-ascii?Q?7amBPeqh/A6QZgKsrCOM43YDT5moZLcg50nPHLLLPc9mslF9P2mHfRC4fIMi?= =?us-ascii?Q?eSGQexLar6BcXs5I8uCXu1gAoYPP3KY5Q58Q5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3OTGtRH1LiAzr802oaITBLei7GiXDDFiAmNYhLjoHzvTFXevXTZ?= =?us-ascii?Q?DrIMZGE+NuNQ8xVohbhiSH+NPvdMbKGYFeYrM+8Gwv0d6kUCTpCajX9JVRdg?= =?us-ascii?Q?WGk8kkx8rfmbLAbPzScwXo7aHLJFRuKUK1NLaCr8n1P01hfq7m9oM4I6Ak7N?= =?us-ascii?Q?quMqQmYJVXySDINsz4B5bC5rUIHGvnOtU5+4mEnx?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52f8a7c6-68cf-4d08-001d-08dc9b48deae 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:14:05.7102 (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: VBWkQ96cfoPP0ewLrcheie5a+HaGGy4WZ+ULv7Oct04Rq3kPNlKrzx6uVVsWNFtP X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9707 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