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 8A7154555B for ; Wed, 3 Jul 2024 12:14:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 863A741060; Wed, 3 Jul 2024 12:14:20 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2052.outbound.protection.outlook.com [40.107.20.52]) by mails.dpdk.org (Postfix) with ESMTP id 1708F40E7C for ; Wed, 3 Jul 2024 12:14:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S6PvrH8mZ7S3UAZGvU99kB2SCl6RN+RnruPPyO4mbdZNuNqhIPPKztfQxpD9QYSEPWeDlLmwi7W5ZVfK0ONjAtcXbk5ijlaVdrkv4fiMgDTRmQuRfCFcUA11KAi69ITMVab2NvL9/oRDUfN5XF2O/bIxrZW4rKGb2txP4uMnK+8DmZoO5he+6kfj4iQnUMxEPKhS1WV1uhplSPQiKZAMSVkOOfFe+yZQbX3Ui/zQ+f5x7VHNO35ix7mvDVCtPNis3g553QBoxGCo2lyCGDdTCoFhuue83yDGLFulN4ZkgXKD354Cj/RuWZ4pgyRDziLQOK0qhUFk682Tm7MMU1V7AA== 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=QXhoMO90NKBXWna/cGVsxCENdlaAllzWay4di4HsQUU=; b=DY21En9sgjIPlMebDNOBTIAcUK+vz7oqevIo6KHOsmdVf6Wh398zcnjMOUTgy//T2PaV8hxbWTuy3KSQbhUW65Atqob/yyVj8ILP29r3wRPBvrKxf/BLEtNAoDY2W9TjzRK5oWFoqCIX1m+z3Xj4K9IMkFlFHICDDZl2Ioxls/MwsgKsEqC43xjGfsxkM+Cfkv3aS8ZLjuP0bju2/Oxwiq64C/JWTBo4BCrFGMEqpOa86lMyksQeyRgVhNpDfrMkn1JyxtS+H+F95WD3dpAa3018C6cZKPKvyj1HiNBXk0ecsMaIxgv3pSScT3HZB6bsc1uTQWag2pTwKGBNj4/vMw== 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=QXhoMO90NKBXWna/cGVsxCENdlaAllzWay4di4HsQUU=; b=ILXxoQUueN7lYUReQ211qEsY/TtP8KA8lEU2JVvwI7eINjrx1NFl1rZpUUdHP1rb/Ntn1wjmhqbmvRN0WUUG94PVwH+AEMQ+QxWxii91w2amsha0nZfbYFC/nN00aIHiYfBKBZQYCT2vZoCYghlRLx/V3wFtqDZwHxy+9ebAwGM= 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 AS8PR04MB7606.eurprd04.prod.outlook.com (2603:10a6:20b:23e::8) 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:14:18 +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:18 +0000 From: Gagandeep Singh To: hemant.agrawal@nxp.com Cc: Jun Yang , stable@dpdk.org Subject: [PATCH 11/11] crypto/dpaa2_sec: fix issue of user ctxt for Event queue Date: Wed, 3 Jul 2024 15:43:47 +0530 Message-Id: <20240703101347.3091547-12-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_|AS8PR04MB7606:EE_ X-MS-Office365-Filtering-Correlation-Id: 7081d1e5-8c33-4a40-1817-08dc9b48e658 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?bEwaJqPIePmT8FzPcJgcK9PchwxV4WZzfiC00ZZw9PJ27qJWDn4xvcy1J01G?= =?us-ascii?Q?OYZIpls7qJFg6LFINhntYF0kTnVojb0FjSruNQB7j7eDHsmJUr4TKASZTQSB?= =?us-ascii?Q?3i+daPaIVqtqACUWYJPoglYIgcP83EWGqpWJQsuqkHJog0XhDMPhtp05eTRu?= =?us-ascii?Q?89CxKe8EmkW9yc/8SoRB4UeRlnAdDyKe8V+AmkgGJz2tl+ezman23N7VA8TY?= =?us-ascii?Q?Kvnjtz3kj1EmnEt0pskKk2WbZ32bJsAlFFB3lS0iZD5MpoYWE9LnsdCfpD40?= =?us-ascii?Q?i3i6oBhvZcJtGWv3/skNy6BQyzERNhyHadaQd6hgKM9Ql99ltknNugLWe/i+?= =?us-ascii?Q?yz/9fScwIM5UovDifO2bjYVz/ssUmFxwCC3/XTcHCr+7V4PRX95DN566WBpG?= =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UDNEwB5NIKJY/veOzhN4HxykuO75vCwfJO?= =?us-ascii?Q?8x7WIgqEELIXs8lUWFAiIeD2oMAI/NppAUOfUp0fSVrJzzj+EeDayC1L+pW3?= =?us-ascii?Q?XcILf4U+F9LYzxW/LAKgshGsvONe4Wv4WmVDo04lmScPZUt9SA=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)(1800799024)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TH0wx2haqDcfh5v9F6ESoL2of+keBpT6m/wfB/EcELj+atBV6DU38pZkx45Q?= =?us-ascii?Q?Y5KVZfVoDHZMZjlql+GytjZqlI5Dc3Hh97Aqk+eWv5ZYXfqyeIzqEO1kH1Nl?= =?us-ascii?Q?6tQAaVD4k0/eqO43t99SmMDsFhTc7neF4IBJYY0JJ6mmhRYiEbTrR+JI2QOQ?= =?us-ascii?Q?FabtY/bT51Ppyyet+MpURVTqO1fC3fDiYQONPShFGHtelL6OvctpfbKPgkQ7?= =?us-ascii?Q?mDQYlb/9nUIdZbAIiNmK01mOMBypBcXM/BZVeZreEBwWpYkGE+77WRt0fSyA?= =?us-ascii?Q?i0zJ2ApjBnUq/93HboMnV6uNU5XNZpPS+7V4dn9ldESB3wTGFUF8LkoTUPal?= =?us-ascii?Q?ZfNBdY6DfdS1VNC/WBH5Rjv+P/iPiEh6zYg+q4FcdUFpSPZVFisvxRHYNblZ?= =?us-ascii?Q?kTQZnf0CXrYSvmT3j2ehqH7gdUytNdKFpB0UkSoisRm/TN3v2CUxrGhuJEGo?= =?us-ascii?Q?Zu4X1NA5jSQ0PQbtb1C22Oyn0MI6XpEHOqP4UFNYbHN5lWCFKCBOu5F7+3o9?= =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5w/sn1bCMY6w9jXCdmZ9z9Y9Qk12?= =?us-ascii?Q?g9grMYZe3zf4GdHsnkbOH9iRmkUFug1DMZ1ICGQWksqvTcTsyPKXbnR/m5BJ?= =?us-ascii?Q?MB8dZ8QzT55M9moAWJHDVGAeVypxhvSgqt15O21Yapt7MjxUKiprLZa5grP+?= =?us-ascii?Q?4dyGTsVufv896yneMlu4Jk4RkgfyKrqeJ044j9JF?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7081d1e5-8c33-4a40-1817-08dc9b48e658 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:18.7289 (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: /wN/v1rjKgfaASx/LOK5NJqfOhSmPwWdiOg2YqVTMpHb7IyFjCId3ld8jGTfXtZ6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7606 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: Jun Yang Context configured should be aligned with context got in dq process. Here the rx_vq is just the first element of qp which covers the issue. Fixes: bffc7d561c81 ("crypto/dpaa2_sec: support event crypto adapter") Cc: stable@dpdk.org Signed-off-by: Jun Yang --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index eed66d721f..b35bba3bdd 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -4103,7 +4103,7 @@ dpaa2_sec_eventq_attach(const struct rte_cryptodev *dev, cfg.dest_cfg.priority = priority; cfg.options |= DPSECI_QUEUE_OPT_USER_CTX; - cfg.user_ctx = (size_t)(qp); + cfg.user_ctx = (size_t)(&qp->rx_vq); if (event->sched_type == RTE_SCHED_TYPE_ATOMIC) { cfg.options |= DPSECI_QUEUE_OPT_ORDER_PRESERVATION; cfg.order_preservation_en = 1; -- 2.25.1