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 45A494555B for ; Wed, 3 Jul 2024 12:27:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2FC3C427D1; Wed, 3 Jul 2024 12:27:21 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011031.outbound.protection.outlook.com [52.101.65.31]) by mails.dpdk.org (Postfix) with ESMTP id 56A9541143; Wed, 3 Jul 2024 12:27:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d2tPKghmT4P/C7gIr5fsZixt7jDfWb4pQ+bOWGsPLKggkki0rIG6IDlgROXzRy+bTPiT0D6J7YrViA6TG2BwZeQs5TM/PEiiEi2vKg8OZtPqxj7YGVVq/J8fqAH6aQLvkFJzZaw0eRXI56U3wViYaGRKy5OQvH632TLnI/qgOfC1q+cWlojARWX2T8BJJtyRLvGjluRBLHp47uxKyLErQ5KKAeHO/HJucN+x9VPJqJLCFhk3AjB5uvKRPLTPqtUgJilfSY7FPt+CED2htA32uTuoDzr7yK2iUHmLcKjNg91FoOacUE3axeDgBDosJEK5C8MWgZ4NyI4BqN8to6oTLw== 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=QQbNs/+kMHkSw8dzaljjRJfXVnQ1oQ1f4ZibFaI3OXU=; b=CWYu8J5bdt6igMm5QZEejic29DSdl07iLeFb3I2SZVdohw+yJdiqe5vAwD0X7e1q8Su8aePkgm6j5kqKS/IU0Q6iUNnbe7kzc6kta9xROfKxYokIxt5KD66Us6nedrT4kEWiX1XapUt5kqsgOToDq8IXZgVsRKRaPmjYZWPdsRvCRVI2aMhyQzT3fLg5uI+nh9furNtyvJMD6JC7GxWtbzwHy6yS+zjlgvJCj7LktcbFoYAqpcY4y+jl2SNtyIUFq92XhUxnIymFFTookvXt97KQqDjWwytH6GUgIqnG0jUnM/Be5NTuT1lJvfq6zdiAKpCN2jPYiypW3LtEwcox2A== 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=QQbNs/+kMHkSw8dzaljjRJfXVnQ1oQ1f4ZibFaI3OXU=; b=jDWnwFCNUAAsDhvI716WB+XCofDAhf1m7QrbSb5jP9aEGDQ7cyMWpKsRGdZmq/3iWmYEAaUxVedcCzldX4iE/zB3HzFbkVnfZi61k4kLEHAdXfkTeQR9M+l8Afa4LDNyBq8SbFjMacZ9guWhcTgjHR6OhZctopVhllLu77LQ5TY= 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:17 +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:17 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal , Sachin Saxena , Akhil Goyal , Franck Lenormand Cc: stable@dpdk.org Subject: [PATCH 01/11] common/dpaax: caamflib: fix PDCP-SDAP wdog DECO err Date: Wed, 3 Jul 2024 15:56:39 +0530 Message-Id: <20240703102649.3096530-2-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: 47bf5206-3fd5-4ed5-fa82-08dc9b4ab68f 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?nXWsvCvIv8RxMFOa9TSv0nJRtmybMdJcKyQ1dfhxTD3D0jrPDboRMGHN31ac?= =?us-ascii?Q?/MHwiOSC0RNUOQtONnhmVXe9SJ81N49qN4RI/k4OZUopyMGuOFX/lafkHeo2?= =?us-ascii?Q?IenOU/2ea9dLCB78WhVW3OFwrzwLYTlfRtK+GXWbj4J0kbv3AY+gee3wXxo5?= =?us-ascii?Q?YW1ckh4wdlPgSbKmnuEUDa4tkOlKDnUfPygAsdbmFQhZ4XTUw3tWlG9m4HMw?= =?us-ascii?Q?sUpG8ssepDkoYItpUILTPvNq++98oRAB0hWLYC8OsW80+X/K40scXTyVVq3e?= =?us-ascii?Q?Ty/IQ6G5dc1xP2tSukeY43gMb9kd6wmGVdED1dU2mUnmWZl6jvKj+QTwLUQW?= =?us-ascii?Q?UW3OwwVFOXpS2TNuX6p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Q?X8h/5wIL+dRY1G/mI0OBA8ad7u4/xGbV83Z9T2p/x+RpeZzy29p1/Fdr+1qy?= =?us-ascii?Q?Bkud76cEN+bxWs6uqHqNOgf1N0APkH2eWXdJDyIvjoEtfP78NoiEEDrMWBNV?= =?us-ascii?Q?GKD+y1oDsOwxbzStWgBXkM8c9b6EzzXluUa2aXP1+hHbVErBnA=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?Aye82nwz2/TqoIgUDzh5pfct3IgMaKwTPbr/o98yccggMl5ZrwFpAKOHzIJu?= =?us-ascii?Q?+UjIegZlMIWi8bPyNCSzSZgGy4iLMrnYmQA3TxIda51hCNfTI1Ss4WiA/k4X?= =?us-ascii?Q?78OKKXMIZzDga2Ctplxs1+Yv87AQo4M5EarZGvG8Gxuooabeovs9178IQ2ge?= =?us-ascii?Q?pOyk10Uetih9e3+ReAPwUX42f2OTQ3tYJyUdzCSvFxT8gP+6awXAY++qdw4V?= =?us-ascii?Q?E81I8MXl3p5YgQNRu1uw1LRVg+4Z4eYajQAdaM3BEEby55k4ej0IZJmYecPj?= =?us-ascii?Q?3OBZzC2+lc0u5nQIPnbYfXNbfKso8FoHEM4Hn89nz0UWZy+GHK+yOLKl7IKU?= =?us-ascii?Q?T8mC8zub+gD8V/X/8bZ1MPhmGurjw+NOeftamTvHGxJegjHRNtpY+CcUXm85?= =?us-ascii?Q?UJ5PGQ+q0yZ4tx4MRWNmNbzfMjQ548jmPQksy/+d0SW6KSGuJo43udtl9WZg?= =?us-ascii?Q?7EG0aSNN97naPxHOovpdmlDHL2hoEsas2LHBl77E73m6p8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1bgef0zMf516dFgokzn4MJKk7IlhH/vz3xEwciL9ZZf9hNIrq?= =?us-ascii?Q?+k3BF+URJJKiEQqLQYOQKXL2EC5GAfjqbLdZrEwx0MByusm/2ow2C2QUd1k6?= =?us-ascii?Q?9/evHRV5uBOUDDk7sdR7Sn4R1Qz5I4QHmF/oVp1qRIfloDcZLkLG0GPQ7ymX?= =?us-ascii?Q?T5qi8iUK71aEt7jELewKvSjFHUVEPOeoaGMGu59B?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47bf5206-3fd5-4ed5-fa82-08dc9b4ab68f 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:17.6174 (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: rfl4aLzKQXr+6zKROELgaWxhL/3PEFBzmUsiJ+3l+WYFUDu5N7TQyuRRNboYR9BO 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 Adding a Jump instruction with CALM flag to ensure previous processing has been completed. Fixes: 3ba2e519eafa ("common/dpaax/caamflib: support PDCP-SDAP") Cc: franck.lenormand@nxp.com Cc: stable@dpdk.org Signed-off-by: Gagandeep Singh --- drivers/common/dpaax/caamflib/desc/sdap.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/common/dpaax/caamflib/desc/sdap.h b/drivers/common/dpaax/caamflib/desc/sdap.h index b38c15a24f..d41bacf8f9 100644 --- a/drivers/common/dpaax/caamflib/desc/sdap.h +++ b/drivers/common/dpaax/caamflib/desc/sdap.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright 2020-2022 NXP + * Copyright 2020-2023 NXP */ #ifndef __DESC_SDAP_H__ @@ -628,6 +628,10 @@ static inline int pdcp_sdap_insert_no_snoop_op( /* Save the ICV generated */ 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); /* The CHA will be reused so we need to clear it */ LOAD(p, CLRW_RESET_CLS1_CHA | CLRW_CLR_C1KEY | @@ -718,6 +722,10 @@ static inline int pdcp_sdap_insert_no_snoop_op( /* Save the ICV which is stalling in output FIFO to MATH3 */ 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); /* Reset class 1 CHA */ LOAD(p, CLRW_RESET_CLS1_CHA | CLRW_CLR_C1KEY | -- 2.25.1