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 7FFF2A0C4E; Tue, 2 Nov 2021 12:49:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 444504068F; Tue, 2 Nov 2021 12:49:12 +0100 (CET) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id B3D6940689 for ; Tue, 2 Nov 2021 12:49:10 +0100 (CET) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Hk7NS1pKBzbhDM; Tue, 2 Nov 2021 19:44:24 +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.15; Tue, 2 Nov 2021 19:49:08 +0800 Received: from [127.0.0.1] (10.67.100.224) 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.15; Tue, 2 Nov 2021 19:49:07 +0800 To: Radha Mohan Chintakuntla , , , , , , , CC: References: <20211026041300.28924-1-radhac@marvell.com> <20211102034019.28900-1-radhac@marvell.com> <20211102034019.28900-2-radhac@marvell.com> From: fengchengwen Message-ID: <9a1c67a6-be48-e902-06ca-72b4d0c244e9@huawei.com> Date: Tue, 2 Nov 2021 19:49:07 +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: <20211102034019.28900-2-radhac@marvell.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.100.224] 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 v2 2/4] dma/cnxk: create and initialize dmadev on pci probe 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" On 2021/11/2 11:40, Radha Mohan Chintakuntla wrote: > This patch creates and initializes a dmadev device on pci probe. > > Signed-off-by: Radha Mohan Chintakuntla > --- ... > +RTE_PMD_REGISTER_PCI(cnxk_dmadev_pci_driver, cnxk_dmadev); > +RTE_PMD_REGISTER_PCI_TABLE(cnxk_dmadev_pci_driver, cnxk_dma_pci_map); > +RTE_PMD_REGISTER_KMOD_DEP(cnxk_dmadev_pci_driver, "vfio-pci"); > diff --git a/drivers/dma/cnxk/cnxk_dmadev.h b/drivers/dma/cnxk/cnxk_dmadev.h > new file mode 100644 > index 0000000000..9e0bb7b2ce > --- /dev/null > +++ b/drivers/dma/cnxk/cnxk_dmadev.h > @@ -0,0 +1,11 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(C) 2021 Marvell International Ltd. > + */ > +#ifndef _CNXK_DMADEV_H_ > +#define _CNXK_DMADEV_H_ suggest remove underline > + > +struct cnxk_dpi_vf_s { > + struct roc_dpi rdpi; > +}; > + > +#endif > diff --git a/drivers/dma/cnxk/meson.build b/drivers/dma/cnxk/meson.build > new file mode 100644 > index 0000000000..9489d6e6dc > --- /dev/null > +++ b/drivers/dma/cnxk/meson.build > @@ -0,0 +1,7 @@ > +# SPDX-License-Identifier: BSD-3-Clause > +# Copyright(C) 2021 Marvell International Ltd. > +# > + > +deps += ['bus_pci', 'common_cnxk', 'dmadev'] > +sources = files('cnxk_dmadev.c') > +headers = files('cnxk_dmadev.h') > diff --git a/drivers/dma/meson.build b/drivers/dma/meson.build > index a69418ce9b..c562c8b429 100644 > --- a/drivers/dma/meson.build > +++ b/drivers/dma/meson.build > @@ -2,6 +2,7 @@ > # Copyright 2021 HiSilicon Limited > > drivers = [ > + 'cnxk', > 'idxd', > 'ioat', > 'skeleton', > Acked-by: Chengwen Feng