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 AB24645748; Tue, 6 Aug 2024 10:42:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D12CC40ED1; Tue, 6 Aug 2024 10:42:02 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2047.outbound.protection.outlook.com [40.107.247.47]) by mails.dpdk.org (Postfix) with ESMTP id 2DD1D40E4F for ; Tue, 6 Aug 2024 10:42:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wdvY9bbpWmD8wnOvtkomasOPrxJagy/vCxzITQoVsJrWSBQgwM6h2V/hfforvt7aDdr+xFlqsRKrlGkhEP+TwZu2EaqUvXIYU5mw5YDpHBB5X2xRU9jHxpF4/5rrkXUB3r4uA/YVVz+EweVVs22t/+pumzIJ4FAKP1DUvgLVBnVEh/coZDIDRwvsGI2sa/WE/ce9vGaJVRZ6tkXbZCH+QUfuvyC57v9KKK+wzXNdnHsvm3vy4uaD3YnFlplgeQ2rX95IBh9ZklvaaWC+vI88jJV/U+hLgzFWrdvWtfl9UanOI9uHn30PZJefzIO6gyMslOKUg0A8li7HncMDqPSBoA== 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=bODl4ZK8aK10cNKWt5lSSDQqKYObtRERxpUaA3xaK6E=; b=DY6NVPCfL0MM6PFj/DHHFIaBXt3a9BmKAGt/Fg6fI89JcOYeiHpsSRfYWKOzFzx7LitIhNboUt7TqB2xgukqfvGkO1JEsQWWUd23gyETHmPX9FziLP9q18qtklejedX6FImKZ+LhTL7wvBxH2y8zfimKe6Otnc1A1j6rGeZmDaE1V3bGbVGIqjvKwh+XQOlxnj4lZvyeecNTe3q3L43MymDlP+LUcZYie0qiuS+Dfww3wQNclgFKHfLrA/h1ivDfXaC3UCz8gIB24shs3dY/wenodjlesnAa0WckAs5qNuJntT5z3T7EY/7NA1oYBRySG4i/7xtWLReWphvRruKiZA== 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=bODl4ZK8aK10cNKWt5lSSDQqKYObtRERxpUaA3xaK6E=; b=AkG5zsZJj+O96Iidu/RFAQR+uyQePqfCMbXM+3nhJvz3oCOo696Ch/73qD7f1DSOMA42qtemIsX8RwbVQgGxbc43UEfzZ7qzyYEXocQ5KkYxNRCFbJO3MQ12ceX4uHZ1zmOAyiFpyISmHs81bSWYyO9aCGseUjVcueqD4eiryEQWUaEA3pi8ADNLOQIQyZMxfEe84QqNBxhoqwYJuTpNsK5jmMsNmYwnYo3MQXpd3EJIYVEmzSC42BP6xcg6b+K/UJzvgsGVQWx5mQC7S8LlJEJweo0kOTyRtwW9/Ses/HHJthTJW/t+0HbPnH9x9WHdJf3mCQQCjxc0Ue37CqPsDg== 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 PR3PR04MB7210.eurprd04.prod.outlook.com (2603:10a6:102:8f::13) 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 08:42:00 +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 08:42:00 +0000 From: Gagandeep Singh To: dev@dpdk.org, Hemant Agrawal Cc: Jun Yang Subject: [v1 4/7] crypto/dpaa2_sec: enhance pdcp FLC handling Date: Tue, 6 Aug 2024 14:11:33 +0530 Message-Id: <20240806084136.3212615-5-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806084136.3212615-1-g.singh@nxp.com> References: <20240806084136.3212615-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0041.apcprd01.prod.exchangelabs.com (2603:1096:4:193::15) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|PR3PR04MB7210:EE_ X-MS-Office365-Filtering-Correlation-Id: a47c2fd5-3317-47b0-7a00-08dcb5f3a34d 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?420jDtECYKi7f1bSNnSPnaLUvPFhoOD8CtToC1WlM4PU1syGoiHCySNi6av0?= =?us-ascii?Q?MPHgb4gEKbXLe/0xk6SCtMiKSrvpPwLlwu0Arhgu5On9U4oE/ktoa8m75AaN?= =?us-ascii?Q?iR23t9onT2AhVj5eohq4zQIvrOhtbfNy4slE3J3wRGJzNl3l6fYk5IjPPuaS?= =?us-ascii?Q?g1D2yxy4GwLxMB0awI0ZQhQZQMpBGubQucdLcYrbg6jm/ml14Iq6MWoMllJt?= =?us-ascii?Q?2cnm0Jx41NK0WaxAIkHvYDAWes4N0NCL9f0fV+AggejH76p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JREz01wQPR/VJB50bcaOZ4tK7JIL8l08j3xahfpFvNN?= =?us-ascii?Q?uINF04mVa8z6H+mexGlFjjFBpfnIOOUR3aV77ZwmlV+EhtvfvSGQoVYR2KOF?= =?us-ascii?Q?LhsEISFEwIsWUc0Kdsm9zJFd8CVprDmohwWH881o+67P0zFI8Ov8TUXOzOWO?= =?us-ascii?Q?dt/FPK2LIEj/KQD/Z6sNSzUQNlO4knfLKvVe5DsMU23SKGUAOIwiQ0aGEUHr?= =?us-ascii?Q?n84u3sBdFHzWqz3iN+roUWd1oZ+0JaMSvCZYAL2vlC59aouvEw=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?nFUd5k7UekRGYag6O9ZiSKmUNoL9PJchIJK2CkvUhtgGOIKdUA/OhHiOIgRm?= =?us-ascii?Q?EB8kWqf68jKv2JISkSAaNJ4d8oi7yTPCGdT+5q99X23j9YhsIa5YIjFa2Kfc?= =?us-ascii?Q?/XgODuQ/3yEiwRb633GTZypU1iz/3sR/1hoLdsTG2+I9k0A8F6SlatpXJh6H?= =?us-ascii?Q?uPgJVL7oBwRbN4j9+9wkh7UDwfHs3nAEsYKM+stLsG1IYy8onKsHYCzRXcPl?= =?us-ascii?Q?6Q63K5tkBoTfnuCCfA9ijojei5jX40O6gLnu9gNc1rwoaF5g1vEw241UsWSG?= =?us-ascii?Q?erFC8kLZ636UXigAB3cha5OcCmUYhbE6FTYVMN76QN5/6rwOUlXkhotljyez?= =?us-ascii?Q?GheazEJEsSndoS3NRAqVyHp7O2v7Om9aI6jod8PMcOik8HrqOPAYfQO26pIc?= =?us-ascii?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sZ7HTBLr?= =?us-ascii?Q?+l3nOVW6SUWz8PnyqWmEx6DAgVGlEqALTTJ03DyrbNY6wCsV4bIdMXBdm0vq?= =?us-ascii?Q?puEpQ/otuwh1TDduofIAxQxejwBaQk2GhE8nBdWRmexgbOpK0DurtGTJdtsr?= =?us-ascii?Q?9NYam/8hZ9UozyG99TEmG9ULTwAShRchj0Ac+gsg3zo3E/g+CfkwiffAc/C5?= =?us-ascii?Q?/s5pO2yCeDDYL7u0JtVvFbAFol9iz5YdFoXzVPu3YCHnnDx7UrfPIq5pZyeM?= =?us-ascii?Q?4obEWFgHg8KsW/tLfYqzNlIu6Hh6pwqU2kPSbwCL?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a47c2fd5-3317-47b0-7a00-08dcb5f3a34d X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 08:42:00.4007 (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: 14DqS37sYnsbB6D1GT9LAt2DsGJmaRFljHYNS7KuwSnRVWQaOFxagXvmS8GVeMvh X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7210 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: Jun Yang Set RFLC with FLC IOVA address and data stashing only. Signed-off-by: Jun Yang Acked-by: Hemant Agrawal --- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 0e30192b30..ff24a8919a 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -3389,6 +3389,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, struct alginfo *p_authdata = NULL; int bufsize = -1; struct sec_flow_context *flc; + uint64_t flc_iova; #if RTE_BYTE_ORDER == RTE_BIG_ENDIAN int swap = true; #else @@ -3397,6 +3398,8 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, PMD_INIT_FUNC_TRACE(); + RTE_SET_USED(dev); + memset(session, 0, sizeof(dpaa2_sec_session)); priv = (struct ctxt_priv *)rte_zmalloc(NULL, @@ -3646,14 +3649,13 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev, goto out; } - /* Enable the stashing control bit */ + flc_iova = DPAA2_VADDR_TO_IOVA(flc); + /* Enable the stashing control bit and data stashing only.*/ DPAA2_SET_FLC_RSC(flc); - flc->word2_rflc_31_0 = lower_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq) | 0x14); - flc->word3_rflc_63_32 = upper_32_bits( - (size_t)&(((struct dpaa2_sec_qp *) - dev->data->queue_pairs[0])->rx_vq)); + dpaa2_flc_stashing_set(DPAA2_FLC_DATA_STASHING, 1, + &flc_iova); + flc->word2_rflc_31_0 = lower_32_bits(flc_iova); + flc->word3_rflc_63_32 = upper_32_bits(flc_iova); flc->word1_sdl = (uint8_t)bufsize; -- 2.25.1