On 2021/10/5 5:12, Radha Mohan wrote: > On Fri, Sep 24, 2021 at 3:58 AM Chengwen Feng <fengcheng...@huawei.com> 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 <fengcheng...@huawei.com> >> Acked-by: Bruce Richardson <bruce.richard...@intel.com> >> Acked-by: Morten Brørup <m...@smartsharesystems.com> >> Acked-by: Jerin Jacob <jerinjac...@gmail.com> >> Reviewed-by: Kevin Laatz <kevin.la...@intel.com> >> Reviewed-by: Conor Walsh <conor.wa...@intel.com> >> --- >> 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 >> > <snip> > 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 > > . >