From patchwork Tue Aug 6 10:27:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gagandeep Singh X-Patchwork-Id: 142931 X-Patchwork-Delegate: gakhil@marvell.com 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 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> 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: 8Uaargws1rQLGz2HhViDMa7OS3QS3/nqomY+t8GZn7SN2n5ViCqwR0QkzuVjujddfQeh2u16LR6EK2OXZH5+29dpknaD67no9yWhBR4mDXv9pf4W2x4ZpYCXBSH87eKYITuBAVeK3/Vk4dxQEJ++fpb5Xor6H5Ko3JpeltE5YHew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dY9CjM4IOa2B5uAHiuY6FW4nFSeW35mF4Dm5UXxxVqpw6fyOlHFL5IR0WboCMwAOcHi8sXamMDLWe5GLcZ66gp2S1ygFPk083yJ6xOWdeWDzddoZttC96c/nd390NnK/hwj3tKOFxPPoRof6WxO7hnaUS/h6ey5LVCN7USjXGA== 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: g4+qTgU8Zy2ndmaocJEWw6+OhlDdwUGHWgZqgN1QVEv/SkpTzlfhj7zzoVBmxzHrLtxAdvZf7NutL6N+L/jvtSmiUcPPCwv43S5Tbvm+J3podvbOyUXVGsZKyM2YDdhr5PRX7jGW6it2zkftZ/OzptxVURpTn4Ugmoy+PBL3R4gHDxcf0rWptyCrFjBnO8+rO9HS2ynHjmm20yh6SQ7Z5yoX2QBLgb/bOCTd1e8pGCnDzZuRMt+W/eZ1Quf9Xw4SEYmt6x2erVjb9fVZjSt9Rx/hx/lf9aJtgFD+VVR7eKf7a1lluqdrJXzDzJ2CIcVh/ssRRhHDx5gfZ/pPNgqTe8Ed4C3OQemOFmZpp9VbdcP3jW6KxFbjgfeMIocwGnHuIr2jlw1WLh4Oe7b/gVEddfaM4T9rhBxavOqnMcKVYbtB8RSw3h9s+rAtjovENYDGy0pnYP5GZzt4su/LZs01MJ/T27cXAAosUbSgNpHS+0pnzMNVWeLrK36n5/UmNI8BScLNCDW2Mi3lXnUB4YFTd5WK/0h0IdS6hwdMwQiwQKSAvYtp769F5rhC7rzR+D4MvmkIEkJJZJfXNonwZRkipGzOAOSu8OXoWpCqFIzQUllkyzMN8ulDyRtwZ+aVmoLw8zmgieXYTw73SV+7MgMaJMKr2hilK4n6syC/p8NBMKvgdoyZlb29f+KToFISlaskTyRfkTCtfeUE3z9iOv91/lx+k1DsVdffcNXdqAGIXczQFuiRRd4h4XMLZCn2NY+rKmV76CtsXMjmzBgQXatN365k0VbA595uYed4PSKlYi62Xxj5kHpinGrBgmBkdkv72lTS4YqlxA4mMKuE17jkDKL6mL8fqRI15Dh+NjIAiYrA8VL1TetmuL70GP2t+i5O1G8B29ca4WhbOxDkgpQiq2F7Ek+12eC54z9mG2vCdDvh0y/tX4F527a7b5qD+XXYqw9FfvsngpOzqHpSS/6AVM56Kbctx5iszdErbYPa66/VfcoidsFOqyAdCQRgannXycipzSVXfebwaP7h7h7HlJsv+5fo3LPQHIpJ6NtN4n+DftMO/pST5ft1SP88CCo9S135GSeWcn+Yta0tKhij49MM5kYMU/8YEkwMxAi9oprcrVV7QAjGigXg1f8xoFv1ZURjmtsXegtA304xa1vM8tUaiFOC/0/5nhjOxWS4owHU3kkO1Qi8GpLYF+zcriOunPulGBoHAm0HrFL8QbCIlrFbOE+nNI1MS4nQ9jye+KLXialredr2IIaLqVdsw9GjwJ1OgSpCikAL8xxVXCW8X5zCV5r2k1253TS28YJB1+ydal3LFbjQHyzTdMw6eHzRT5+VVZVU7hGbxFs0V512v6zEMMNfJMITUiAf/x4cBtG8zajIEF4Gz6I349xSqNbElDnDUuMcs8lcqzsgnU79GTHfcQLCdaAZFYQWEdAVndyFAT+2UEQ5ZHfXux9VHNOxQMGlyL9q/+UCcr8sHLfztf2MIirIczY6/E/LpywmKf8OuS+n7LBtJG3Zo3QULxZo+K7Xci77FB2xQx58GVOaX3mxBzbtwt5FJnx6C07hsnODYSJ0H+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 |