From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0073.outbound.protection.outlook.com [104.47.0.73]) by dpdk.org (Postfix) with ESMTP id 5A9117CBE for ; Thu, 26 Apr 2018 12:15:32 +0200 (CEST) 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; bh=7YYWuEaUsE417XH/sEtD3e6mhh5v3H6E49cdiO0+OQI=; b=IW7TICXF5Ezx/glJsHoWkCKOLSmNhgj8EWk11CxKDBnpX0OQhugTCX7K5Oi6A13RBIf14y8Iw+QIDB/Rp0yNz0/3tjZvQvz5qPVILfrVjcu91nDAo6Rvf8VpEXzA3HGqfnHf1Scfhj6X2crqMO035LW9RZacWRWIDzrFm5J0Xy0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; Received: from b27504-OptiPlex-790.ap.freescale.net (14.142.187.166) by VI1PR0401MB2432.eurprd04.prod.outlook.com (2603:10a6:800:2a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 26 Apr 2018 10:15:29 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta Date: Thu, 26 Apr 2018 15:44:52 +0530 Message-Id: <1524737696-3145-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524737696-3145-1-git-send-email-nipun.gupta@nxp.com> References: <1523111645-8076-1-git-send-email-nipun.gupta@nxp.com> <1524737696-3145-1-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR01CA0089.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::29) To VI1PR0401MB2432.eurprd04.prod.outlook.com (2603:10a6:800:2a::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2432; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2432; 3:KlGj8PFOU8EqCGhntvG0IEcl6vq9vkPgBZw80dBdIQ8487lH6yaHrK6mlfAY6/IoIvmdNH8+NaPfKHIK+ZSPl5Uwa0gm2aE4rbMUTShiTDvgR+e/nJtK8H4vDYc7LDVsTI9uODJFM/ookPpeaZpNlHypIyX9zwKrVjAIdO0s8Mq2pilAzbmp9l1Qffb28JEURBa3uZC53YfnoKb4cbdeJ+gIEkFKM3NKg9W1R7fQnYmVc4sw9nyvxd28GCODW/V0; 25:H1GiuS4k8vJqhe0fvKfp+980AHXhUB3g9g85Pv1F0SFaWUGNl1ExNNQdBwx4nOoBinqJgRitU9FUShBumkWnHzvvPyfknJ8xOBZY5ouJyGpx+ZveJde5YcKsgBsH9RaqWsXYP2vx5Ho7SaJEuFOg66WLHX+HPdE71Keh9fqDRxi+qK+ZbSeQn+6J6NiEpqIcIvws7d28JWZm4LxUBzNSEe+FUwFq5+/sPo1VqEeQqgXLP1n+Gzl+tm2kL8enPbeon8JkIg1rpurxQd5sJvgBSsekptu18LZquQ/4H4LVoCkaiyNZT2Hk3WcBQpDXcAyA9VtNuAwSC4PN4jwAsSy3iA==; 31:BZgR9HaFqx7YGU4xCFrl60u4xYZ8qyK/AEiBsupaUajE0Zzyp7NB02v6EbrNUgx1jep1fNp7N9g1o+jOdtaubFJDQFuLFAhHGuV3nYE1Wr4kLM0nEuWKpZTvHRecZu5kuYCAed6kg7TsPns72AVwGaHIM5hNxZhosHNNvubKxyoZ87nUEmmWK+om25BvEX4qi/bH5CCdtOzxZbg9aAPpkWhlBjdqhGq4pn6y0VHkTRY= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2432: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2432; 20:vGMfKqE4pU8mdyPcHHT/AwJCoEkNz3Dv09UM6bx7rSfV0WateeWwxBC68ZyBZzCCKK7vhidEzWW/SwRqxi7OpTMCkrmfCiAN9Y4m5UfpN2NYxz76lagKS4bhuInOpM8XkTrQCPc3VyMhWth+WdULT0xt8iMe3Mnb5cxZcUQzbfE7LtEjccuRajSvHrYYkIzZqdcCLHN2fzkx9/Cwyw0Cfofq4/yFC7ESbSyoAouUbUWh+ak5SGyUeNRUeXcqqsXD1EDg2ePEOkZdg9H9qQLn7SNcwb/Hb7lu9JzN9q3XmdiG/rl2THTP4jfJlDoK/x8GhAPCKSzz7anYU8QBEkWM3RmxdH//2y70f0M86uTHXXz1pbx882FG7KyO6sJsdRpglsLCzHriYhOSmAQoD+yap93oQQLJVgG4ngZNsy3E83quESXDq63JrOG1dqJMlP2JQ3ELRpI6gscrcVK65H9cfNo2PaqiFDz//+By+BjFavIZH4wzY+zcDPXrhoa0ygEY; 4:zqAVz+Is44RKRF197LdVMaNAM18ak1Km8/SMAWk5uMEA51BWcWgjyMyRmese/rOIGFt6Hziub2lazxr/JkBibcfruo+Ge0SQjL4yLxTzxuKbDPIuwX02PiGYACP0QXhqTW3+QPegyLO7DlAZ4IeMr+t+o8oILO19Nfe2RFM61BIa3nIX5z5aFsPM3X5rN7MVp3cxeodLlWRLQJYao7ga2yyi3gYaVQ56JPE9EEsoZOHRCE5128/K1orKVqBucNVAXCHtUXeK/gRbcmIt/OIIBY4qQ9113QyIU5XwiheyKUVYMuERPgdv9lSqqFyWJA7JoB9xH5O0gPVMKdG1h7Z0gsXe5dlquNzyqtAdPZRccrY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3231232)(944501410)(52105095)(3002001)(6055026)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR0401MB2432; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2432; X-Forefront-PRVS: 0654257CF5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(376002)(366004)(39860400002)(346002)(396003)(199004)(189003)(106356001)(2906002)(3846002)(5009440100003)(6512007)(86362001)(478600001)(44832011)(36756003)(7736002)(5660300001)(6116002)(486006)(97736004)(4326008)(11346002)(956004)(476003)(6486002)(2616005)(446003)(386003)(6506007)(16586007)(53936002)(25786009)(81156014)(59450400001)(47776003)(52116002)(16526019)(66066001)(51416003)(6636002)(105586002)(316002)(50226002)(6666003)(8936002)(50466002)(8676002)(26005)(68736007)(305945005)(48376002)(81166006)(76176011)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2432; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2432; 23:SrUCFVDMO3n1J1iqEXW16YDA9VLI0ociubnH5js?= =?us-ascii?Q?RYp47yJMvGZ2yv1iur/wgO7FaZDhEbs5yBMW+rLy1icv4FMk699gv+Xj0OHE?= =?us-ascii?Q?I+wWdoWNMfEIInrGAhGZOUNH0aFly1RMkrKnBco+lj1kmoVp04Vv4Rbqmgm2?= =?us-ascii?Q?4jgl1G8+KeUt7OT+R+KGaCouCvp53eH4L/EEDqcIqmfK8G8nyusFXnNjGszB?= =?us-ascii?Q?3Exfwiek9LUNYLzy+oKN1TloB9SCIVtpzcjz7un+USomcbnuGqkpOpX6hsjT?= =?us-ascii?Q?fA4VIOlz7p4lS0Z9KmHMNL7ORhQ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BLJcpoBKTG/8A9ezSv6xJie5jwjkGNXAdWausVN+RDmvtFNshphtkYzv3s70kyfyOQl4OuC2AvQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2432; 7:hRRWZewN8eXs+95AZFU/2wtln59ATF8iOBQsBdtMHs2Nn8zpj10UFbtYvyaN+KI8UElpeJ0lMjw9ukQ/uAp9z5OGoBPKSWKeNqgasOiTSsUwqRV6RAEELJfrIsgj6MhFqmNexlKpZTwPSaXV4rHlhQ8DwqOEDtfovxRU9Bc3VmffwjMR31nwxsa0GULBEeOM6AGL3V/JRbeyIUUh7J2Hxygmkr3lElZ7eNYSPY656yVcNixMBFxDPE5bFtTZaw78 X-MS-Office365-Filtering-Correlation-Id: aa6fddee-e97b-41d2-7ea7-08d5ab5ea3d5 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 10:15:29.5965 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa6fddee-e97b-41d2-7ea7-08d5ab5ea3d5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2432 Subject: [dpdk-dev] [PATCH 3/7 v3] bus/fslmc: keep Tx queues information for DPCI devices too X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2018 10:15:33 -0000 The DPCI devices have oth Tx and Rx queues. Event devices use DPCI Rx queues only, but CMDIF (AIOP) uses both Tx and Rx queues. This patch enables Tx queues configuration too. Signed-off-by: Nipun Gupta Acked-by: Shreyansh Jain --- drivers/bus/fslmc/portal/dpaa2_hw_dpci.c | 86 +++++++++++++++++++++++--------- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 3 +- drivers/event/dpaa2/dpaa2_eventdev.c | 10 ++-- 3 files changed, 70 insertions(+), 29 deletions(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpci.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpci.c index aee870a..5ad0374 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpci.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpci.c @@ -39,13 +39,14 @@ struct dpci_attr attr; struct dpci_rx_queue_cfg rx_queue_cfg; struct dpci_rx_queue_attr rx_attr; + struct dpci_tx_queue_attr tx_attr; int ret, i; /* Allocate DPAA2 dpci handle */ dpci_node = rte_malloc(NULL, sizeof(struct dpaa2_dpci_dev), 0); if (!dpci_node) { DPAA2_BUS_ERR("Memory allocation failed for DPCI Device"); - return -1; + return -ENOMEM; } /* Open the dpci object */ @@ -54,8 +55,7 @@ CMD_PRI_LOW, dpci_id, &dpci_node->token); if (ret) { DPAA2_BUS_ERR("Resource alloc failure with err code: %d", ret); - rte_free(dpci_node); - return -1; + goto err; } /* Get the device attributes */ @@ -63,21 +63,40 @@ CMD_PRI_LOW, dpci_node->token, &attr); if (ret != 0) { DPAA2_BUS_ERR("Reading device failed with err code: %d", ret); - rte_free(dpci_node); - return -1; + goto err; } - /* Set up the Rx Queue */ - memset(&rx_queue_cfg, 0, sizeof(struct dpci_rx_queue_cfg)); - ret = dpci_set_rx_queue(&dpci_node->dpci, - CMD_PRI_LOW, - dpci_node->token, - 0, &rx_queue_cfg); - if (ret) { - DPAA2_BUS_ERR("Setting Rx queue failed with err code: %d", - ret); - rte_free(dpci_node); - return -1; + for (i = 0; i < DPAA2_DPCI_MAX_QUEUES; i++) { + struct dpaa2_queue *rxq; + + memset(&rx_queue_cfg, 0, sizeof(struct dpci_rx_queue_cfg)); + ret = dpci_set_rx_queue(&dpci_node->dpci, + CMD_PRI_LOW, + dpci_node->token, + i, &rx_queue_cfg); + if (ret) { + DPAA2_BUS_ERR("Setting Rx queue failed with err code: %d", + ret); + goto err; + } + + /* Allocate DQ storage for the DPCI Rx queues */ + rxq = &(dpci_node->rx_queue[i]); + rxq->q_storage = rte_malloc("dq_storage", + sizeof(struct queue_storage_info_t), + RTE_CACHE_LINE_SIZE); + if (!rxq->q_storage) { + DPAA2_BUS_ERR("q_storage allocation failed\n"); + ret = -ENOMEM; + goto err; + } + + memset(rxq->q_storage, 0, sizeof(struct queue_storage_info_t)); + ret = dpaa2_alloc_dq_storage(rxq->q_storage); + if (ret) { + DPAA2_BUS_ERR("dpaa2_alloc_dq_storage failed\n"); + goto err; + } } /* Enable the device */ @@ -85,8 +104,7 @@ CMD_PRI_LOW, dpci_node->token); if (ret != 0) { DPAA2_BUS_ERR("Enabling device failed with err code: %d", ret); - rte_free(dpci_node); - return -1; + goto err; } for (i = 0; i < DPAA2_DPCI_MAX_QUEUES; i++) { @@ -96,13 +114,22 @@ dpci_node->token, i, &rx_attr); if (ret != 0) { - DPAA2_BUS_ERR("Rx queue fetch failed with err code:" - " %d", ret); - rte_free(dpci_node); - return -1; + DPAA2_BUS_ERR("Rx queue fetch failed with err code: %d", + ret); + goto err; } + dpci_node->rx_queue[i].fqid = rx_attr.fqid; - dpci_node->queue[i].fqid = rx_attr.fqid; + ret = dpci_get_tx_queue(&dpci_node->dpci, + CMD_PRI_LOW, + dpci_node->token, i, + &tx_attr); + if (ret != 0) { + DPAA2_BUS_ERR("Reading device failed with err code: %d", + ret); + goto err; + } + dpci_node->tx_queue[i].fqid = tx_attr.fqid; } dpci_node->dpci_id = dpci_id; @@ -111,6 +138,19 @@ TAILQ_INSERT_TAIL(&dpci_dev_list, dpci_node, next); return 0; + +err: + for (i = 0; i < DPAA2_DPCI_MAX_QUEUES; i++) { + struct dpaa2_queue *rxq = &(dpci_node->rx_queue[i]); + + if (rxq->q_storage) { + dpaa2_free_dq_storage(rxq->q_storage); + rte_free(rxq->q_storage); + } + } + rte_free(dpci_node); + + return ret; } struct dpaa2_dpci_dev *rte_dpaa2_alloc_dpci_dev(void) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 8fd4ef9..fba8f54 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -142,7 +142,8 @@ struct dpaa2_dpci_dev { uint16_t token; rte_atomic16_t in_use; uint32_t dpci_id; /*HW ID for DPCI object */ - struct dpaa2_queue queue[DPAA2_DPCI_MAX_QUEUES]; + struct dpaa2_queue rx_queue[DPAA2_DPCI_MAX_QUEUES]; + struct dpaa2_queue tx_queue[DPAA2_DPCI_MAX_QUEUES]; }; /*! Global MCP list */ diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index f50bb8d..0199d66 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -87,10 +87,10 @@ const struct rte_event *event = &ev[num_tx + loop]; if (event->sched_type != RTE_SCHED_TYPE_ATOMIC) - fqid = evq_info->dpci->queue[ + fqid = evq_info->dpci->rx_queue[ DPAA2_EVENT_DPCI_PARALLEL_QUEUE].fqid; else - fqid = evq_info->dpci->queue[ + fqid = evq_info->dpci->rx_queue[ DPAA2_EVENT_DPCI_ATOMIC_QUEUE].fqid; /* Prepare enqueue descriptor */ @@ -733,13 +733,13 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp, rx_queue_cfg.dest_cfg.dest_id = dpcon_dev->dpcon_id; rx_queue_cfg.dest_cfg.priority = DPAA2_EVENT_DEFAULT_DPCI_PRIO; - dpci_dev->queue[DPAA2_EVENT_DPCI_PARALLEL_QUEUE].cb = + dpci_dev->rx_queue[DPAA2_EVENT_DPCI_PARALLEL_QUEUE].cb = dpaa2_eventdev_process_parallel; - dpci_dev->queue[DPAA2_EVENT_DPCI_ATOMIC_QUEUE].cb = + dpci_dev->rx_queue[DPAA2_EVENT_DPCI_ATOMIC_QUEUE].cb = dpaa2_eventdev_process_atomic; for (i = 0 ; i < DPAA2_EVENT_DPCI_MAX_QUEUES; i++) { - rx_queue_cfg.user_ctx = (size_t)(&dpci_dev->queue[i]); + rx_queue_cfg.user_ctx = (size_t)(&dpci_dev->rx_queue[i]); ret = dpci_set_rx_queue(&dpci_dev->dpci, CMD_PRI_LOW, dpci_dev->token, i, -- 1.9.1