Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/102014/?format=api
http://patches.dpdk.org/api/patches/102014/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211018123835.1080174-10-conor.walsh@intel.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": "<20211018123835.1080174-10-conor.walsh@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211018123835.1080174-10-conor.walsh@intel.com", "date": "2021-10-18T12:38:32", "name": "[v8,09/12] dma/ioat: add support for vchan status function", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "cb94e0d9e44d01f0411eb21107e3ef3b3baafddb", "submitter": { "id": 1935, "url": "http://patches.dpdk.org/api/people/1935/?format=api", "name": "Conor Walsh", "email": "conor.walsh@intel.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/20211018123835.1080174-10-conor.walsh@intel.com/mbox/", "series": [ { "id": 19738, "url": "http://patches.dpdk.org/api/series/19738/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19738", "date": "2021-10-18T12:38:23", "name": "dma: add dmadev driver for ioat devices", "version": 8, "mbox": "http://patches.dpdk.org/series/19738/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/102014/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/102014/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 66A8CA0C43;\n\tMon, 18 Oct 2021 14:39:39 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5D07741154;\n\tMon, 18 Oct 2021 14:39:06 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 65BA0410F8\n for <dev@dpdk.org>; Mon, 18 Oct 2021 14:39:04 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Oct 2021 05:39:04 -0700", "from silpixa00401160.ir.intel.com ([10.55.129.96])\n by orsmga005.jf.intel.com with ESMTP; 18 Oct 2021 05:39:01 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10140\"; a=\"228117675\"", "E=Sophos;i=\"5.85,382,1624345200\"; d=\"scan'208\";a=\"228117675\"", "E=Sophos;i=\"5.85,382,1624345200\"; d=\"scan'208\";a=\"661361156\"" ], "X-ExtLoop1": "1", "From": "Conor Walsh <conor.walsh@intel.com>", "To": "bruce.richardson@intel.com, thomas@monjalon.net, fengchengwen@huawei.com,\n jerinj@marvell.com, kevin.laatz@intel.com", "Cc": "dev@dpdk.org,\n\tConor Walsh <conor.walsh@intel.com>", "Date": "Mon, 18 Oct 2021 12:38:32 +0000", "Message-Id": "<20211018123835.1080174-10-conor.walsh@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20211018123835.1080174-1-conor.walsh@intel.com>", "References": "<20210827172550.1522362-1-conor.walsh@intel.com>\n <20211018123835.1080174-1-conor.walsh@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v8 09/12] dma/ioat: add support for vchan status\n function", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add support for the rte_dmadev_vchan_status API call.\n\nSigned-off-by: Conor Walsh <conor.walsh@intel.com>\nReviewed-by: Kevin Laatz <kevin.laatz@intel.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/dma/ioat/ioat_dmadev.c | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)", "diff": "diff --git a/drivers/dma/ioat/ioat_dmadev.c b/drivers/dma/ioat/ioat_dmadev.c\nindex 48126a1bcb..3d4d7b66e2 100644\n--- a/drivers/dma/ioat/ioat_dmadev.c\n+++ b/drivers/dma/ioat/ioat_dmadev.c\n@@ -542,6 +542,26 @@ ioat_stats_reset(struct rte_dma_dev *dev, uint16_t vchan __rte_unused)\n \treturn 0;\n }\n \n+/* Check if the IOAT device is idle. */\n+static int\n+ioat_vchan_status(const struct rte_dma_dev *dev, uint16_t vchan __rte_unused,\n+\t\tenum rte_dma_vchan_status *status)\n+{\n+\tint state = 0;\n+\tconst struct ioat_dmadev *ioat = dev->fp_obj->dev_private;\n+\tconst uint16_t mask = ioat->qcfg.nb_desc - 1;\n+\tconst uint16_t last = __get_last_completed(ioat, &state);\n+\n+\tif (state == IOAT_CHANSTS_HALTED || state == IOAT_CHANSTS_SUSPENDED)\n+\t\t*status = RTE_DMA_VCHAN_HALTED_ERROR;\n+\telse if (last == ((ioat->next_write - 1) & mask))\n+\t\t*status = RTE_DMA_VCHAN_IDLE;\n+\telse\n+\t\t*status = RTE_DMA_VCHAN_ACTIVE;\n+\n+\treturn 0;\n+}\n+\n /* Create a DMA device. */\n static int\n ioat_dmadev_create(const char *name, struct rte_pci_device *dev)\n@@ -555,6 +575,7 @@ ioat_dmadev_create(const char *name, struct rte_pci_device *dev)\n \t\t.dev_stop = ioat_dev_stop,\n \t\t.stats_get = ioat_stats_get,\n \t\t.stats_reset = ioat_stats_reset,\n+\t\t.vchan_status = ioat_vchan_status,\n \t\t.vchan_setup = ioat_vchan_setup,\n \t};\n \n", "prefixes": [ "v8", "09/12" ] }{ "id": 102014, "url": "