From patchwork Mon Oct 12 11:31:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guy Kaneti X-Patchwork-Id: 80360 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 07142A04B6; Mon, 12 Oct 2020 13:34:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 562AE1D6FA; Mon, 12 Oct 2020 13:33:36 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 3213C1D6F6 for ; Mon, 12 Oct 2020 13:33:34 +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 09CBPew9008559; Mon, 12 Oct 2020 04:33:30 -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=v8DKpZUrc5hCNycwDmw7H7Ehrb+ZviK5DfOuNcMJNCs=; b=SOfK992CxlGmKa0QPOYP23G2NeJc3eGx3K+mTug2LIS5xLbQrORmZLpOCC3jEpqiMKVR bNik7uQIt/fCbhlprCOfoySs0tKzuAvlo5tIzkBFIqEeRVhTQg5nM2zHYaxa5xHfgOLB lvVMA6OHhz0jqNfJmrP/ONXQ+xmMNxGRxJiA2KtmbUnZOCnMvW1UM5uXbSKz2vWw5yZJ XSVmHaF9r4II1IDw0thJQfrDKPb0ELE/sgkHvQuYPGLRJidVkT0bc0H0YJS8kcQAItfF 39kIy4d73MtiInsNrXrbVFZGW6e+vq/rTEpJ7KGFOX/IjuHwagf6UTiFLGcN+Hk1KW30 IQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 343aandwxs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 12 Oct 2020 04:33:30 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Oct 2020 04:33:29 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 12 Oct 2020 04:33:29 -0700 Received: from vvenus124.il.marvell.com (unknown [10.5.116.64]) by maili.marvell.com (Postfix) with ESMTP id 33A313F7040; Mon, 12 Oct 2020 04:33:25 -0700 (PDT) From: To: , , , , , , , , , CC: , , , , Date: Mon, 12 Oct 2020 14:31:34 +0300 Message-ID: <20201012113135.19476-4-guyk@marvell.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012113135.19476-1-guyk@marvell.com> References: <20200901122436.17748-1-guyk@marvell.com> <20201012113135.19476-1-guyk@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-12_09:2020-10-12, 2020-10-12 signatures=0 Subject: [dpdk-dev] [PATCH v2 3/4] 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 --- usertools/dpdk-devbind.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 1d1113a08..cb2fc6009 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} @@ -64,6 +66,7 @@ misc_devices = [intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_idxd_spr, intel_ntb_skx, intel_ntb_icx, octeontx2_dma] +regex_devices = [octeontx2_ree] # global dict ethernet devices present. Dictionary indexed by PCI address. # Each device within this is itself a dictionary of device properties @@ -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: @@ -743,6 +749,7 @@ def do_arg_actions(): get_device_details(mempool_devices) get_device_details(compress_devices) get_device_details(misc_devices) + get_device_details(regex_devices) show_status() @@ -764,6 +771,7 @@ def main(): get_device_details(mempool_devices) get_device_details(compress_devices) get_device_details(misc_devices) + get_device_details(regex_devices) do_arg_actions() if __name__ == "__main__":