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 7662CA0C43; Fri, 8 Oct 2021 03:53:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F41C14067E; Fri, 8 Oct 2021 03:52:59 +0200 (CEST) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by mails.dpdk.org (Postfix) with ESMTP id 2F5DE4003C for ; Fri, 8 Oct 2021 03:52:57 +0200 (CEST) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4HQWPn2hCwz1DHTT; Fri, 8 Oct 2021 09:51:25 +0800 (CST) Received: from dggpeml500024.china.huawei.com (7.185.36.10) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Fri, 8 Oct 2021 09:52:55 +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.8; Fri, 8 Oct 2021 09:52:55 +0800 To: Radha Mohan CC: Thomas Monjalon , , , Jerin Jacob Kollanukkaran , Jerin Jacob , , dpdk-dev , , , , , , David Marchand , Satananda Burla , , , , , Radha Chintakuntla References: <1625231891-2963-1-git-send-email-fengchengwen@huawei.com> <20210924105357.15386-1-fengchengwen@huawei.com> <20210924105357.15386-2-fengchengwen@huawei.com> From: fengchengwen Message-ID: <90bc32fa-a070-4d53-2eed-c1e333624630@huawei.com> Date: Fri, 8 Oct 2021 09:52:55 +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: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.100.224] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v23 1/6] dmadev: introduce DMA device library 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/10/5 5:12, Radha Mohan wrote: > On Fri, Sep 24, 2021 at 3:58 AM Chengwen Feng wrote: >> >> The 'dmadevice' is a generic type of DMA device. >> >> This patch introduce the 'dmadevice' device allocation APIs. >> >> The infrastructure is prepared to welcome drivers in drivers/dma/ >> >> Signed-off-by: Chengwen Feng >> Acked-by: Bruce Richardson >> Acked-by: Morten Brørup >> Acked-by: Jerin Jacob >> Reviewed-by: Kevin Laatz >> Reviewed-by: Conor Walsh >> --- >> MAINTAINERS | 5 + >> config/rte_config.h | 3 + >> doc/api/doxy-api-index.md | 1 + >> doc/api/doxy-api.conf.in | 1 + >> doc/guides/dmadevs/index.rst | 12 ++ >> doc/guides/index.rst | 1 + >> doc/guides/prog_guide/dmadev.rst | 64 ++++++ >> doc/guides/prog_guide/img/dmadev.svg | 283 +++++++++++++++++++++++++ >> doc/guides/prog_guide/index.rst | 1 + >> doc/guides/rel_notes/release_21_11.rst | 4 + >> drivers/dma/meson.build | 4 + >> drivers/meson.build | 1 + >> lib/dmadev/meson.build | 7 + >> lib/dmadev/rte_dmadev.c | 263 +++++++++++++++++++++++ >> lib/dmadev/rte_dmadev.h | 134 ++++++++++++ >> lib/dmadev/rte_dmadev_core.h | 51 +++++ >> lib/dmadev/rte_dmadev_pmd.h | 60 ++++++ >> lib/dmadev/version.map | 20 ++ >> lib/meson.build | 1 + >> 19 files changed, 916 insertions(+) >> create mode 100644 doc/guides/dmadevs/index.rst >> create mode 100644 doc/guides/prog_guide/dmadev.rst >> create mode 100644 doc/guides/prog_guide/img/dmadev.svg >> create mode 100644 drivers/dma/meson.build >> create mode 100644 lib/dmadev/meson.build >> create mode 100644 lib/dmadev/rte_dmadev.c >> create mode 100644 lib/dmadev/rte_dmadev.h >> create mode 100644 lib/dmadev/rte_dmadev_core.h >> create mode 100644 lib/dmadev/rte_dmadev_pmd.h >> create mode 100644 lib/dmadev/version.map >> > > Hi Chengwen, > I see that the new version removed the "rte_dmadev_get_device_by_name()". > What is the way to get the dmadev from inside the PMD .remove ? I am > looking to get the dev_private as we need to do some cleanup > operations from the remove function. Hi Radha, PMD should invoke rte_dma_pmd_release when .remove, and the rte_dma_pmd_release will call dev_close ops, so that PMD could do some cleanup operations in dev_close ops. Thanks > > regards, > Radha Mohan > > . >