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 87F8C41E8C; Tue, 14 Mar 2023 07:32:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76F9240F16; Tue, 14 Mar 2023 07:32:06 +0100 (CET) Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) by mails.dpdk.org (Postfix) with ESMTP id D29D6410D1 for ; Tue, 14 Mar 2023 07:32:05 +0100 (CET) Received: by mail-vs1-f50.google.com with SMTP id x14so13135075vso.9 for ; Mon, 13 Mar 2023 23:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678775525; 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=m0/q3SnMREyu4Sq9f4bWoRnp8NBqbkhoQcFEnFPF2k4=; b=UfyLMoSU2l5DK4sOX71ihq3gzmqb5E9rm625f2m0hFFrTS75sWo6lY4owXwDeuBCug GJuevcsgUo5NtGzEblYTICpaBxxPQ0u5lBcdPG+Vv3EoBs4X9UZZs87BlLDce+cuSplX JF6WUJ1r6+ANrZcHB1yJNuUkHMh76xfWzGSIoaWZm0YH6H93tm/PcvNsRQ6E4GH185T/ RKSU6sxmAhkeZHPOfJA+4sWKflcNV+PBYkS+SWXIzZJTVtxFpy4R55DdYDslI9tyYwm3 6VhslSb+B2NcmdOCmxwRbul1kYYGaXo4Orb7eOHt19Oh1llcwW7h6MuRzHwM/nt4XbKw d9EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678775525; 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=m0/q3SnMREyu4Sq9f4bWoRnp8NBqbkhoQcFEnFPF2k4=; b=5yNqTHXbjkULCnRwiSOHRWDnO9w/8X+vjKmnAa/to7fRmzcXedqvD4GdX2jz1G5Vd8 2DVwJy3noz8rIDAMrOYu2HOcWEKw5kCiG6xb76ZSGMSRWCGzuJNgLQvtCpsjpIakJsH9 Td/GGZxP60msEnupjHS8ZFo/zC3jQwOKLXvojGSh9EKy17yYOu8VHO1JSO60lheL7L4U jTDEIS54KaXqmIO++k5k4pUzGfNWiAd2uPHt0cMmE/FpPvbVswpJv+AbQpIL1SYtQrMg QDjCbRIPWpylW85GMu+SZOqBHTP3MRF3oqx/pgoTsRiLbmtRjg1gAu9A9yfAn1AL8ClH sQOw== X-Gm-Message-State: AO0yUKWRo8sleVBd7rJs985QL4VXjcGANu7Fih6l0EoeEOsRIxyFMvvK ipmBjAAs9lSmTRt3Vasf2EyDQpje3FmXfshTZOI= X-Google-Smtp-Source: AK7set/4MGrQk5GoH6uv5E5Yzl1bt27mRHyKt4bP1ENTJTkYhzV/AwEXRZfAqPFxkL1ZH3JWEjMjGqLZLFovGC+zqmw= X-Received: by 2002:a67:fb49:0:b0:425:9d7f:7a10 with SMTP id e9-20020a67fb49000000b004259d7f7a10mr2265318vsr.5.1678775525101; Mon, 13 Mar 2023 23:32:05 -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: Tue, 14 Mar 2023 12:01:39 +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. > > Signed-off-by: Srikanth Yalavarthi Acked-by: Jerin Jacob > --- > 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 >