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 C8CB345ADE; Tue, 8 Oct 2024 13:00:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 461D740EDF; Tue, 8 Oct 2024 12:58:50 +0200 (CEST) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2084.outbound.protection.outlook.com [40.107.104.84]) by mails.dpdk.org (Postfix) with ESMTP id A11F840E5A for ; Tue, 8 Oct 2024 12:58:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EyN4Fxrm22TZv4GKjreSBR+jsUo4b0bFEtEHE9WqiuN0MPULg/cgFfpsCsGkuArtzjCF0MCJgMQVl+BC5kjnaCnGbHp+CWGkuSxvL+y7ugJhNquEMEEnwdsoYl27tHRoxT8PaLzA44GXYwIk0pZx6LIbOKYxtGiP3QQxHeAl62ErR/mx4wzEUTC0IvJFHiehzcz2DTVtEDz12o2zzUWTdZVk3FVRBhUcQp/HuE2oXJJ3/qStS9BkMMaz3z7+EveNP1t5bDK0ixY5TbsxWzFqJBM/seX0aczqCSXc/bD0jCN5hT/KVo6qEUdTRSwfT5vZigAhGk/MAJcEeTaZMfdLSA== 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=nRaai2y79tkzXkRIk4o/l1PzRpQKMlO4O0+R8BOqjOg=; b=aG2q3OMh8Nkm6qnxsjWD9wVV/6QHyy8vc3N/OweTTXgmkOFOLoKj/5+Nw4V5okmKo/KvHP2E2NG5fa/kKR+Df4IgTtY0FWyLVqwQePrUl95m2h9FutS6VJL5tIL/fWUtnWsgpYcJwxTG1ma6aG35xwuQprzpwNabeluQewQRpwXz7l1NJVvjlmfpM2MLavxlFBxr/0bri1XS36Y6Wo3/RU+YShGnK1R5Yq9GHbHALnnt/jBjVtvZpggBSzWnkXKC/hcv5uq9H+aoQSnyqaVHSL0GqBZqeXPN2p4BPqcdQfQ0V5ri7Z6pm7j4h4ZRNVoxBxx/P+yJySu/9mJVv98HfA== 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=nRaai2y79tkzXkRIk4o/l1PzRpQKMlO4O0+R8BOqjOg=; b=ahQM/++ggcRUUSxXQwI0ZupNe+Uvs7iNoOZxmCnfxWyaZZgnkvlX6WJfc5+hl4ac4cnjwYUf1ei/lMfiFfzb8/Hcq1Btd1fw5zAX8FsR45WOgg+799ACd12wfFNfodizW1a3FVqGY9ThYadq9d6puNHeVT45JFUO7fw25kE/nl4IVqWUVHN1jCtQVbzmNjS1Dib5+weFH0XR9DkJVt05CmXee7z2FJ5Rrftf+52LkKxjN8GOBFnTZSw5eGNfiFw56zwhEMa2Z8OWYWZfXgfU5phA9K5ByvD/rqgwjao8zGD1w0O7jlMSKjbuhJ/VbOeDHcrYyWm0JwQHgAhU4PGHWQ== 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:45 +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:45 +0000 From: Gagandeep Singh To: dev@dpdk.org, Wathsala Vithanage , Bruce Richardson , Sachin Saxena Cc: Jun Yang Subject: [v5 11/15] dma/dpaa: add workaround for ERR050757 Date: Tue, 8 Oct 2024 16:28:06 +0530 Message-Id: <20241008105810.1454133-12-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: 671acbf2-aafe-4c16-bee2-08dce7882ddc 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?rkuG8H/NDveAfTroZquYPTAU/xM0ck0stjGV8TS808KclWh3LSF1ZFmTOo0D?= =?us-ascii?Q?bwarTPFvAP9Kx2+7OPEio2O0anx5TA2kP3+TDkpVDkyJW9LfxvBRJWEF+arO?= =?us-ascii?Q?QBYVNAygWoM47zPDdGSguVQjX2Q7D4URpiJJK70TG3tba/FVYNcxwx0eQjHY?= =?us-ascii?Q?hrxtmFVxzIHlv1W+rcLG41Kn9Hp1kjOKraMSQ8tOMtlHZens7Gj6dDmecsVo?=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WaXbRjzQ09urx+W+xnaMvrgZj09H4?= =?us-ascii?Q?bVk3CDQMpwD2jnaV4lEiBJTmMTrVL3drVg9SpdVu7oVVVkHAjpUKZ/SidxBb?= =?us-ascii?Q?NglbrA8mxP7S7MlDY/lx6rdIYZnpA7UXuwtbNfgqO+RjlYGomYCxmeHKC94a?= =?us-ascii?Q?OAafskwBLrQW2JTW8ANToYzo1lGSAL3Tqs6nCzR0MU5aCF4+x5nKhyqHqC4C?= =?us-ascii?Q?BhaZM1rRib5ZvQYKHr1DBx/ADAZSrhI6n0L9dXEQql9YAg=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?F0Vhl/Ixw6GmdYSK4bMCJu+hekHmXu37evwr09qCubicf130dn1yPSfd7Sj1?= =?us-ascii?Q?3xbGIFv1sL8bCSZKMzsS1Q99Ih8xAfZiwWCoXdo1C+kGdd3kgseI+3yIrF7W?= =?us-ascii?Q?YBjHRBsUxtYXIVJdjcl7ccwS80sTf9M247a1kDyt3gEcHQf4XnM6Fe9VjMS7?= =?us-ascii?Q?knvYRPy7Ri91KZ6cVEBFQNiIeqd3mv0PzrFiDZ+6+AmWz9GNm3lmWtku66M+?= =?us-ascii?Q?fVAHrjGkZINPIP5eIq9Ul1O//IYPo2nI8Vhh2Q2T0inj2p6FB7TlZRTfvACH?= =?us-ascii?Q?USrQfGUze2hys4EbiJ5wy7C9BJInf1jRPxTEqvBEdjRRp1DAMmrHb3ZIJckZ?= =?us-ascii?Q?pBfRCJ/hlQ3S7t/1+nvuFJiX+H92ozSZz/z5gWeSe48/1RyxcrXSYWNaRNHv?= =?us-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E9iD+IKUeuSKyXfWI5VeN0FZ4zma?= =?us-ascii?Q?YgUun3KIL02BFwxE0ksUBkURZfRdLnHfvole3wk0ULQptIAFNfSp5EHhkB38?= =?us-ascii?Q?iv8vlwjMPBXo31YHZJojCQ5ytngYLrkOsfuOIskBXI4vCFuB88+yWvFzUjsG?= =?us-ascii?Q?JlKn+fg+O+cJOh0qY3+rqWdhcijCmVSTErrNm8rmXFas3Wahptto7yVYfJQk?= =?us-ascii?Q?6MD1qg20UFp1thM6yIsHgY/PfxtEhym6m+Wldaqr2WZsE+9LZcRDCOTW01x2?= =?us-ascii?Q?Gj1hwzcZJS0+9wwkUnU=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 671acbf2-aafe-4c16-bee2-08dce7882ddc 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:45.2495 (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: Mky64Qo6eQS0mI7Jf6Ih0f6xD/zSBg/fozo9q1FeA2+D/cTxq7JQmgTykB1Srpae 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 ERR050757 on LS104x indicates: For outbound PCIe read transactions, a completion buffer is used to store the PCIe completions till the data is passed back to the initiator. At most 16 outstanding transactions are allowed and maximum read request is 256 bytes. The completion buffer size inside the controller needs to be at least 4KB, but the PCIe controller has 3 KB of buffer. In case the size of pending outbound read transactions of more than 3KB, the PCIe controller may drop the incoming completions without notifying the initiator of the transaction, leaving transactions unfinished. All subsequent outbound reads to PCIe are blocked permanently. To avoid qDMA hang as it keeps waiting for data that was silently dropped, set stride mode for qDMA. Signed-off-by: Jun Yang Signed-off-by: Gagandeep Singh --- config/arm/meson.build | 3 ++- doc/guides/dmadevs/dpaa.rst | 2 ++ drivers/dma/dpaa/dpaa_qdma.c | 38 +++++++++++++++++++++++++++++++++--- drivers/dma/dpaa/dpaa_qdma.h | 19 +++++++----------- 4 files changed, 46 insertions(+), 16 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 012935d5d7..f81e466318 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -468,7 +468,8 @@ soc_dpaa = { ['RTE_MACHINE', '"dpaa"'], ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false], ['RTE_MAX_LCORE', 16], - ['RTE_MAX_NUMA_NODES', 1] + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_DMA_DPAA_ERRATA_ERR050757', true] ], 'numa': false } diff --git a/doc/guides/dmadevs/dpaa.rst b/doc/guides/dmadevs/dpaa.rst index f99bfc6087..746919ec6b 100644 --- a/doc/guides/dmadevs/dpaa.rst +++ b/doc/guides/dmadevs/dpaa.rst @@ -42,6 +42,8 @@ Compilation 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 + Initialization -------------- diff --git a/drivers/dma/dpaa/dpaa_qdma.c b/drivers/dma/dpaa/dpaa_qdma.c index 02f8685c48..026ba124e1 100644 --- a/drivers/dma/dpaa/dpaa_qdma.c +++ b/drivers/dma/dpaa/dpaa_qdma.c @@ -167,7 +167,6 @@ fsl_qdma_pre_comp_sd_desc(struct fsl_qdma_queue *queue) /* Descriptor Buffer */ sdf->srttype = FSL_QDMA_CMD_RWTTYPE; - ddf->dwttype = FSL_QDMA_CMD_RWTTYPE; ddf->lwc = FSL_QDMA_CMD_LWC; @@ -449,8 +448,9 @@ fsl_qdma_reg_init(struct fsl_qdma_engine *fsl_qdma) /* Initialize the queue mode. */ reg = FSL_QDMA_BCQMR_EN; - reg |= FSL_QDMA_BCQMR_CD_THLD(ilog2(temp->n_cq) - 4); - reg |= FSL_QDMA_BCQMR_CQ_SIZE(ilog2(temp->n_cq) - 6); + reg |= FSL_QDMA_BCQMR_CD_THLD(ilog2_qthld(temp->n_cq)); + reg |= FSL_QDMA_BCQMR_CQ_SIZE(ilog2_qsize(temp->n_cq)); + temp->le_cqmr = reg; qdma_writel(reg, block + FSL_QDMA_BCQMR(i)); } @@ -694,6 +694,9 @@ fsl_qdma_enqueue_desc_single(struct fsl_qdma_queue *fsl_queue, struct fsl_qdma_comp_sg_desc *csgf_src, *csgf_dest; struct fsl_qdma_cmpd_ft *ft; int ret; +#ifdef RTE_DMA_DPAA_ERRATA_ERR050757 + struct fsl_qdma_sdf *sdf; +#endif ret = fsl_qdma_enqueue_overflow(fsl_queue); if (unlikely(ret)) @@ -701,6 +704,19 @@ fsl_qdma_enqueue_desc_single(struct fsl_qdma_queue *fsl_queue, ft = fsl_queue->ft[fsl_queue->ci]; +#ifdef RTE_DMA_DPAA_ERRATA_ERR050757 + sdf = &ft->df.sdf; + sdf->srttype = FSL_QDMA_CMD_RWTTYPE; + if (len > FSL_QDMA_CMD_SS_ERR050757_LEN) { + sdf->ssen = 1; + sdf->sss = FSL_QDMA_CMD_SS_ERR050757_LEN; + sdf->ssd = FSL_QDMA_CMD_SS_ERR050757_LEN; + } else { + sdf->ssen = 0; + sdf->sss = 0; + sdf->ssd = 0; + } +#endif csgf_src = &ft->desc_sbuf; csgf_dest = &ft->desc_dbuf; qdma_desc_sge_addr_set64(csgf_src, src); @@ -733,6 +749,9 @@ fsl_qdma_enqueue_desc_sg(struct fsl_qdma_queue *fsl_queue) uint32_t total_len; uint16_t start, idx, num, i, next_idx; int ret; +#ifdef RTE_DMA_DPAA_ERRATA_ERR050757 + struct fsl_qdma_sdf *sdf; +#endif eq_sg: total_len = 0; @@ -798,6 +817,19 @@ fsl_qdma_enqueue_desc_sg(struct fsl_qdma_queue *fsl_queue) ft->desc_dsge[num - 1].final = 1; csgf_src->length = total_len; csgf_dest->length = total_len; +#ifdef RTE_DMA_DPAA_ERRATA_ERR050757 + sdf = &ft->df.sdf; + sdf->srttype = FSL_QDMA_CMD_RWTTYPE; + if (total_len > FSL_QDMA_CMD_SS_ERR050757_LEN) { + sdf->ssen = 1; + sdf->sss = FSL_QDMA_CMD_SS_ERR050757_LEN; + sdf->ssd = FSL_QDMA_CMD_SS_ERR050757_LEN; + } else { + sdf->ssen = 0; + sdf->sss = 0; + sdf->ssd = 0; + } +#endif ret = fsl_qdma_enqueue_desc_to_ring(fsl_queue, num); if (ret) return ret; diff --git a/drivers/dma/dpaa/dpaa_qdma.h b/drivers/dma/dpaa/dpaa_qdma.h index 9b69db517e..171c093117 100644 --- a/drivers/dma/dpaa/dpaa_qdma.h +++ b/drivers/dma/dpaa/dpaa_qdma.h @@ -77,8 +77,6 @@ #define FSL_QDMA_DMR_DQD 0x40000000 #define FSL_QDMA_DSR_DB 0x80000000 -#define FSL_QDMA_COMMAND_BUFFER_SIZE 64 -#define FSL_QDMA_DESCRIPTOR_BUFFER_SIZE 32 #define FSL_QDMA_CIRCULAR_DESC_SIZE_MIN 64 #define FSL_QDMA_CIRCULAR_DESC_SIZE_MAX 16384 #define FSL_QDMA_QUEUE_NUM_MAX 8 @@ -88,18 +86,15 @@ #define FSL_QDMA_CMD_RWTTYPE 0x4 #define FSL_QDMA_CMD_LWC 0x2 -#define FSL_QDMA_CMD_RWTTYPE_OFFSET 28 -#define FSL_QDMA_CMD_LWC_OFFSET 16 +#define FSL_QDMA_CMD_SS_ERR050757_LEN 128 /* qdma engine attribute */ -#define QDMA_QUEUE_SIZE 64 -#define QDMA_STATUS_SIZE 64 -#define QDMA_CCSR_BASE 0x8380000 -#define VIRT_CHANNELS 32 -#define QDMA_BLOCK_OFFSET 0x10000 -#define QDMA_BLOCKS 4 -#define QDMA_QUEUES 8 -#define QDMA_DELAY 1000 +#define QDMA_QUEUE_SIZE FSL_QDMA_CIRCULAR_DESC_SIZE_MIN +#define QDMA_STATUS_SIZE QDMA_QUEUE_SIZE +#define QDMA_CCSR_BASE 0x8380000 +#define QDMA_BLOCK_OFFSET 0x10000 +#define QDMA_BLOCKS 4 +#define QDMA_QUEUES 8 #define QDMA_QUEUE_CR_WM 32 #define QDMA_BIG_ENDIAN 1 -- 2.25.1