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 ADF834574A; Tue, 6 Aug 2024 12:28:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B59FB42D76; Tue, 6 Aug 2024 12:27:55 +0200 (CEST) Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012005.outbound.protection.outlook.com [52.101.66.5]) by mails.dpdk.org (Postfix) with ESMTP id C083E4014F; Tue, 6 Aug 2024 12:27:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GjpgKhwFrjQjGI/CFU9slOheJ6Mv6oxbtIBYyYYQDCWWnAZiPqMeZuDOJNqK4Ccz6UhrRea0gkljtriVPDU+I6SchpUCq6gVaqDuJkqY9rba2dN/DIMp16muP5primip6sBGtfNMkP5S+ISGtZA0sY7jTtnAaR/R3bh4jxcrAcgXUqN/dODC2tj5yUSKYH+17U6+iBE8MwXNkEOqLVD2AAbtPFbZOGERSldwAUeXFzp1aH9AKp9ePALIbD0ts3X7nHFsphW5TWnP/wefnhqp3/x3GcIdkuBptAGdoetxvI3/acJFMddyv6ByHRfP1yULYQ3SZ9gkBUQLvuhiUg09DA== 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=yoE71JExsLh8Ibu1yZU/S4n4AwQvjoye3WAgGC0qSnfQAd60kh0Sqw705SCaatjxs+7dgwlphYIHONIlGBwUd1hXkc45OMLCsQ66JiDvieK70+imd2kU3kGq1rkBAVOb/2buuHqdV5FKzB3xpAb6ms4dTEhyE6RnUOviWMRjrriinvYBjA67SqX8PychW7IpSYTo0d/l0ykdIv7UHRyy6N+n1r9Us/qi/t9s1VqiTC4TZtZwMZR5UQ4iXtzPYm4CveX27XCw467Vt9kqVaFNNc5huU69eE3w0QtlCwwHD0kBRpNG1I5tknsyFdn7PrU6HoohVhjMfkWKaPxDP9dgog== 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=Jus8hf75K2triwNpt1r1sI5QWv14CVkV9Wtzbvn7dSZ2xE2VSV5Up4D3fgt+HzXZwmofkb50/98EySHmufi4JHiTVVQWp9ufzqpXF5nB7tDQB93ZPrV9J52nZC5aPQWWLAC3H0YLjliyqbOMN18/AtjFOHniUhhON12NkEhEikWp+BkT2OoKCtMiYe2h4P9RgsRtMiPF65e5+wL4b48mY6E89BJUlLIhbwNVZTu4bDOAeEZW9hTC0Tme5IEClhp/AVEBIXZK0Ss5U7a2UwH9kxzeWcDel8PP70h5YBF+uB9NCV+ba9fiWttG29jxB7nmYZdZJGptrugvCdJumxk2oA== 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 VI1PR04MB6974.eurprd04.prod.outlook.com (2603:10a6:803:133::15) 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 10:27:53 +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 10:27:53 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena , Vakul Garg , Akhil Goyal Cc: Varun Sethi , stable@dpdk.org Subject: [v2 2/7] common/dpaax: caamflib: fix PDCP SNOW-ZUC wdog DECO err Date: Tue, 6 Aug 2024 15:57:27 +0530 Message-Id: <20240806102732.3225536-3-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806102732.3225536-1-g.singh@nxp.com> References: <20240806084136.3212615-1-g.singh@nxp.com> <20240806102732.3225536-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0188.apcprd04.prod.outlook.com (2603:1096:4:14::26) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|VI1PR04MB6974:EE_ X-MS-Office365-Filtering-Correlation-Id: d324f053-1b5d-4e35-0802-08dcb6026dfe 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?8Uaargws1rQLGz2HhViDMa7OS3QS3/nqomY+t8GZn7SN2n5ViCqwR0QkzuVj?= =?us-ascii?Q?ujddfQeh2u16LR6EK2OXZH5+29dpknaD67no9yWhBR4mDXv9pf4W2x4ZpYCX?= =?us-ascii?Q?BSH87eKYITuBAVeK3/Vk4dxQEJ++fpb5Xor6H5Ko3JpeltE5YHewgAlj5b1E?= =?us-ascii?Q?vW6plyqImEkRz9iVSX1QEzN/1DK+8FFwsh9Ff/pfSwUF7amLEBypKfxd/F3q?= =?us-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dfoSgteBschXuY4yg?= =?us-ascii?Q?FPZWjyRykTNu4hFH+M6mauqIZceR9ggUpA+jIVMBfLokGp1LVlGKESI+LVvo?= =?us-ascii?Q?YtUGMMhtMQ4cG5tLcjCK7gosMrle34rTWknBrF+AgFalWmyjuwjQIOxiUNGr?= =?us-ascii?Q?dY9CjM4IOa2B5uAHiuY6FW4nFSeW35mF4Dm5UXxxVqpw6fyOlHFL5IR0WboC?= =?us-ascii?Q?MwAOcHi8sXamMDLWe5GLcZ66gp2S1ygFPk083yJ6xOWdeWDzddoZttC96c/n?= =?us-ascii?Q?d390NnK/hwj3tKOFxPPoRof6WxO7hnaUS/h6ey5LVCN7USjXGA=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?g4+qTgU8Zy2ndmaocJEWw6+OhlDdwUGHWgZqgN1QVEv/SkpTzlfhj7zzoVBm?= =?us-ascii?Q?xzHrLtxAdvZf7NutL6N+L/jvtSmiUcPPCwv43S5Tbvm+J3podvbOyUXVGsZK?= =?us-ascii?Q?yM2YDdhr5PRX7jGW6it2zkftZ/OzptxVURpTn4Ugmoy+PBL3R4gHDxcf0rWp?= =?us-ascii?Q?tyCrFjBnO8+rO9HS2ynHjmm20yh6SQ7Z5yoX2QBLgb/bOCTd1e8pGCnDzZuR?= =?us-ascii?Q?Mt+W/eZ1Quf9Xw4SEYmt6x2erVjb9fVZjSt9Rx/hx/lf9aJtgFD+VVR7eKf7?= =?us-ascii?Q?a1lluqdrJXzDzJ2CIcVh/ssRRhHDx5gfZ/pPNgqTe8Ed4C3OQemOFmZpp9Vb?= =?us-ascii?Q?dcP3jW6KxFbjgfeMIocwGnHuIr2jlw1WLh4Oe7b/gVEddfaM4T9rhBxavOqn?= =?us-ascii?Q?McKVYbtB8RSw3h9s+rAtjovENYDGy0pnYP5GZzt4su/LZs01MJ/T27cXAAos?= =?us-ascii?Q?UbSgNpHS+0pnzMNVWeLrK36n5/UmNI8BScLNCDW2Mi3lXnUB4YFTd5WK/0h0?= =?us-ascii?Q?IdS6hwdMwQiwQKSAvYtp769F5rhC7rzR+D4MvmkIEkJJZJfXNonwZRkipGzO?= =?us-ascii?Q?AOSu8OXoWpCqFIzQUllkyzMN8ulDyRtwZ+aVmoLw8zmgieXYTw73SV+7MgMa?= =?us-ascii?Q?JMKr2hilK4n6syC/p8NBMKvgdoyZlb29f+KToFISlaskTyRfkTCtfeUE3z9i?= =?us-ascii?Q?Ov91/lx+k1DsVdffcNXdqAGIXczQFuiRRd4h4XMLZCn2NY+rKmV76CtsXMjm?= =?us-ascii?Q?zBgQXatN365k0VbA595uYed4PSKlYi62Xxj5kHpinGrBgmBkdkv72lTS4Yql?= =?us-ascii?Q?xA4mMKuE17jkDKL6mL8fqRI15Dh+NjIAiYrA8VL1TetmuL70GP2t+i5O1G8B?= =?us-ascii?Q?29ca4WhbOxDkgpQiq2F7Ek+12eC54z9mG2vCdDvh0y/tX4F527a7b5qD+XXY?= =?us-ascii?Q?qw9FfvsngpOzqHpSS/6AVM56Kbctx5iszdErbYPa66/VfcoidsFOqyAdCQRg?= =?us-ascii?Q?annXycipzSVXfebwaP7h7h7HlJsv+5fo3LPQHIpJ6NtN4n+DftMO/pST5ft1?= =?us-ascii?Q?SP88CCo9S135GSeWcn+Yta0tKhij49MM5kYMU/8YEkwMxAi9oprcrVV7QAjG?= =?us-ascii?Q?igXg1f8xoFv1ZURjmtsXegtA304xa1vM8tUaiFOC/0/5nhjOxWS4owHU3kkO?= =?us-ascii?Q?1Qi8GpLYF+zcriOunPulGBoHAm0HrFL8QbCIlrFbOE+nNI1MS4nQ9jye+KLX?= =?us-ascii?Q?ialredr2IIaLqVdsw9GjwJ1OgSpCikAL8xxVXCW8X5zCV5r2k1253TS28YJB?= =?us-ascii?Q?1+ydal3LFbjQHyzTdMw6eHzRT5+VVZVU7hGbxFs0V512v6zEMMNfJMITUiAf?= =?us-ascii?Q?/x4cBtG8zajIEF4Gz6I349xSqNbElDnDUuMcs8lcqzsgnU79GTHfcQLCdaAZ?= =?us-ascii?Q?FYQWEdAVndyFAT+2UEQ5ZHfXux9VHNOxQMGlyL9q/+UCcr8sHLfztf2MIirI?= =?us-ascii?Q?czY6/E/LpywmKf8OuS+n7LBtJG3Zo3QULxZo+K7Xci77FB2xQx58GVOaX3mx?= =?us-ascii?Q?Bzbtwt5FJnx6C07hsnODYSJ0H+EGT9Frbn7+ZVp6?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d324f053-1b5d-4e35-0802-08dcb6026dfe X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 10:27:53.3124 (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: 2oo80z97TqhdVwN5r+nFNTh4iBYO5326Pl0/+ZD02r87uihUrh1qp8iGYU3FiluU X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6974 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