Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/53929/?format=api
https://patches.dpdk.org/api/patches/53929/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190530212525.40370-3-bruce.richardson@intel.com/", "project": { "id": 1, "url": "https://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": "<20190530212525.40370-3-bruce.richardson@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20190530212525.40370-3-bruce.richardson@intel.com", "date": "2019-05-30T21:25:19", "name": "[2/8] usertools/dpdk-devbind.py: add support for IOAT devices", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a54543bd90ac55c34da206229a781bd4b94d3b3f", "submitter": { "id": 20, "url": "https://patches.dpdk.org/api/people/20/?format=api", "name": "Bruce Richardson", "email": "bruce.richardson@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190530212525.40370-3-bruce.richardson@intel.com/mbox/", "series": [ { "id": 4831, "url": "https://patches.dpdk.org/api/series/4831/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4831", "date": "2019-05-30T21:25:17", "name": "raw/ioat: driver for Intel QuickData Technology", "version": 1, "mbox": "https://patches.dpdk.org/series/4831/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/53929/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/53929/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 417AD1B947;\n\tThu, 30 May 2019 23:25:50 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id F225737A2\n\tfor <dev@dpdk.org>; Thu, 30 May 2019 23:25:43 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t30 May 2019 14:25:42 -0700", "from silpixa00399126.ir.intel.com (HELO\n\tsilpixa00399126.ger.corp.intel.com) ([10.237.223.2])\n\tby orsmga001.jf.intel.com with ESMTP; 30 May 2019 14:25:42 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Bruce Richardson <bruce.richardson@intel.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>", "Date": "Thu, 30 May 2019 22:25:19 +0100", "Message-Id": "<20190530212525.40370-3-bruce.richardson@intel.com>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190530212525.40370-1-bruce.richardson@intel.com>", "References": "<20190530212525.40370-1-bruce.richardson@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 2/8] usertools/dpdk-devbind.py: add support for\n\tIOAT devices", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "In order to allow binding/unbinding of devices for use by the\nioat_rawdev, we need to update the devbind script to add a new class\nof device, and add device ids for the specific HW instances.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n doc/guides/rawdevs/ioat_rawdev.rst | 11 +++++++++++\n usertools/dpdk-devbind.py | 10 ++++++++++\n 2 files changed, 21 insertions(+)", "diff": "diff --git a/doc/guides/rawdevs/ioat_rawdev.rst b/doc/guides/rawdevs/ioat_rawdev.rst\nindex 40ab1b466..99e757498 100644\n--- a/doc/guides/rawdevs/ioat_rawdev.rst\n+++ b/doc/guides/rawdevs/ioat_rawdev.rst\n@@ -23,3 +23,14 @@ configurations.\n \n For builds using ``meson`` and ``ninja``, the driver will be built when the\n target platform is x86-based.\n+\n+Device Setup\n+-------------\n+\n+The Intel\\ |reg| QuickData Technology HW devices will need to be bound to a\n+user-space IO driver for use. The script ``dpdk-devbind.py`` script\n+included with DPDK can be used to view the state of the devices and to bind\n+them to a suitable DPDK-supported kernel driver. When querying the\n+status of the devices, they will appear under the category of \"dma\n+devices\", i.e. the command ``dpdk-devbind.py --status-dev dma`` can be used\n+to see the state of those devices alone.\ndiff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py\nindex 9e79f0d28..bd0d97df3 100755\n--- a/usertools/dpdk-devbind.py\n+++ b/usertools/dpdk-devbind.py\n@@ -36,11 +36,17 @@\n octeontx2_npa = {'Class': '08', 'Vendor': '177d', 'Device': 'a0fb,a0fc',\n 'SVendor': None, 'SDevice': None}\n \n+intel_ioat_bdw = {'Class': '08', 'Vendor': '8086', 'Device': '6f20,6f21,6f22,6f23,6f24,6f25,6f26,6f27,6f2e,6f2f',\n+ 'SVendor': None, 'SDevice': None}\n+intel_ioat_skx = {'Class': '08', 'Vendor': '8086', 'Device': '2021',\n+ 'SVendor': None, 'SDevice': None}\n+\n network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class]\n crypto_devices = [encryption_class, intel_processor_class]\n eventdev_devices = [cavium_sso, cavium_tim, octeontx2_sso]\n mempool_devices = [cavium_fpa, octeontx2_npa]\n compress_devices = [cavium_zip]\n+dma_devices = [intel_ioat_bdw, intel_ioat_skx]\n \n # global dict ethernet devices present. Dictionary indexed by PCI address.\n # Each device within this is itself a dictionary of device properties\n@@ -595,6 +601,8 @@ def show_status():\n if status_dev == \"compress\" or status_dev == \"all\":\n show_device_status(compress_devices , \"Compress\")\n \n+ if status_dev == \"dma\" or status_dev == \"all\":\n+ show_device_status(dma_devices, \"DMA\")\n \n def parse_args():\n '''Parses the command-line arguments given by the user and takes the\n@@ -670,6 +678,7 @@ def do_arg_actions():\n get_device_details(eventdev_devices)\n get_device_details(mempool_devices)\n get_device_details(compress_devices)\n+ get_device_details(dma_devices)\n show_status()\n \n \n@@ -690,6 +699,7 @@ def main():\n get_device_details(eventdev_devices)\n get_device_details(mempool_devices)\n get_device_details(compress_devices)\n+ get_device_details(dma_devices)\n do_arg_actions()\n \n if __name__ == \"__main__\":\n", "prefixes": [ "2/8" ] }{ "id": 53929, "url": "