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 BCED241E86; Mon, 13 Mar 2023 18:31:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3E0C40E03; Mon, 13 Mar 2023 18:31:18 +0100 (CET) Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) by mails.dpdk.org (Postfix) with ESMTP id 2B2A9406BC for ; Mon, 13 Mar 2023 18:31:17 +0100 (CET) Received: by mail-ua1-f48.google.com with SMTP id f20so8803530uam.3 for ; Mon, 13 Mar 2023 10:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678728676; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=z6RT6wKRvIG4E614SqInb1dGcgAp2Tzv+riDU5ZXQ0U=; b=ReG5MF41ctTnPWO/j91CWoGcaM5A4SUKCUEByb3vEvCquy7Djv8NHn4MePWxiO/Io9 PxcMgQpWVcTa+rjDqW8+oCsF9+DK0H5sKKRQuqwuq6S/DFQO5Nd7XrG2drxfAt9XZkQ+ AdMdoPMx7vj2YjThmc8BI9ZVJKYhK4epYiuW8ItIrNBXhNLS5oK0AZhODNHD/jvlTnbB 5v/5MP71PcDv+kfmAWtwH4UMQFKT9jFzAUwg5OMDu57wAekzHVkfAtg9RggfJ38pc9rc 83+jK23Lcct8cGQH0oicbtuGH1UZTIo6hzMwhw9ttU5hRfBhFpMATmgH/fpZeH3JkXIb Oo/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678728676; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z6RT6wKRvIG4E614SqInb1dGcgAp2Tzv+riDU5ZXQ0U=; b=MgUseMFig/egjwC5oV4kh1gwb2ZLg5KO1c9MJdw19IN4s3OA9Zw9dpZOwRl94Na4HS Zn6MxtfU16/dZIQCVWhIniFItbQsluH1EtYTnivkN6al2gfpQcEZEH2Rgn4+tD/M4Sm7 8KYnpmbjkTEAohGwXzlmCe3c8ahUlslo9mRBLRIXeMWJwWXM4bOvltbBVI1dv5yXkuh5 LbbA9m8hcaVit2FsJtdUZeny2DhnJxQqy91EFqMvEe87z/wN45ZQxXwMf8cJCjpR00/E Ty1mp/AiHb5JlF8liCQvjdain4OQQcquLRWKyDOAtjeLbcdpkY9tLcJu5roI1mXVzOPp sQ5Q== X-Gm-Message-State: AO0yUKXbhkzvU6KLL7x4VEcih/JVLvP8cq3Be5tsB/Jcj8VbRXapDyCT 1i4PRewoJzhWGdqLtw5oGVd5WZXpONNBVncvmsk2yAOf2Ys= X-Google-Smtp-Source: AK7set/97kDUfI5A/xC6CXAogiKr4NS/HCczAvLBTvEYHKYB0fGqbkSRscKej785qKf7IklH+h5Vh2rEiP8vRf/ZCK8= X-Received: by 2002:a1f:2c15:0:b0:401:95ca:ea53 with SMTP id s21-20020a1f2c15000000b0040195caea53mr21214832vks.3.1678728676456; Mon, 13 Mar 2023 10:31:16 -0700 (PDT) MIME-Version: 1.0 References: <20230313172349.11716-1-syalavarthi@marvell.com> In-Reply-To: <20230313172349.11716-1-syalavarthi@marvell.com> From: Jerin Jacob Date: Mon, 13 Mar 2023 23:00:50 +0530 Message-ID: Subject: Re: [PATCH 1/1] usertools/devbind: add ml device class To: Srikanth Yalavarthi Cc: dev@dpdk.org, sshankarnara@marvell.com, jerinj@marvell.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Mon, Mar 13, 2023 at 10:53=E2=80=AFPM Srikanth Yalavarthi wrote: > > Added new ML device class and support for cnxk ML device. Please also add missing documentation connection at https://doc.dpdk.org/guides/platform/cnxk.html > > 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 =3D {'Class': '01', 'Vendor': "1af4", 'Device': '1001,1042', > 'SVendor': None, 'SDevice': None} > > +cnxk_ml =3D {'Class': '08', 'Vendor': '177d', 'Device': 'a092', > + 'SVendor': None, 'SDevice': None} > + > network_devices =3D [network_class, cavium_pkx, avp_vnic, ifpga_class] > baseband_devices =3D [acceleration_class] > crypto_devices =3D [encryption_class, intel_processor_class] > @@ -84,6 +87,7 @@ > mempool_devices =3D [cavium_fpa, cnxk_npa] > compress_devices =3D [cavium_zip] > regex_devices =3D [cn9k_ree] > +ml_devices =3D [cnxk_ml] > misc_devices =3D [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=3D"Print the status of given device group.", > choices=3D['baseband', 'compress', 'crypto', 'dma', 'event', > - 'mempool', 'misc', 'net', 'regex']) > + 'mempool', 'misc', 'net', 'regex', 'ml']) > bind_group =3D 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 >