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 5F4A14564F; Fri, 19 Jul 2024 12:03:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6ABE342F0C; Fri, 19 Jul 2024 12:02:27 +0200 (CEST) Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010018.outbound.protection.outlook.com [52.101.69.18]) by mails.dpdk.org (Postfix) with ESMTP id 24BB042F0A for ; Fri, 19 Jul 2024 12:02:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CblroiGSJH4XRY6w5VglwDKF4LZfsOEqpfP+AGaFD04IX8x4gSk3ZpXJImXRdQMGJtpB1pDuplbHcEGfYdGbOsCt7+bbpKtO0F6zvGXhsEKIOhNQYjQNrXJ7N7Ffv7w+xLcT8UjmJ4nu1QSYR3J1nGMT9AX7SzqC+qIVOs9vtqzS9mqUz08j2DzZjNlB0XKFeT7nX0VO9iEAlylx7kYSY6sQ5cGhcrCbmv3SK18JBPptNQ/FdUFBBOcbRshjNVDld9VL7C+ncvU2Y6gpSEoKKybBXwquRMw2FxQVvcLiBBl1RoKmUhKc/1Z6oB79x/Ee8JygvEk7tC7AsnlZ1iBNXA== 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=kO/enP6tY24RGLwOy4tTwt5ydFp2WFI4PQ9ZpOth1FtEYjBHcWm93hUHVI0Nv86ZiuHSOP4jpp0uPm3fkvlEmmoiN1BS6jhCGbOhPRBIyhEqfDepLRVRAOxD4RKF+KnI8uUZk1c480gbKS9QamaL5upt678001AXE54khAl//lyf3frdGHEOtAfcgWq6wNGFvYt4RBBgzPMu8nej4aJkgfpbqlf4Q/D35wcp9cmvs2MAzSRzTs62sgMrgABt1Q8u/wPnL5soMfQX0Pb6zCizNFf288atNwqDJeu+8wnLx13DbnrKk3xiTH7y2VvNmE7+e86fup1QXgVSvA4Oh5LUXQ== 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=RUxk5G7O5UAq5BeagsCccEcO5mj0y+Pl+bObVre0lC+Zs80oFW2UY7XDbytjkibbd1xZJi7EQQV216Vu38GfjhtpczwlymEjpTcXcx3rXQsbvXiIYstf9U15qGJrxp8muCZXuhDd+j3LWlxsh7oKHhGrV9awtrFatXl1h6SH5aQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8205.eurprd04.prod.outlook.com (2603:10a6:102:1c2::20) by DB9PR04MB8345.eurprd04.prod.outlook.com (2603:10a6:10:246::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.19; Fri, 19 Jul 2024 10:02:10 +0000 Received: from PAXPR04MB8205.eurprd04.prod.outlook.com ([fe80::7633:884d:5973:174f]) by PAXPR04MB8205.eurprd04.prod.outlook.com ([fe80::7633:884d:5973:174f%6]) with mapi id 15.20.7784.016; Fri, 19 Jul 2024 10:02:10 +0000 From: Gagandeep Singh To: dev@dpdk.org, Wathsala Vithanage , Bruce Richardson , Sachin Saxena Subject: [PATCH 17/30] dma/dpaa: qdma stall workaround for ERR050265 Date: Fri, 19 Jul 2024 15:31:13 +0530 Message-Id: <20240719100126.1150373-17-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240719100126.1150373-1-g.singh@nxp.com> References: <20240719100126.1150373-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0184.apcprd01.prod.exchangelabs.com (2603:1096:4:189::9) To PAXPR04MB8205.eurprd04.prod.outlook.com (2603:10a6:102:1c2::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8205:EE_|DB9PR04MB8345:EE_ X-MS-Office365-Filtering-Correlation-Id: e160f1b4-ff24-49bc-5d40-08dca7d9db11 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|366016|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?licCZtp++A5dZTLW2Smzut6P4qKKGmNJD7RUj5RemWN8SWiD1NxCjys8tr5b?= =?us-ascii?Q?1sxnXfkbXr7VnVfK50nY29AdAxC7aIGt8uv2sk1qLlg/kyEr0yg/L0VtvwWu?= =?us-ascii?Q?aKNojjsILGM2La1mIZVu77DWvLRcLBvKtxbVHpPw/DODLeqQD7wcNmxh3EbT?= =?us-ascii?Q?uwkgoKEPZtNDv7XzTTqsuVkqQEYuz4KR9fWrOw4xj0SYk4LlcPK+bNcR+dxF?= =?us-ascii?Q?jx7TVVDZt/m0Pf2yQuoCdrVcpoCgqmsq+rmPfET6pz8XavL23M4p0/5pZpmZ?= =?us-ascii?Q?uSG1kOox0hTsUuuh5NKYlRCjqOhX428xvVz9LqRhmU9qw+XfvHFmkx9g+ti2?= =?us-ascii?Q?uI4M/iNw5QYVvfA1dkn5/W61OEiWlFXsrSekVXi+Ztf1C+4KGu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d8eNu4cxFlm4pN/hTgPYZTSKt6G0A4?= =?us-ascii?Q?2OXrkeXTlL5ZFfQVwwqsvmMERRGtXA//fBoHUbI1ZppOncJMCRC+byNmNTys?= =?us-ascii?Q?521dZvbEeOofamYS0qkJRKmm0XrKmP2LcyA65+ILltDq+7eUdA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8205.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(366016)(1800799024)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ZggWl7M3y3sRBEO5wDjOsYpjyFW1wvD7maosjw0frUl1pTSEMKQcEDCL+HmS?= =?us-ascii?Q?D/cHss+NxG9rFue57l/xexYJNzROL1QH/8Y6vs58YDkp1M6KfkBSKoitOGUe?= =?us-ascii?Q?DfnbVRIYH6RLY6LQYUjtBskP1nLgDw5DYV0tfgDN26Ne7wew4hV8jxaPFB0r?= =?us-ascii?Q?kDpXBI9cDieqAZmApDm9LlklfVJvPcaqecFU5k9LxYrL0+/RllcWka2fkWXF?= =?us-ascii?Q?RAtAyH+a2JOac97NujRRng1ONw8NInzAn0dR/llSUTq/lF5getvwx92S4yus?= =?us-ascii?Q?QLf7Y4TM9wCYgw0JpAaL2Z/ICAeC7F/NYIa1p7c7q7yU7TkSFhx/crJ/NESL?= =?us-ascii?Q?29ad0gKqhINPicNiuCje0LbblBdVrCVhHco1WXIsE6ExsF7hkHQy3W75V46Y?= =?us-ascii?Q?u3RmQuEBxzgi2LawuBjTJW2BGg9OPHeYEv0W16/LqukY2ByX27+bZirw1g5T?= =?us-ascii?Q?n/qhNw8UTGJQnKaRTS66dEL3XJldvqLFEsnI8+ixlHw4GtJTRC+EOHu6b04q?= =?us-ascii?Q?lHYHOPP0tu46SpY9iJPkih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syICFKvqZDEvBVaAyd8KhFAdT7u68aN7967KIgb+WsFYWp66sf9x5qKCp?= =?us-ascii?Q?vdirq+aGWB4qzOTplmZVlor19l6MMxneGUlXdZuVdMAInRl2rHbrkrhw+e2h?= =?us-ascii?Q?gILXf4lfCitn+Ke3iDUVeYwiXezctUftPKAYTEZk?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e160f1b4-ff24-49bc-5d40-08dca7d9db11 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8205.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2024 10:02:10.6688 (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: BIXIv8uoKhQFxzIG+R6pC0hxospVnuKknJ6Jexne8Echctiuj/qgAp4O17aDrQGe X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8345 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