From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1225E41E86; Mon, 13 Mar 2023 18:23:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 01FFE40E03; Mon, 13 Mar 2023 18:23:56 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id D69B4406BC for ; Mon, 13 Mar 2023 18:23:54 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32DGZVLl002414 for ; Mon, 13 Mar 2023 10:23:54 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=9HLFIzKXYxUQWPBhRgIldLmm+na3JboKRrTWErkxmGg=; b=CzEUM4SCgt98E5a14E3Zc2l4I/OptFCBhYwKa7laobKokOBMqwvu6nD7ev7IOgPs0b0b myYRfuEfI0ePjWfT3tJPFDnvAROR3IEUA1wgjPx0PdpGWo+S58P1d68KjkMHBw8TDpYj l8/qSieKtPS0ZEya6ciq6811LsAvJKeEVov0pMv/ZthXtS3fs4PqLW/xrCYy+NO6hOYr GP5iKm/qClyweDqSGpa/y17O+SkDHFDr5BbhdW4UQsXGDlwRPy15QHReXjYg/W+q/HAu Jmtb68+CSMEctJOShO3Gcdze7vEeTiuhGe/jxsZN2r9RuZwyu65oyw1l+ubGzPem/ms8 8A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3p8t1t6cgn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 13 Mar 2023 10:23:53 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 13 Mar 2023 10:23:51 -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.42 via Frontend Transport; Mon, 13 Mar 2023 10:23:51 -0700 Received: from ml-host-33.caveonetworks.com (unknown [10.110.143.233]) by maili.marvell.com (Postfix) with ESMTP id B918B3F705A; Mon, 13 Mar 2023 10:23:50 -0700 (PDT) From: Srikanth Yalavarthi To: CC: , , , Subject: [PATCH 1/1] usertools/devbind: add ml device class Date: Mon, 13 Mar 2023 10:23:49 -0700 Message-ID: <20230313172349.11716-1-syalavarthi@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: NLPkWkzoBf8CJdvgkkRLK_YNbmfucsKC X-Proofpoint-ORIG-GUID: NLPkWkzoBf8CJdvgkkRLK_YNbmfucsKC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-13_08,2023-03-13_02,2023-02-09_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Added new ML device class and support for cnxk ML device. Signed-off-by: Srikanth Yalavarthi --- usertools/dpdk-devbind.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py index 4d9c1be666..a278f5e7f3 100755 --- a/usertools/dpdk-devbind.py +++ b/usertools/dpdk-devbind.py @@ -75,6 +75,9 @@ virtio_blk = {'Class': '01', 'Vendor': "1af4", 'Device': '1001,1042', 'SVendor': None, 'SDevice': None} +cnxk_ml = {'Class': '08', 'Vendor': '177d', 'Device': 'a092', + 'SVendor': None, 'SDevice': None} + network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class] baseband_devices = [acceleration_class] crypto_devices = [encryption_class, intel_processor_class] @@ -84,6 +87,7 @@ mempool_devices = [cavium_fpa, cnxk_npa] compress_devices = [cavium_zip] regex_devices = [cn9k_ree] +ml_devices = [cnxk_ml] misc_devices = [cnxk_bphy, cnxk_bphy_cgx, cnxk_inl_dev, intel_ntb_skx, intel_ntb_icx, virtio_blk] @@ -618,6 +622,9 @@ def show_status(): if status_dev in ["regex", "all"]: show_device_status(regex_devices, "Regex") + if status_dev in ["ml", "all"]: + show_device_status(ml_devices, "ML") + def pci_glob(arg): '''Returns a list containing either: @@ -672,7 +679,7 @@ def parse_args(): '--status-dev', help="Print the status of given device group.", choices=['baseband', 'compress', 'crypto', 'dma', 'event', - 'mempool', 'misc', 'net', 'regex']) + 'mempool', 'misc', 'net', 'regex', 'ml']) bind_group = parser.add_mutually_exclusive_group() bind_group.add_argument( '-b', @@ -758,6 +765,7 @@ def do_arg_actions(): get_device_details(mempool_devices) get_device_details(compress_devices) get_device_details(regex_devices) + get_device_details(ml_devices) get_device_details(misc_devices) show_status() @@ -781,6 +789,7 @@ def main(): get_device_details(mempool_devices) get_device_details(compress_devices) get_device_details(regex_devices) + get_device_details(ml_devices) get_device_details(misc_devices) do_arg_actions() -- 2.17.1