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 139C14555B for ; Wed, 3 Jul 2024 12:14:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 101C041060; Wed, 3 Jul 2024 12:14:07 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2074.outbound.protection.outlook.com [40.107.20.74]) by mails.dpdk.org (Postfix) with ESMTP id 33AE540E7C for ; Wed, 3 Jul 2024 12:14:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G+RFe+0+rETQXEmPMyO7FROGehbH7FilFC0uQudwqdJEuIObS6XsCGIEqxzfC+/lCXCWfror1duJz8OHGPgmngGylBMLqyQsypD+fqdYcxgpWo0MGHny5vWbeBylSaTIMJhliOmXFwtRRxI7tu93dr/vF+HU97RrF4mBwv0W3Rz++cYnzu+yq+wUctdp8ryLhCK9U3h3fIeSXjJZu3fBvDJ3Q/QPJFDStt91g03sppB0Uoqste/jMA4h0oJyGVmPumjb/NB/cjN2Bp+OteO9jfb6SuboohLCj28SbRvQndp3NbYaJuNeYkZyfFyfX6HXhYuYtRww03/yTVinUnHvbQ== 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=kUhYDbT76LgVYyZlEPab+3lfLdJzHPk+Ru4KFSyaV6dLR8vm+OxPDUtvWfkUzr0HdJAwvPQW5k+b2lMwHoyE3kTjD2gqhWegVSK0lH13w2aHTRxRcmILvK8c6j0NZkYf506Cik/Q1hvCStpWNYpxo/GgsVcaNMvF9GXg74eDb65kajq57Tk8IGOxjaYnG2JZenoIUrj0RBlF1pa0E+CYsH0gcRm+bm035o2oVAFxYygt8XMzHYv02L6FJPKBjm1FXtKizk4QtuYuPxB1uNaVszW7S2iOrHT3DiehnHQKb+avalqQyioTp+qEOJE6ZSXJgJZqiuiBU99ur4nx0coxjw== 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=qUlAOZj4waLpWNtHG90zNWfjMukOxZEY1yXmEs2I62ESIM4yQjTNwXbI4t3k6WAd9vQtqotRc0VGOpvOisWABERSkguvzjsSrt4VUcKa4qLIjEoVh8rUiLQ8nVFkJVpg9/saIModoNgQ2YQd3N2vLD/Cv+co8ipubc5OrpzAUkE= 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:03 +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:03 +0000 From: Gagandeep Singh To: hemant.agrawal@nxp.com Cc: Gagandeep Singh , franck.lenormand@nxp.com, stable@dpdk.org Subject: [PATCH 01/11] common/dpaax: caamflib: fix PDCP-SDAP wdog DECO err Date: Wed, 3 Jul 2024 15:43:37 +0530 Message-Id: <20240703101347.3091547-2-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: a01f27d4-5365-408d-12fd-08dc9b48dd7b 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?B3Z0z0JbnCdsXRkQQ+wiX9Xs0jBZYbKF8dkE8bvImA7QWWu1Nu6cggLSZ7zZ?= =?us-ascii?Q?oKtR2cSF+/qmKG8Ktorr1sMR2KDM+Zb/JujOZ0SqjQjHs8UjMPZOHcjp0mfB?= =?us-ascii?Q?/EzzqKmmajr+e41ttV6DFrWeoVIri3Mb5+Gh1Ob/ZRBRIEswt5y85cZqyD1m?= =?us-ascii?Q?/O8WlnDf1gFx5aO8j/XMfcERdYwP8GBdO6MDCUWQjTiCw1ra0LvWnnRGI1SX?= =?us-ascii?Q?wRILaTqmp3ZHjFcBM8wueMejSHOhZsIOiJRwazf3hc5uu0NvOn+USxWh0W/4?= =?us-ascii?Q?jfySem6rIKv2iPJUIAzbFeFv6gex3guolRM/3A5V4Z9skQ9ZJYmgJGeVy3gq?= =?us-ascii?Q?+9BbRoRZsnLQ++ebQWnqzduvaFnVn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xMAQ?= =?us-ascii?Q?fyjqvZ0XT4Iwkl5gzzO2eULSoEYnToDV8zHDesZZj/ym3d7N6zWDMrkJK8fJ?= =?us-ascii?Q?yO2KQBRVndFc3msXDb3KURT+4l8d5QuCwssqKfycJO5BcFTTH3LY0rsnNSjN?= =?us-ascii?Q?QXNz8wFf1ydoS9LWEuvTvOLLSlEpciuzILRK3WZOHYEQoT7J4g=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?XNqg2Sz9fuRTDA97nIxvNAdcS52nib14FfYnR+p/ZrG6IobLOBxSEIAtywx6?= =?us-ascii?Q?qZv//b0cSizKBRLSeLSo+Xilbg8h9Nubl19ZiJv0o58N+f312uVrUB8jfkQI?= =?us-ascii?Q?79eEAKRJqfNIQxUM8DHsPB6ne5mGYxI96jTh0C4Fhqyl0nRfTsD9ylu3VCVr?= =?us-ascii?Q?BVB5olgZ6SctbMGdZl4Xv0aCiUs/5xpjXbt9YJk5/6H5ZBi5Mse1Nb4qxXMF?= =?us-ascii?Q?C5KkUD4Sh2lpLDNepUSYWbfvWpkIhS2xcnkOnMIBYm2UQjjKDGiDUpdLJlcQ?= =?us-ascii?Q?BfQIb/8yc3kvL9dHWx7LeNR2HD/eNIWMpxNGo3W4q3Lw3jgAtw5+BLXqonwo?= =?us-ascii?Q?tXheExo9wVzkI/f8j5tmuk0cseX8amfWTsNPfJ/suYM64w1PGKYB9MFPi6Sf?= =?us-ascii?Q?f6ZyC8vSaCethlwHmSRK4REN+AWBY8YwrcOzCFnn7OyV5I0IJf1aGT9NKE1/?= =?us-ascii?Q?vwM4i4+OvolKSvi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us-ascii?Q?L1QqGPkKusEpO98cMCgYt0yvAcZaxBPdjrcB62lmeghGeUoVJIEdy9yQ3km2?= =?us-ascii?Q?Trany/5ODbLdiWuEyy/EtElvGiuzTnYrwcKXWHi1AYCr+MnelrLhr9OOj3yR?= =?us-ascii?Q?Kp92vAna8E6NDngU7lyyMwiX82XsVqXuwOOyNKZxFUSU4edJOlfBkgD2J78Q?= =?us-ascii?Q?qE8jLi6a2hZQ99UGHWBC1/orZ96Co8cYUki1BzrE?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a01f27d4-5365-408d-12fd-08dc9b48dd7b 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:03.6816 (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: qVGaO664sycpGbtroL1IF1cRGtUx1Hus+ooXQPIhq5MggC0Z0oeu2XfnUzNmN7sO 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 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