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 10C3645681; Mon, 22 Jul 2024 14:04:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4353F4065C; Mon, 22 Jul 2024 14:01:06 +0200 (CEST) Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011006.outbound.protection.outlook.com [52.101.70.6]) by mails.dpdk.org (Postfix) with ESMTP id 235AA402DD for ; Mon, 22 Jul 2024 14:01:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DVAgbFtnFGpY96bQiEI9wBT3yWx62JBLcHgtgKZuS7SY1+bX+z9kVbsge7JaOaGtYv4H/wlLQEbOLcMpIUPhrXEzNLawzQPUtG9AOya4cmYpik5a/yq7eSC8Cx1JCtYeULEEl7doQfu+Exu772enXY4MTl6zYZenPaKMQjVfgu9BJyH/7Rmy+kAUo5U3pJZNNjPX+hqEqZZTbsrQvUJJMFbeM/tEYsDoA+Xs+gPSH3l4rcImJAn2hYXwZBVzEzuF2XtUUEn6Gux7jeQRzy3tUGwVDZoKubdotF+ZX9igGRIaq1Nrn8g/AIQr6GLV7QbYPAi76JZNt0vLQwNXAFiNBA== 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=DmwtVUZsJM/4Qi+nuyggRCNbFMQIB0bKuYJeEQVY58A=; b=HOeaupKWvuU+GT/Pt9CpfVbTBuPbdtOdF3hTQSR3P6nRv77aTnq3OtEIuVT50Sw60H38fzJ4EUU3ffbGVatA3mS/7tmarDxmYEsvevPNe3BzxaDbApXOPxDot0Fc0JQFyu8AfTY2W0WVf30Jedx7kRtCf9w8gnmt+Y3e+BqJ1nhnBFc6asqQazJRpLJGqS2kT6SI+cUzJOz6+qeE/jqiA2vdXwyNa3JAG9UZ2msrKmLSziWZQagR0V2AYyqdQBj0APygaR2soGbUBVvT9YBRvv7Hxq8uisIrYK65SsYaLwPxF1FDNtv4VZrbp7B1D3GGINcF9oWFm4BNkmwTdBgdkQ== 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=DmwtVUZsJM/4Qi+nuyggRCNbFMQIB0bKuYJeEQVY58A=; b=lHVjoQ4bS4qwFeG/dzGN8ET0o8wLfO79NqXc8PB2qxZu5AaaeXMUMpP9xNRCeUo/ImJSMQSgDBFc/Kqeax9Pn9HhhhhUAMs5qXbyyu2oCsRxD4VoHPLqoeB3+nfvguUQ499pJPD4j9mHmG0i44y7Wj1VM2JBfSr4erLyIRNXaC4= 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 AM8PR04MB7970.eurprd04.prod.outlook.com (2603:10a6:20b:24f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Mon, 22 Jul 2024 11:59:33 +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.7784.017; Mon, 22 Jul 2024 11:59:33 +0000 From: Gagandeep Singh To: dev@dpdk.org, Wathsala Vithanage , Bruce Richardson , Sachin Saxena Subject: [v2 17/30] dma/dpaa: qdma stall workaround for ERR050265 Date: Mon, 22 Jul 2024 17:28:30 +0530 Message-Id: <20240722115843.1830105-18-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240722115843.1830105-1-g.singh@nxp.com> References: <20240719100126.1150373-1-g.singh@nxp.com> <20240722115843.1830105-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0025.apcprd02.prod.outlook.com (2603:1096:4:195::21) To AS8SPR01MB0024.eurprd04.prod.outlook.com (2603:10a6:20b:3d0::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8SPR01MB0024:EE_|AM8PR04MB7970:EE_ X-MS-Office365-Filtering-Correlation-Id: 84cc9821-c9b7-4f5c-6ed2-08dcaa45c023 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?vRozHTvbHIDIRdc46c81rr9cQ8Oqx2eObYbqyFhGwEFCZQGbQNj9WlGO1QvI?= =?us-ascii?Q?PSuAKqOBoDRV/cXueant0kJ2vhoXDEx4zCOQOQv9zQtc6MVljCJDER0BM9k6?= =?us-ascii?Q?zDNabGTYJUjhZ63JdsLUwVFJIwQwZRLy/Z5RhaeOMfXuKbQQjBZocAYpV/fn?= =?us-ascii?Q?MR7CGJnZEZrI63Azwq70x+Usz7S1CjkXrB9/ARem5d1FZvGQfBTeR3wggg7g?= =?us-ascii?Q?ADWowaLELYbrMqu+W78AUh1jJNH+7hz35pJyhvI//stRDVo/AbOS6LcY2v8c?= =?us-ascii?Q?izaFOH0wwoKO5D3DNqNrAL2MSxB4UdzkQ+2qliix7/o/BTJv6ZNelx0RVRUS?= =?us-ascii?Q?ZLF/unZQ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6rGXJ+KTXN971TLF2F?= =?us-ascii?Q?SfYpP32WBE0inaGd9Q0QkRTqlWrdSXlRuvL6FIYWQzY++sfrsGw5ho29B2Zg?= =?us-ascii?Q?3XRFJeNDpF/aNwhQ52lQ4b1uf4u08uFQ2//cUtgvTus3ue3kpA/1RYzT8RNL?= =?us-ascii?Q?8YT6o3kDq4R470Q60t/UB0dzfWOUh/ithZYkJ3lAI0+Xa6J54g=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)(366016)(52116014)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Zoa7F8HKdK9t7e61I8UHaiKqIegI7Vs76WVFINXChfdcHP7/FddZpOhFvvxe?= =?us-ascii?Q?25DxgIHD3EJhmTyVIB2XsI3p51fqH1VSO91yQeEMXLCBO7CuX40TW592/ncD?= =?us-ascii?Q?0J+3m3UawXvaTyskayywDbn3ZOZKjZXIOJ7Cl2dRrZjS5iRqb3aHqz4aadz8?= =?us-ascii?Q?K4cXGt8kzDvVKHtnaVkeaM/yP2uDVMx0F4xjNGkszZVzKHvwUvnAbtC8nbF0?= =?us-ascii?Q?fxnVZ+Nvn3n9rFLAbxcxyrkxt5EvfwKiz5yj0RawjQoz+EQ2WkFTt2y3Vxt1?= =?us-ascii?Q?nx6gcStRjItu1d8XDEIKO2O3nyTmFq1hJmJBrKjuO24Olv1DuXganwwkg13G?= =?us-ascii?Q?PrIeCGicBIqKPA35hKsaszuYjWm9tSft4JdtxBUHu8wOl1jhSulHjgShW8hI?= =?us-ascii?Q?ZW2JbvwTz3KVZQkxlXsii+lYvVP+40C5sEF6LK3tIvUWVOffMM/uExxkD0Tp?= =?us-ascii?Q?RbruxK5JscDK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jatZxTlpKEdvrgF6PSX0z?= =?us-ascii?Q?v5ygLXGAmf2FOkcLhUIkTquzGlz+xxtLCX0QPS28B+bAg/FLcuv6W41XPANi?= =?us-ascii?Q?TRXqbNgF8iL4BsxHCuL8lSXogQVYy1b/WcPfJn6nT+P/cuxKe4DjQb8FHBpV?= =?us-ascii?Q?ZcnHD8ioXMu+OSUb6IQeXXX9Bi0ZTUV/dE9A6LbvJRuYMITvunjBzs/9rlP0?= =?us-ascii?Q?dwYQsGqWDePpZh77jWDzUvD9gmO4OpLdfo4qXOP7?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84cc9821-c9b7-4f5c-6ed2-08dcaa45c023 X-MS-Exchange-CrossTenant-AuthSource: AS8SPR01MB0024.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2024 11:59:33.4811 (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: YoFLIrOr1DikvfT7p7DedXHqxUHoc3mid7fv2IAxQ5a/uGCE+MrSsts6OfnUwvYF X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7970 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 Non-prefetchable read setting in the source descriptor may be required for targets other than local memory. Prefetchable read setting will offer better performance for misaligned transfers in the form of fewer transactions and should be set if possible. This patch also fixes QDMA stall issue due to unaligned transactions. Signed-off-by: Gagandeep Singh --- config/arm/meson.build | 3 ++- doc/guides/dmadevs/dpaa.rst | 1 + drivers/dma/dpaa/dpaa_qdma.c | 6 ++++++ drivers/dma/dpaa/dpaa_qdma.h | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index f81e466318..f63ef41130 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -469,7 +469,8 @@ soc_dpaa = { ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false], ['RTE_MAX_LCORE', 16], ['RTE_MAX_NUMA_NODES', 1], - ['RTE_DMA_DPAA_ERRATA_ERR050757', true] + ['RTE_DMA_DPAA_ERRATA_ERR050757', true], + ['RTE_DMA_DPAA_ERRATA_ERR050265', true] ], 'numa': false } diff --git a/doc/guides/dmadevs/dpaa.rst b/doc/guides/dmadevs/dpaa.rst index 746919ec6b..8a7c0befc3 100644 --- a/doc/guides/dmadevs/dpaa.rst +++ b/doc/guides/dmadevs/dpaa.rst @@ -43,6 +43,7 @@ For builds using ``meson`` and ``ninja``, the driver will be built when the target platform is dpaa-based. No additional compilation steps are necessary. - ``RTE_DMA_DPAA_ERRATA_ERR050757`` - enable software workaround for Errata-A050757 +- ``RTE_DMA_DPAA_ERRATA_ERR050265`` - enable software workaround for Errata-A050265 Initialization -------------- diff --git a/drivers/dma/dpaa/dpaa_qdma.c b/drivers/dma/dpaa/dpaa_qdma.c index a21279293c..f1878879af 100644 --- a/drivers/dma/dpaa/dpaa_qdma.c +++ b/drivers/dma/dpaa/dpaa_qdma.c @@ -179,6 +179,9 @@ fsl_qdma_comp_fill_memcpy(struct fsl_qdma_comp *fsl_comp, sdf = (struct fsl_qdma_sdf *)fsl_comp->desc_virt_addr; sdf->cmd = rte_cpu_to_le_32(FSL_QDMA_CMD_RWTTYPE << FSL_QDMA_CMD_RWTTYPE_OFFSET); +#ifdef RTE_DMA_DPAA_ERRATA_ERR050265 + sdf->cmd |= rte_cpu_to_le_32(FSL_QDMA_CMD_PF); +#endif if (len > FSL_QDMA_CMD_SSS_DISTANCE) { sdf->cmd |= rte_cpu_to_le_32(FSL_QDMA_CMD_SSEN); cfg |= rte_cpu_to_le_32(FSL_QDMA_CMD_SSS_STRIDE << @@ -247,6 +250,9 @@ fsl_qdma_pre_request_enqueue_comp_sd_desc( /* Descriptor Buffer */ sdf->cmd = rte_cpu_to_le_32(FSL_QDMA_CMD_RWTTYPE << FSL_QDMA_CMD_RWTTYPE_OFFSET); +#ifdef RTE_DMA_DPAA_ERRATA_ERR050265 + sdf->cmd |= rte_cpu_to_le_32(FSL_QDMA_CMD_PF); +#endif ddf->cmd = rte_cpu_to_le_32(FSL_QDMA_CMD_RWTTYPE << FSL_QDMA_CMD_RWTTYPE_OFFSET); ddf->cmd |= rte_cpu_to_le_32(FSL_QDMA_CMD_LWC << diff --git a/drivers/dma/dpaa/dpaa_qdma.h b/drivers/dma/dpaa/dpaa_qdma.h index 361f88856b..8cb4042bd0 100644 --- a/drivers/dma/dpaa/dpaa_qdma.h +++ b/drivers/dma/dpaa/dpaa_qdma.h @@ -80,6 +80,7 @@ #define FSL_QDMA_CMD_RWTTYPE_OFFSET 28 #define FSL_QDMA_CMD_LWC_OFFSET 16 +#define FSL_QDMA_CMD_PF BIT(17) #define FSL_QDMA_CMD_SSEN BIT(19) #define FSL_QDMA_CFG_SSS_OFFSET 12 -- 2.25.1