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 91D1B4564F; Fri, 19 Jul 2024 12:03:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4953C42EF8; Fri, 19 Jul 2024 12:02:09 +0200 (CEST) Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011031.outbound.protection.outlook.com [52.101.70.31]) by mails.dpdk.org (Postfix) with ESMTP id 80DFB42ED7 for ; Fri, 19 Jul 2024 12:02:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Q0eW42C8TyODHBz/9IXFqDofYCUc4SSK+vd5jF9pz9zKLYSYtUZNdjCV16AwAMhg+0eMXoO+4s8kldwJ8ZHAaChBIFk8oIRLF/iUIXBNVeLTH1GiszYbzEs+pv8jUc1PNzGQkH9sx9SXpMWTzS7n2zNHAEchB6Qm9Sv5OuXw7alHsiCtRKHOSXz2g48JcKKzfHRhpRNUSqypAah9LAlygMf9N7OSiUMHZCJfTThyf0iQu/7VH/ThtVmkkWJl2crzJsd1QdqAiAeyD/vh7fyvIIMCsFTZxYD88AjTMJFrWLaGua3qwDbDWlkVu2F6exYzu/eCNI/T81WdAR+gk0x/iw== 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=tWaV/ZlS74ufRVks7friUM9+wmCLCoIeAhgO7QRM3C8=; b=CA4K/Cet6Mc1vB3/fewb1Lh6R/Eue5sut0Wb7k4s+93DcobqluBRrR1GcZah6083w0t9Mxi7N2WAUZcOEanNpglyg0t27JvTdRYTsiehZNj1nClOlURDfcszbf+2xvHqs4LHa2Caan1LX/6Jp0G1iU0Vc8xGk+9USR4L05vPyJzXC7xZmbA8tfpeyb7WueshmFB08cQcFRHGr54y/ReZLUdwacDOwf2w9lgNDEt+VCKQ58BZNkQip8k/dnrwkuZArI9tYYxRDLzv3i2+jK6cWyjYig/k5zY9hPulvcYxbYeYK0izLJv8Ft8OMRiW7tuX5IJrQYn3bIHY5eQmoM46AA== 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=tWaV/ZlS74ufRVks7friUM9+wmCLCoIeAhgO7QRM3C8=; b=hIojWS5dStplxIf7ifyzD+02Ens68Jxl6Og9+99YFYigH5jzJcd2DYVfaR/risAzk+GFEBwjtBho+S4NoRHQ4cD4OdjHIgrQ70VN2XIO2myP+VgaFxrq2bXJT1vRHvePH0d019yBeVVR9QT95fmGLK1evM5iq/c3La14FY2E6+k= 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:03 +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:03 +0000 From: Gagandeep Singh To: dev@dpdk.org, Sachin Saxena Subject: [PATCH 13/30] dma/dpaa: support multi channels Date: Fri, 19 Jul 2024 15:31:09 +0530 Message-Id: <20240719100126.1150373-13-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: 3de57b35-cd66-4c88-3510-08dca7d9d688 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?wZbfF4Yp/+kmQWYL+nfqt8cvrMPqWUT+uZI8UiW0dL6sxx4RVbBV6N2QlokF?= =?us-ascii?Q?3ov6VMTsFVKTMouRXGS0S0Ekmw07v0nBPQThl4ZRk3AJmzRsk2zd5U0YWo0E?= =?us-ascii?Q?F0ejXD4+dLJZJIouOLLDag9TfAwv9XJpwatZXhxFS/HXfgCiKOjAoYek+7Pm?= =?us-ascii?Q?yYETA+3Mw7XbKFBUgXDMAX0PDVJDHDMCrvl9VxE3lt1WDZO/PWMv0shlDJxk?= =?us-ascii?Q?hj6XXFENMj+20EajSur+mHmnrNyDBwa3hvgtLKuRAGdxW3m2yoUybS2zx0aj?= =?us-ascii?Q?azzQ9680cN0cth3I3xg13m8SxEVmwJpuffdMbXfBeg8XKfiQz/OseY23dW+R?= =?us-ascii?Q?b3cXozxi/GURl+a5Xn5C/b3BrPADjNhTeryLZqeNYPYwOdE1R8PCKaKs/xNM?= =?us-ascii?Q?TfoMvbuWDzIdydS/R4XSAGGPNV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9eimZvlPIrgCZtmyMbRG/cw4pROUmND7NoOjuQ4pC85+MRc9dYiVv+GW?= =?us-ascii?Q?kOwFzdUrvIg+sj5gbT7K90VJ92XZ/YGdGe91ZGfro1lNfOx2hA=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?tnHFMLFsaFOrD1Q8OcCib7vvgrp1SS+UBhHdG5Y4zyAg+TyfzFBE/W8jQp+7?= =?us-ascii?Q?dTGoZVxTJm9uxLsz1fjusfzRV7i4Se4kp/2pt0C+rAH2VshlptvzbiADtk5h?= =?us-ascii?Q?A+T1mkAvS2rCUx+43E1m01vxHQ5CJOv+zKDUmzUA0rFeEBRhD4sgToDaguEt?= =?us-ascii?Q?4uTRKrHKLoIYXbdSQR1p1e0iteWgI8c3pqNoGMhmjQfVjUfEK8pvm9xDxhvb?= =?us-ascii?Q?9YE8g9bsZH3I8dwea/8LnKRNQbHfHH0IfI/thx43KJm35yFSWa3NkR7nvIDK?= =?us-ascii?Q?pJ46LAjbQgdYu1qyxZV1hyt2u7d+h5PqSeQEo5zMjFzWtqq2Qmf85jpBGaEY?= =?us-ascii?Q?MUoafjF3j9xcOPNJt3xcMQBrnD8Y30qx6NpUfEPQIz3c/t9XttyLbfuTPRW9?= =?us-ascii?Q?rSDbXebAvaFS4JFIGbkVzBXUDkBbIsl1w8pKGTIoiuA2CwG7ow7Z/ivzhE4b?= =?us-ascii?Q?ZOOEr6F8mvpynDbC0FHsHOprnSFKp2yKFO5A33/k/ZK+kaBaJEV1lbSPko6I?= =?us-ascii?Q?MtXq+C5N5wBGopWB0xjsJ+/bstOi68bBkLBAx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z5149PJI6K2Gqm4hpj2adwHJvcZeWepwgJAw/SKN9ZyRQ39yuUiBNGNOoB?= =?us-ascii?Q?+PK53sz+wBu22miEMiCxOcXoAUO1p/a8nmx1nv+jDOmp0zeUbkU6W9izP6FL?= =?us-ascii?Q?+wbFk9l77a+dnWGLhQvGyQy5KmxqeIEMJ9DYjlc0?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3de57b35-cd66-4c88-3510-08dca7d9d688 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:03.1640 (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: vAoR2CSSMSQHB0GFN1Gb3YTl2jvqYQ02y2c5D2i0F3vF9NJCghP1GCSiOlBnbgrX 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 This patch add support to use multiple dma channel in the driver. Signed-off-by: Gagandeep Singh --- drivers/dma/dpaa/dpaa_qdma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dma/dpaa/dpaa_qdma.c b/drivers/dma/dpaa/dpaa_qdma.c index 10e65ef1d7..24ad7ad019 100644 --- a/drivers/dma/dpaa/dpaa_qdma.c +++ b/drivers/dma/dpaa/dpaa_qdma.c @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: BSD-3-Clause - * Copyright 2021 NXP + * Copyright 2021-2024 NXP */ #include @@ -648,8 +648,8 @@ fsl_qdma_alloc_chan_resources(struct fsl_qdma_chan *fsl_chan) } finally: - return fsl_qdma->desc_allocated++; - + fsl_qdma->desc_allocated++; + return 0; exit: return -ENOMEM; } @@ -670,7 +670,7 @@ dpaa_info_get(const struct rte_dma_dev *dev, struct rte_dma_info *dev_info, RTE_DMA_CAPA_DEV_TO_MEM | RTE_DMA_CAPA_SILENT | RTE_DMA_CAPA_OPS_COPY; - dev_info->max_vchans = 1; + dev_info->max_vchans = 4; dev_info->max_desc = DPAADMA_MAX_DESC; dev_info->min_desc = DPAADMA_MIN_DESC; -- 2.25.1