Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-13 Thread Bruce Richardson
On Tue, Jul 13, 2021 at 03:19:39PM +0100, Ananyev, Konstantin wrote: > > > +#include "rte_dmadev_core.h" > > + > > +/** > > + * DMA flags to augment operation preparation. > > + * Used as the 'flags' parameter of rte_dmadev_copy/copy_sg/fill/fill_sg. > > + */ > > +#define RTE_DMA_FLAG_FENCE (1

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-13 Thread Ananyev, Konstantin
> +#include "rte_dmadev_core.h" > + > +/** > + * DMA flags to augment operation preparation. > + * Used as the 'flags' parameter of rte_dmadev_copy/copy_sg/fill/fill_sg. > + */ > +#define RTE_DMA_FLAG_FENCE (1ull << 0) > +/**< DMA fence flag > + * It means the operation with this flag must be

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-13 Thread Jerin Jacob
On Mon, Jul 12, 2021 at 9:21 PM Bruce Richardson wrote: > > On Sun, Jul 11, 2021 at 05:25:56PM +0800, Chengwen Feng wrote: > > This patch introduce 'dmadevice' which is a generic type of DMA > > device. > > > > The APIs of dmadev library exposes some generic operations which can > > enable configu

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-13 Thread Jerin Jacob
On Mon, Jul 12, 2021 at 10:30 PM Bruce Richardson wrote: > > On Mon, Jul 12, 2021 at 10:04:07PM +0530, Jerin Jacob wrote: > > On Mon, Jul 12, 2021 at 7:02 PM Bruce Richardson > > wrote: > > > > > > On Mon, Jul 12, 2021 at 03:29:27PM +0530, Jerin Jacob wrote: > > > > On Sun, Jul 11, 2021 at 2:59 P

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Bruce Richardson
On Mon, Jul 12, 2021 at 10:04:07PM +0530, Jerin Jacob wrote: > On Mon, Jul 12, 2021 at 7:02 PM Bruce Richardson > wrote: > > > > On Mon, Jul 12, 2021 at 03:29:27PM +0530, Jerin Jacob wrote: > > > On Sun, Jul 11, 2021 at 2:59 PM Chengwen Feng > > > wrote: > > > > > > > > This patch introduce 'dma

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Jerin Jacob
On Mon, Jul 12, 2021 at 7:02 PM Bruce Richardson wrote: > > On Mon, Jul 12, 2021 at 03:29:27PM +0530, Jerin Jacob wrote: > > On Sun, Jul 11, 2021 at 2:59 PM Chengwen Feng > > wrote: > > > > > > This patch introduce 'dmadevice' which is a generic type of DMA > > > device. > > > > > > The APIs of

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Bruce Richardson
On Sun, Jul 11, 2021 at 05:25:56PM +0800, Chengwen Feng wrote: > This patch introduce 'dmadevice' which is a generic type of DMA > device. > > The APIs of dmadev library exposes some generic operations which can > enable configuration and I/O with the DMA devices. > > Signed-off-by: Chengwen Feng

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Bruce Richardson
On Mon, Jul 12, 2021 at 03:29:27PM +0530, Jerin Jacob wrote: > On Sun, Jul 11, 2021 at 2:59 PM Chengwen Feng wrote: > > > > This patch introduce 'dmadevice' which is a generic type of DMA > > device. > > > > The APIs of dmadev library exposes some generic operations which can > > enable configurat

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Bruce Richardson
On Sun, Jul 11, 2021 at 05:25:56PM +0800, Chengwen Feng wrote: > This patch introduce 'dmadevice' which is a generic type of DMA > device. > > The APIs of dmadev library exposes some generic operations which can > enable configuration and I/O with the DMA devices. > > Signed-off-by: Chengwen Feng

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Jerin Jacob
On Sun, Jul 11, 2021 at 2:59 PM Chengwen Feng wrote: > > This patch introduce 'dmadevice' which is a generic type of DMA > device. > > The APIs of dmadev library exposes some generic operations which can > enable configuration and I/O with the DMA devices. > > Signed-off-by: Chengwen Feng > --- >

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jerin Jacob > > On Sun, Jul 11, 2021 at 3:12 PM fengchengwen > wrote: > > > > Note: > > 1) This patch hold dmadev <> vchan layer, I think vchan can be very > >conceptually separated from hw-channel. > > I would like to keep it as channel

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-12 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Chengwen Feng > > This patch introduce 'dmadevice' which is a generic type of DMA > device. > > The APIs of dmadev library exposes some generic operations which can > enable configuration and I/O with the DMA devices. > > Signed-off-by: Chen

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-11 Thread Jerin Jacob
On Sun, Jul 11, 2021 at 2:59 PM Chengwen Feng wrote: > > This patch introduce 'dmadevice' which is a generic type of DMA > device. > > The APIs of dmadev library exposes some generic operations which can > enable configuration and I/O with the DMA devices. > > Signed-off-by: Chengwen Feng > diff

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-11 Thread Jerin Jacob
On Sun, Jul 11, 2021 at 3:12 PM fengchengwen wrote: > > Note: > 1) This patch hold dmadev <> vchan layer, I think vchan can be very >conceptually separated from hw-channel. I would like to keep it as channel instead of virtual channel as it is implementation-specific. No strong opinion on thi

Re: [dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-11 Thread fengchengwen
Note: 1) This patch hold dmadev <> vchan layer, I think vchan can be very conceptually separated from hw-channel. 2) I could not under struct dpi_dma_queue_ctx_s, so this patch I define the rte_dma_slave_port_parameters refer to Kunpeng DMA implemention. 3) This patch hasn't include doxy rela

[dpdk-dev] [PATCH v2] dmadev: introduce DMA device library

2021-07-11 Thread Chengwen Feng
This patch introduce 'dmadevice' which is a generic type of DMA device. The APIs of dmadev library exposes some generic operations which can enable configuration and I/O with the DMA devices. Signed-off-by: Chengwen Feng --- MAINTAINERS |4 + config/rte_config.h |