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 8174645ADE; Tue, 8 Oct 2024 13:00:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF82640F16; Tue, 8 Oct 2024 12:58:51 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2071.outbound.protection.outlook.com [40.107.104.71]) by mails.dpdk.org (Postfix) with ESMTP id DCC6640EAB for ; Tue, 8 Oct 2024 12:58:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=C+q7Id0oNYhXCNNqmZOxv+0RUEwmR+YYHq3yZV9kBTf+CgccJrasKtx93kgJotbGVxtmFQ5XmK3rrSDTO9pe7gtGMtLP535H91WNywIZuesBcyGg0/Rhwjs8lHYI2rfZxqOcsWUYV7xFWqAPnCO0yCTLtecouF1mUtQcNjmILaTUbaKt8YIZUjc3YXwcHdLZvGxi8S72nwuoROwE9mlFI1ZmNqxzJtVQ8d1zpStI2/Yc9CTvBAA7xbwZlVMihJK7Dv+GJbQMi4FuDjxBSv/zP99ebkHxbWwU2RAAtfDULbozMGEiKe1OWcFHBcjBNH9oHokOUISp+KVWt94C95N4FA== 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=kQA3YW3WFKzeZCtKS2KCm3DpmqZNSjdc3dxjyG8KOxI=; b=ugDH6AS+W65ImMTazL/d22lsZDwkmlb/Bjyeu2HgSviX4eKyR16U3QMpYT6NFiYrf7dhlqcx9zTGE+485gJ+2zOAFbb1p5oXCQo3IVIiKg0NKf2XMFtqCNIlg3/oDDklL4WniphgOpDBC2//TA8eQaPfXJVYYllYLBQE5m5u2kT3JvipE+6URZc98KPxg8VA1VoWWZ1QULwaiVIe1IisfhnvbbfF0fdWQpI8ap0cYXQx8BVLpfxG0LE7scu7/bnNec8F8VCm90cy9j10wR8Yl66y0FzwofRM4o6ymKmFc9Ub/pe8KYFpBx1I9D3HlifoKONCXjCeW+LdqFuulp9Low== 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=kQA3YW3WFKzeZCtKS2KCm3DpmqZNSjdc3dxjyG8KOxI=; b=P3XzNGWDb0t7V8Izvugyp3ttxNmXierQag5vZCJmCWeSHsnmkPD96ucyNbMsJx80X91kOe0IndTheQy3WZf3XvT1wPJ3lpAOdBvjnV4s9Bzp7EJ1lW/r9DKLkBzE8qaXMdPR9j3QQyXWoI1dqtx2YFISA9pvLEmHX6lGg1NoEW9AF/H2nh4JW1dGoisklWWI0p/AT8uR/r28HxSKlIr2TUlDAFg2h/k5p8k2thVkQSTabohcjnfhFufponU5XQ3537+uxvcuRm+jpYdQ7Qjcl7oLpyNMv3fKid3XZA5zcnamBuLHcgega1NomVyYq/4hXcVxcMq+xiG3tbGjb5HQoA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by AM0PR04MB6932.eurprd04.prod.outlook.com (2603:10a6:208:182::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.23; Tue, 8 Oct 2024 10:58:47 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::2e32:1a4a:7d29:195]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::2e32:1a4a:7d29:195%4]) with mapi id 15.20.8026.020; Tue, 8 Oct 2024 10:58:47 +0000 From: Gagandeep Singh To: dev@dpdk.org, Wathsala Vithanage , Bruce Richardson , Sachin Saxena Cc: Jun Yang Subject: [v5 12/15] dma/dpaa: qdma stall workaround for ERR050265 Date: Tue, 8 Oct 2024 16:28:07 +0530 Message-Id: <20241008105810.1454133-13-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241008105810.1454133-1-g.singh@nxp.com> References: <20241008072306.1256445-2-g.singh@nxp.com> <20241008105810.1454133-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0123.apcprd03.prod.outlook.com (2603:1096:4:91::27) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8198:EE_|AM0PR04MB6932:EE_ X-MS-Office365-Filtering-Correlation-Id: b10490fb-e2ec-4bb1-c2e2-08dce7882f2a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?2luRP27UR/sbsbXcrZWwGPYczp6lFAbE0p8pHByJ3VonEugx65WAXyAme4SG?= =?us-ascii?Q?+A04pqLq2CMVMC5l/sBCITSjQ3wuI1CbSy7GFrHw4QMwdfx70nJ5AABhEwdo?= =?us-ascii?Q?FmZT5QIQIC1x02lBSfhJqdyFpBt5A4l/G8zeB+NjKl7RUWfp6kKVCUie+p7j?= =?us-ascii?Q?AwaJMMHMjs5t8sAzet0S3uY7ewFk9FamECjy87l03RuyAgbtRPwcpumAzlIN?= =?us-ascii?Q?dyaSz80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WMzlAQ+3otQtWbrVc?= =?us-ascii?Q?bTfsm0NhsEDdp3w2Kj9F9y5LyZJUDZrWrCjpsbmTweVQqnhNiV1dwn4s9GXJ?= =?us-ascii?Q?377zwN75QsOliLMtSgNzYt2jU6fc7zKGMESzM6/Bcbh6bdS94TYJHUNp8cJS?= =?us-ascii?Q?KCyLH4EsaUrZ4LAND2OVNpwGRglvF0boNeIwaQUG/jHN8P3b2yIPDi78D1ro?= =?us-ascii?Q?vVgRJOYItgQYd7OsS07ou/fFNgRuFYNAyVPcDmp8i8SwQw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6mGAMcr8vKykwg9pSONCiySfm8xjDunA+zDBDbKQKylGIXLiqzwgNnYWmq0P?= =?us-ascii?Q?K9GsbupVfWFFakySFHfhU9F1TYJ5cMuQT7UiSDarF82GMuvHLUZzETvWsoKo?= =?us-ascii?Q?oh1bqH9BAHp2zNeuCvfIloezGzRFIYmi1B0Glqc/f5MvT36TseSXC0ANHmDv?= =?us-ascii?Q?NmDSzCmv/SKvifGQI7ILi/afMNZA6vxrALcF7jZyAUdtEob9xg7etL0wVqBR?= =?us-ascii?Q?yk/Vdf88rfvUsjW3SGunNqyCMpZCAbsEtydbRmUAJw7xZFNasOcPD5QFAp29?= =?us-ascii?Q?bBfrZyF5CnpEMq6iKxm1HXjA7wMzrijG3xTnRoQp7HMqHKUZbfg0cvc98o6U?= =?us-ascii?Q?qrJdl659gfMCO6gtQDyNQ14QqbgG4s7pNjV7XoTbF9XwSigGxTQGFIsMQ8D/?= =?us-ascii?Q?93cnzJ6WJzSLOrA5+D2+E0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-ascii?Q?046siaGRHw10nv4Ajc5cY6hN/xwmKEJtsAP5gqgHodLT3dxTeaBLh8YrXgpg?= =?us-ascii?Q?6aLpXSSs54iI/VpycUNI7n5WuyJiX9P6bBoZfxo+mXLa5YZn1wB7MLaq+qo8?= =?us-ascii?Q?brwZ3Ic3XxqTp0JGhfMSJh9r1DPznmsqrRWTuobPymIqSU54eNOkSapsY/+D?= =?us-ascii?Q?CWDdkIjA8rXoaWrWZ69X7LkbgfTv11OPxJd6/JP7nblbW/zRQDM/YTkceGDk?= =?us-ascii?Q?nq4VHigaLu5n63xxF70=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b10490fb-e2ec-4bb1-c2e2-08dce7882f2a X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2024 10:58:47.4585 (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: 4qmlo5xdqqWVTt3vYNoCcLD0AzC4j2+49rI8i1r+jNK92B963aIwXxK3g+JUQLwd X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6932 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 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: Jun Yang Signed-off-by: Gagandeep Singh --- config/arm/meson.build | 3 ++- doc/guides/dmadevs/dpaa.rst | 1 + drivers/dma/dpaa/dpaa_qdma.c | 9 +++++++++ 3 files changed, 12 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 026ba124e1..b2e96432fb 100644 --- a/drivers/dma/dpaa/dpaa_qdma.c +++ b/drivers/dma/dpaa/dpaa_qdma.c @@ -167,6 +167,9 @@ fsl_qdma_pre_comp_sd_desc(struct fsl_qdma_queue *queue) /* Descriptor Buffer */ sdf->srttype = FSL_QDMA_CMD_RWTTYPE; +#ifdef RTE_DMA_DPAA_ERRATA_ERR050265 + sdf->prefetch = 1; +#endif ddf->dwttype = FSL_QDMA_CMD_RWTTYPE; ddf->lwc = FSL_QDMA_CMD_LWC; @@ -707,6 +710,9 @@ fsl_qdma_enqueue_desc_single(struct fsl_qdma_queue *fsl_queue, #ifdef RTE_DMA_DPAA_ERRATA_ERR050757 sdf = &ft->df.sdf; sdf->srttype = FSL_QDMA_CMD_RWTTYPE; +#ifdef RTE_DMA_DPAA_ERRATA_ERR050265 + sdf->prefetch = 1; +#endif if (len > FSL_QDMA_CMD_SS_ERR050757_LEN) { sdf->ssen = 1; sdf->sss = FSL_QDMA_CMD_SS_ERR050757_LEN; @@ -820,6 +826,9 @@ fsl_qdma_enqueue_desc_sg(struct fsl_qdma_queue *fsl_queue) #ifdef RTE_DMA_DPAA_ERRATA_ERR050757 sdf = &ft->df.sdf; sdf->srttype = FSL_QDMA_CMD_RWTTYPE; +#ifdef RTE_DMA_DPAA_ERRATA_ERR050265 + sdf->prefetch = 1; +#endif if (total_len > FSL_QDMA_CMD_SS_ERR050757_LEN) { sdf->ssen = 1; sdf->sss = FSL_QDMA_CMD_SS_ERR050757_LEN; -- 2.25.1