From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BBC23A04C0; Tue, 13 Oct 2020 12:13:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C2D3F1C124; Tue, 13 Oct 2020 12:11:59 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id DE4B41BEE1 for ; Tue, 13 Oct 2020 12:11:57 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09DAB5bJ001956; Tue, 13 Oct 2020 03:11:54 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=Nm2T16kDFjn8Qo7yO5emEdMXBXhaiKGxoCRhWI9UiDE=; b=Hp6aVJNWzG6S6tTkuVwLWdsYmVq4HKhVj9/2pDM/PRLcheaTA6wxwFcA/2ae+wWNFhdH gYGsN2Jq2un9lrhh5J/kJck7MdQEgn+GslzOgIaWWtPNoCjIOF5yL3QaAtcrcBzRwYfl EPTDXZIxi/GYRRjt35cjy2G+s8uTbn4vqLgwp6ywEe6zJqmlh70Xlvqx9HxO3cKnLC5L 7LIc7kAbs3Gi/HmURJTiG1j72vwGaokLCfvQLxL573aptJbRKDynoQ0/TK1rnj1L/wGt +GyITVOz3KrITnV/NAPpgCzS997mnJ/YqGn7VCLV0HdqyUPLswORMSWji1nroQzMOSAA 4w== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 343aanjfxd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 13 Oct 2020 03:11:54 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Oct 2020 03:11:50 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 13 Oct 2020 03:11:50 -0700 Received: from vvenus124.il.marvell.com (unknown [10.5.116.64]) by maili.marvell.com (Postfix) with ESMTP id AC95A3F7040; Tue, 13 Oct 2020 03:11:46 -0700 (PDT) From: To: , , , , , , , , , CC: , , , , Date: Tue, 13 Oct 2020 13:10:11 +0300 Message-ID: <20201013101011.21015-4-guyk@marvell.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201013101011.21015-1-guyk@marvell.com> References: <20200901122436.17748-1-guyk@marvell.com> <20201013101011.21015-1-guyk@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-13_03:2020-10-13, 2020-10-13 signatures=0 Subject: [dpdk-dev] [PATCH v3 3/3] usertools: add octeontx2 REE device binding 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Guy Kaneti Update the devbind script with new section of regex devices, also added OCTEONTX2 REE device ID to regex device list Signed-off-by: Guy Kaneti --- doc/guides/regexdevs/octeontx2.rst | 11 +++++++++++ usertools/dpdk-devbind.py | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/doc/guides/regexdevs/octeontx2.rst b/doc/guides/regexdevs/octeontx2.rst index 87659b661..859780da1 100644 --- a/doc/guides/regexdevs/octeontx2.rst +++ b/doc/guides/regexdevs/octeontx2.rst @@ -24,6 +24,17 @@ Prerequisites and Compilation procedure See :doc:`../platform/octeontx2` for setup information. +Device Setup +------------ + +The OCTEON TX2 REE devices will need to be bound to a user-space IO driver +for use. The script ``dpdk-devbind.py`` script included with DPDK can be +used to view the state of the devices and to bind them to a suitable +DPDK-supported kernel driver. When querying the status of the devices, +they will appear under the category of "REGEX devices", i.e. the command +``dpdk-devbind.py --status-dev regex`` can be used to see the state of +those devices alone. + Debugging Options ----------------- diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 1d1113a08..99112b7ab 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -41,6 +41,8 @@ 'SVendor': None, 'SDevice': None} octeontx2_dma = {'Class': '08', 'Vendor': '177d', 'Device': 'a081', 'SVendor': None, 'SDevice': None} +octeontx2_ree = {'Class': '08', 'Vendor': '177d', 'Device': 'a0f4', + 'SVendor': None, 'SDevice': None} intel_ioat_bdw = {'Class': '08', 'Vendor': '8086', 'Device': '6f20,6f21,6f22,6f23,6f24,6f25,6f26,6f27,6f2e,6f2f', 'SVendor': None, 'SDevice': None} @@ -61,6 +63,7 @@ eventdev_devices = [cavium_sso, cavium_tim, octeontx2_sso] mempool_devices = [cavium_fpa, octeontx2_npa] compress_devices = [cavium_zip] +regex_devices = [octeontx2_ree] misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_idxd_spr, intel_ntb_skx, intel_ntb_icx, octeontx2_dma] @@ -650,6 +653,9 @@ def show_status(): if status_dev == "misc" or status_dev == "all": show_device_status(misc_devices, "Misc (rawdev)") + if status_dev == "regex" or status_dev == "all": + show_device_status(regex_devices, "Regex") + def pci_glob(arg): '''Returns a list containing either: @@ -742,6 +748,7 @@ def do_arg_actions(): get_device_details(eventdev_devices) get_device_details(mempool_devices) get_device_details(compress_devices) + get_device_details(regex_devices) get_device_details(misc_devices) show_status() @@ -763,6 +770,7 @@ def main(): get_device_details(eventdev_devices) get_device_details(mempool_devices) get_device_details(compress_devices) + get_device_details(regex_devices) get_device_details(misc_devices) do_arg_actions() -- 2.28.0