Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/109986/?format=api
http://patches.dpdk.org/api/patches/109986/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220421123054.22442-5-nipun.gupta@nxp.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220421123054.22442-5-nipun.gupta@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220421123054.22442-5-nipun.gupta@nxp.com", "date": "2022-04-21T12:30:52", "name": "[4/6] dma/dpaa2: add PMD apis for additional configuration", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "625df96728c7f1fd77877fa06478ae84cefe8d65", "submitter": { "id": 471, "url": "http://patches.dpdk.org/api/people/471/?format=api", "name": "Nipun Gupta", "email": "nipun.gupta@nxp.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220421123054.22442-5-nipun.gupta@nxp.com/mbox/", "series": [ { "id": 22591, "url": "http://patches.dpdk.org/api/series/22591/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22591", "date": "2022-04-21T12:30:48", "name": "move DPAA2 QDMA driver freom raw to dma", "version": 1, "mbox": "http://patches.dpdk.org/series/22591/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/109986/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/109986/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id C6413A0093;\n\tThu, 21 Apr 2022 14:31:25 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E8144427FF;\n\tThu, 21 Apr 2022 14:31:02 +0200 (CEST)", "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by mails.dpdk.org (Postfix) with ESMTP id 873D0427EA\n for <dev@dpdk.org>; Thu, 21 Apr 2022 14:30:59 +0200 (CEST)", "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6A4162007B0;\n Thu, 21 Apr 2022 14:30:59 +0200 (CEST)", "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 084A42007CF;\n Thu, 21 Apr 2022 14:30:59 +0200 (CEST)", "from lsv03274.swis.in-blr01.nxp.com (lsv03274.swis.in-blr01.nxp.com\n [92.120.147.114])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 0A21F180031D;\n Thu, 21 Apr 2022 20:30:57 +0800 (+08)" ], "From": "nipun.gupta@nxp.com", "To": "dev@dpdk.org", "Cc": "thomas@monjalon.net, g.singh@nxp.com, hemant.agrawal@nxp.com,\n gakhil@marvell.com, Nipun Gupta <nipun.gupta@nxp.com>", "Subject": "[PATCH 4/6] dma/dpaa2: add PMD apis for additional configuration", "Date": "Thu, 21 Apr 2022 18:00:52 +0530", "Message-Id": "<20220421123054.22442-5-nipun.gupta@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20220421123054.22442-1-nipun.gupta@nxp.com>", "References": "<20220421123054.22442-1-nipun.gupta@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Nipun Gupta <nipun.gupta@nxp.com>\n\nAdd additional PMD APIs for DPAA2 QDMA driver for configuring\nRBP, Ultra Short format, and Scatter Gather support\n\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n drivers/dma/dpaa2/dpaa2_qdma.c | 38 ++++++++++\n drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h | 96 ++++++++++++++++++++++++++\n drivers/dma/dpaa2/version.map | 6 ++\n 3 files changed, 140 insertions(+)\n create mode 100644 drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h", "diff": "diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c b/drivers/dma/dpaa2/dpaa2_qdma.c\nindex 785d8aea7b..54db806736 100644\n--- a/drivers/dma/dpaa2/dpaa2_qdma.c\n+++ b/drivers/dma/dpaa2/dpaa2_qdma.c\n@@ -7,7 +7,10 @@\n #include <rte_dmadev.h>\n #include <rte_dmadev_pmd.h>\n #include <rte_kvargs.h>\n+\n #include <mc/fsl_dpdmai.h>\n+\n+#include \"rte_pmd_dpaa2_qdma.h\"\n #include \"dpaa2_qdma.h\"\n #include \"dpaa2_qdma_logs.h\"\n /* Dynamic log type identifier */\n@@ -71,6 +74,41 @@ dpaa2_qdma_configure(struct rte_dma_dev *dev,\n \treturn 0;\n }\n \n+/* Enable FD in Ultra Short format */\n+void\n+rte_dpaa2_qdma_vchan_fd_us_enable(int16_t dev_id, uint16_t vchan)\n+{\n+\tstruct rte_dma_fp_object *obj = &rte_dma_fp_objs[dev_id];\n+\tstruct dpaa2_dpdmai_dev *dpdmai_dev = obj->dev_private;\n+\tstruct qdma_device *qdma_dev = dpdmai_dev->qdma_dev;\n+\n+\tqdma_dev->vqs[vchan].flags |= DPAA2_QDMA_VQ_FD_SHORT_FORMAT;\n+}\n+\n+/* Enable internal SG processing */\n+void\n+rte_dpaa2_qdma_vchan_internal_sg_enable(int16_t dev_id, uint16_t vchan)\n+{\n+\tstruct rte_dma_fp_object *obj = &rte_dma_fp_objs[dev_id];\n+\tstruct dpaa2_dpdmai_dev *dpdmai_dev = obj->dev_private;\n+\tstruct qdma_device *qdma_dev = dpdmai_dev->qdma_dev;\n+\n+\tqdma_dev->vqs[vchan].flags |= DPAA2_QDMA_VQ_FD_SG_FORMAT;\n+}\n+\n+/* Enable RBP */\n+void\n+rte_dpaa2_qdma_vchan_rbp_enable(int16_t dev_id, uint16_t vchan,\n+\t\t\t\tstruct rte_dpaa2_qdma_rbp *rbp_config)\n+{\n+\tstruct rte_dma_fp_object *obj = &rte_dma_fp_objs[dev_id];\n+\tstruct dpaa2_dpdmai_dev *dpdmai_dev = obj->dev_private;\n+\tstruct qdma_device *qdma_dev = dpdmai_dev->qdma_dev;\n+\n+\tmemcpy(&qdma_dev->vqs[vchan].rbp, rbp_config,\n+\t\t\tsizeof(struct rte_dpaa2_qdma_rbp));\n+}\n+\n static int\n dpaa2_qdma_vchan_setup(struct rte_dma_dev *dev, uint16_t vchan,\n \t\t const struct rte_dma_vchan_conf *conf,\ndiff --git a/drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h b/drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h\nnew file mode 100644\nindex 0000000000..a75cdd7e36\n--- /dev/null\n+++ b/drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h\n@@ -0,0 +1,96 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2021-2022 NXP\n+ */\n+\n+#ifndef _RTE_PMD_DPAA2_QDMA_H_\n+#define _RTE_PMD_DPAA2_QDMA_H_\n+\n+/** States if the source addresses is physical. */\n+#define RTE_DPAA2_QDMA_JOB_SRC_PHY\t\t(1ULL << 30)\n+\n+/** States if the destination addresses is physical. */\n+#define RTE_DPAA2_QDMA_JOB_DEST_PHY\t\t(1ULL << 31)\n+\n+struct rte_dpaa2_qdma_rbp {\n+\tuint32_t use_ultrashort:1;\n+\tuint32_t enable:1;\n+\t/**\n+\t * dportid:\n+\t * 0000 PCI-Express 1\n+\t * 0001 PCI-Express 2\n+\t * 0010 PCI-Express 3\n+\t * 0011 PCI-Express 4\n+\t * 0100 PCI-Express 5\n+\t * 0101 PCI-Express 6\n+\t */\n+\tuint32_t dportid:4;\n+\tuint32_t dpfid:2;\n+\tuint32_t dvfid:6;\n+\t/*using route by port for destination */\n+\tuint32_t drbp:1;\n+\t/**\n+\t * sportid:\n+\t * 0000 PCI-Express 1\n+\t * 0001 PCI-Express 2\n+\t * 0010 PCI-Express 3\n+\t * 0011 PCI-Express 4\n+\t * 0100 PCI-Express 5\n+\t * 0101 PCI-Express 6\n+\t */\n+\tuint32_t sportid:4;\n+\tuint32_t spfid:2;\n+\tuint32_t svfid:6;\n+\t/* using route by port for source */\n+\tuint32_t srbp:1;\n+\tuint32_t rsv:4;\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enable FD in Ultra Short format on a channel. This API should be\n+ * called before calling 'rte_dma_vchan_setup()' API.\n+ *\n+ * @param dev_id\n+ * The identifier of the device.\n+ * @param vchan\n+ * The identifier of virtual DMA channel.\n+ */\n+__rte_experimental\n+void rte_dpaa2_qdma_vchan_fd_us_enable(int16_t dev_id, uint16_t vchan);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enable internal SG processing on a channel. This API should be\n+ * called before calling 'rte_dma_vchan_setup()' API.\n+ *\n+ * @param dev_id\n+ * The identifier of the device.\n+ * @param vchan\n+ * The identifier of virtual DMA channel.\n+ */\n+__rte_experimental\n+void rte_dpaa2_qdma_vchan_internal_sg_enable(int16_t dev_id, uint16_t vchan);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enable Route-by-port on a channel. This API should be\n+ * called before calling 'rte_dma_vchan_setup()' API.\n+ *\n+ * @param dev_id\n+ * The identifier of the device.\n+ * @param vchan\n+ * The identifier of virtual DMA channel.\n+ * @param rbp_config\n+ * Configuration for route-by-port\n+ */\n+__rte_experimental\n+void rte_dpaa2_qdma_vchan_rbp_enable(int16_t dev_id, uint16_t vchan,\n+\t\tstruct rte_dpaa2_qdma_rbp *rbp_config);\n+\n+#endif /* _RTE_PMD_DPAA2_QDMA_H_ */\ndiff --git a/drivers/dma/dpaa2/version.map b/drivers/dma/dpaa2/version.map\nindex c2e0723b4c..3b3019267f 100644\n--- a/drivers/dma/dpaa2/version.map\n+++ b/drivers/dma/dpaa2/version.map\n@@ -1,3 +1,9 @@\n DPDK_22 {\n \tlocal: *;\n };\n+\n+EXPERIMENTAL {\n+\trte_dpaa2_qdma_vchan_fd_us_enable;\n+\trte_dpaa2_qdma_vchan_internal_sg_enable;\n+\trte_dpaa2_qdma_vchan_rbp_enable;\n+};\n", "prefixes": [ "4/6" ] }{ "id": 109986, "url": "