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 319F4A0C45; Wed, 22 Sep 2021 04:19:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 15A7D4003F; Wed, 22 Sep 2021 04:19:36 +0200 (CEST) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by mails.dpdk.org (Postfix) with ESMTP id 78C934003C for ; Wed, 22 Sep 2021 04:19:34 +0200 (CEST) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4HDhmH3dtjzWMgG; Wed, 22 Sep 2021 10:18:23 +0800 (CST) Received: from dggpeml500024.china.huawei.com (7.185.36.10) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 22 Sep 2021 10:19:32 +0800 Received: from [10.40.190.165] (10.40.190.165) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 22 Sep 2021 10:19:32 +0800 To: Kevin Laatz , CC: , , References: <20210827172048.558704-1-kevin.laatz@intel.com> <20210917152437.3270330-1-kevin.laatz@intel.com> <20210917152437.3270330-16-kevin.laatz@intel.com> From: fengchengwen Message-ID: Date: Wed, 22 Sep 2021 10:19:31 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20210917152437.3270330-16-kevin.laatz@intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.190.165] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v5 15/16] devbind: add dma device class 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 Sender: "dev" Reviewed-by: Chengwen Feng On 2021/9/17 23:24, Kevin Laatz wrote: > Add a new class for DMA devices. Devices listed under the DMA class are to > be used with the dmadev library. > > Signed-off-by: Kevin Laatz > Reviewed-by: Conor Walsh > --- > usertools/dpdk-devbind.py | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > > diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py > index 74d16e4c4b..8bb573f4b0 100755 > --- a/usertools/dpdk-devbind.py > +++ b/usertools/dpdk-devbind.py > @@ -69,12 +69,13 @@ > network_devices = [network_class, cavium_pkx, avp_vnic, ifpga_class] > baseband_devices = [acceleration_class] > crypto_devices = [encryption_class, intel_processor_class] > +dma_devices = [] > eventdev_devices = [cavium_sso, cavium_tim, intel_dlb, octeontx2_sso] > mempool_devices = [cavium_fpa, octeontx2_npa] > compress_devices = [cavium_zip] > regex_devices = [octeontx2_ree] > -misc_devices = [cnxk_bphy, cnxk_bphy_cgx, intel_ioat_bdw, intel_ioat_skx, intel_ioat_icx, intel_idxd_spr, > - intel_ntb_skx, intel_ntb_icx, > +misc_devices = [cnxk_bphy, cnxk_bphy_cgx, intel_ioat_bdw, intel_ioat_skx, > + intel_ioat_icx, intel_idxd_spr, intel_ntb_skx, intel_ntb_icx, > octeontx2_dma] > > # global dict ethernet devices present. Dictionary indexed by PCI address. > @@ -583,6 +584,9 @@ def show_status(): > if status_dev in ["crypto", "all"]: > show_device_status(crypto_devices, "Crypto") > > + if status_dev in ["dma", "all"]: > + show_device_status(dma_devices, "DMA") > + > if status_dev in ["event", "all"]: > show_device_status(eventdev_devices, "Eventdev") > > @@ -651,7 +655,7 @@ def parse_args(): > parser.add_argument( > '--status-dev', > help="Print the status of given device group.", > - choices=['baseband', 'compress', 'crypto', 'event', > + choices=['baseband', 'compress', 'crypto', 'dma', 'event', > 'mempool', 'misc', 'net', 'regex']) > bind_group = parser.add_mutually_exclusive_group() > bind_group.add_argument( > @@ -732,6 +736,7 @@ def do_arg_actions(): > get_device_details(network_devices) > get_device_details(baseband_devices) > get_device_details(crypto_devices) > + get_device_details(dma_devices) > get_device_details(eventdev_devices) > get_device_details(mempool_devices) > get_device_details(compress_devices) > @@ -754,6 +759,7 @@ def main(): > get_device_details(network_devices) > get_device_details(baseband_devices) > get_device_details(crypto_devices) > + get_device_details(dma_devices) > get_device_details(eventdev_devices) > get_device_details(mempool_devices) > get_device_details(compress_devices) >