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

2021-06-24 Thread fengchengwen
OK, thank Bruce How about next week ? PS: I still working on V2 and hope it as a basis for discussion. On 2021/6/23 22:56, Bruce Richardson wrote: > This is developing into quite a long discussion with multiple threads > ongoing at the same time. Since it's getting relatively hard to follow (at >

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

2021-06-24 Thread Jerin Jacob
On Thu, Jun 24, 2021 at 1:29 PM Morten Brørup wrote: > > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jerin Jacob > > Sent: Thursday, 24 June 2021 09.03 > > > > On Wed, Jun 23, 2021 at 9:20 AM fengchengwen > > wrote: > > > > > > > > > > > > > prototype like the following works for us:

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

2021-06-24 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jerin Jacob > Sent: Thursday, 24 June 2021 09.03 > > On Wed, Jun 23, 2021 at 9:20 AM fengchengwen > wrote: > > > > > > > > > prototype like the following works for us: > > > rte_dmadev_enq_sg(void **src, void **dest, unsigned int **length, >

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

2021-06-24 Thread Jerin Jacob
On Wed, Jun 23, 2021 at 9:20 AM fengchengwen wrote: > > >> > >> So I prefer following prototype: > >> uint16_t rte_dmadev_completed(uint16_t dev_id, dma_cookie_t *cookie, > >> uint16_t nb_cpls, bool *has_error) > >> -- nb_cpls: indicate max process operations number > >> -- has_error:

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

2021-06-23 Thread Jerin Jacob
On Wed, Jun 23, 2021 at 7:50 PM Bruce Richardson wrote: > > On Wed, Jun 23, 2021 at 05:10:22PM +0530, Jerin Jacob wrote: > > On Wed, Jun 23, 2021 at 3:07 PM Bruce Richardson > > wrote: > > > > > > On Wed, Jun 23, 2021 at 12:51:07PM +0530, Jerin Jacob wrote: > > > > On Wed, Jun 23, 2021 at 9:00 AM

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

2021-06-23 Thread Bruce Richardson
This is developing into quite a long discussion with multiple threads ongoing at the same time. Since it's getting relatively hard to follow (at least for me), can I suggest that we actually hold a call to discuss "dmadev" and to move things along. Since most of the dicussion participants I believe

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

2021-06-23 Thread Bruce Richardson
On Wed, Jun 23, 2021 at 05:16:28PM +0530, Jerin Jacob wrote: > On Wed, Jun 23, 2021 at 3:11 PM Bruce Richardson > wrote: > > > > On Tue, Jun 22, 2021 at 10:55:24PM +0530, Jerin Jacob wrote: > > > On Fri, Jun 18, 2021 at 3:11 PM fengchengwen > > > wrote: > > > > > > > > On 2021/6/18 13:52, Jerin J

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

2021-06-23 Thread Bruce Richardson
On Wed, Jun 23, 2021 at 05:10:22PM +0530, Jerin Jacob wrote: > On Wed, Jun 23, 2021 at 3:07 PM Bruce Richardson > wrote: > > > > On Wed, Jun 23, 2021 at 12:51:07PM +0530, Jerin Jacob wrote: > > > On Wed, Jun 23, 2021 at 9:00 AM fengchengwen > > > wrote: > > > > > > > > > > > > > Currently, it i

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

2021-06-23 Thread Jerin Jacob
On Wed, Jun 23, 2021 at 3:11 PM Bruce Richardson wrote: > > On Tue, Jun 22, 2021 at 10:55:24PM +0530, Jerin Jacob wrote: > > On Fri, Jun 18, 2021 at 3:11 PM fengchengwen > > wrote: > > > > > > On 2021/6/18 13:52, Jerin Jacob wrote: > > > > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > > > >

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

2021-06-23 Thread Jerin Jacob
On Wed, Jun 23, 2021 at 3:07 PM Bruce Richardson wrote: > > On Wed, Jun 23, 2021 at 12:51:07PM +0530, Jerin Jacob wrote: > > On Wed, Jun 23, 2021 at 9:00 AM fengchengwen > > wrote: > > > > > > > > > Currently, it is hard to define generic dma descriptor, I think the > > > well-defined > > > AP

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

2021-06-23 Thread Jerin Jacob
ev@dpdk.org; nipun.gu...@nxp.com; hemant.agra...@nxp.com; > > maxime.coque...@redhat.com; honnappa.nagaraha...@arm.com; > > jer...@marvell.com; david.march...@redhat.com; jerinjac...@gmail.com > > Subject: Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library > > >

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

2021-06-23 Thread Jerin Jacob
On Wed, Jun 23, 2021 at 9:20 AM fengchengwen wrote: > > On 2021/6/23 1:51, Jerin Jacob wrote: > > On Fri, Jun 18, 2021 at 2:22 PM fengchengwen > > wrote: > >> > >> On 2021/6/17 22:18, Bruce Richardson wrote: > >>> On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: > On Thu, J

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

2021-06-23 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > Sent: Wednesday, 23 June 2021 11.41 > > [Also, you are not likely to want to offload a small > copy, are you?] Maybe. I would consider it for two reasons: 1. To avoid CPU cache pollution. E.g. copy packet data (or part of

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

2021-06-23 Thread Bruce Richardson
On Tue, Jun 22, 2021 at 10:55:24PM +0530, Jerin Jacob wrote: > On Fri, Jun 18, 2021 at 3:11 PM fengchengwen wrote: > > > > On 2021/6/18 13:52, Jerin Jacob wrote: > > > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > > > wrote: > > >> > > >> On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob

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

2021-06-23 Thread Bruce Richardson
On Wed, Jun 23, 2021 at 12:51:07PM +0530, Jerin Jacob wrote: > On Wed, Jun 23, 2021 at 9:00 AM fengchengwen wrote: > > > > > >>> > > > > > The above will give better performance and is the best trade-off c > > > between performance and per transfer variables. > > > > We may

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

2021-06-23 Thread Jerin Jacob
On Wed, Jun 23, 2021 at 9:00 AM fengchengwen wrote: > > >>> > > > The above will give better performance and is the best trade-off c > > between performance and per transfer variables. > > We may need to have different APIs for context-aware and context-unaware > proce

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

2021-06-23 Thread Jerin Jacob
On Wed, Jun 23, 2021 at 12:47 AM Bruce Richardson wrote: > > On Tue, Jun 22, 2021 at 11:01:47PM +0530, Jerin Jacob wrote: > > On Fri, Jun 18, 2021 at 3:25 PM Bruce Richardson > > wrote: > > > > > > > > > > Taking the case of a simple copy op, the parameters we need are: > > > > > > * src > > > *

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

2021-06-22 Thread Hu, Jiayu
a.nagaraha...@arm.com; > jer...@marvell.com; david.march...@redhat.com; jerinjac...@gmail.com > Subject: Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library > > On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > > On 2021/6/16 0:38, Bruce Richardson wro

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

2021-06-22 Thread fengchengwen
On 2021/6/23 1:51, Jerin Jacob wrote: > On Fri, Jun 18, 2021 at 2:22 PM fengchengwen wrote: >> >> On 2021/6/17 22:18, Bruce Richardson wrote: >>> On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: > On 2021/6/17

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

2021-06-22 Thread fengchengwen
On 2021/6/23 1:25, Jerin Jacob wrote: > On Fri, Jun 18, 2021 at 3:11 PM fengchengwen wrote: >> >> On 2021/6/18 13:52, Jerin Jacob wrote: >>> On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson >>> wrote: On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > On Wed, Jun 16, 202

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

2021-06-22 Thread Bruce Richardson
On Tue, Jun 22, 2021 at 11:01:47PM +0530, Jerin Jacob wrote: > On Fri, Jun 18, 2021 at 3:25 PM Bruce Richardson > wrote: > > > > > > > Taking the case of a simple copy op, the parameters we need are: > > > > * src > > * dst > > * length > > OK. Is it the case where no other attribute that support

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

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 2:22 PM fengchengwen wrote: > > On 2021/6/17 22:18, Bruce Richardson wrote: > > On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: > >> On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: > >>> On 2021/6/17 1:31, Bruce Richardson wrote: > On We

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

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 3:34 PM Bruce Richardson wrote: > > On Fri, Jun 18, 2021 at 10:46:08AM +0530, Jerin Jacob wrote: > > On Thu, Jun 17, 2021 at 1:30 PM Bruce Richardson > > wrote: > > > > > > On Thu, Jun 17, 2021 at 01:12:22PM +0530, Jerin Jacob wrote: > > > > On Thu, Jun 17, 2021 at 12:43 A

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

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 3:25 PM Bruce Richardson wrote: > > On Fri, Jun 18, 2021 at 11:22:28AM +0530, Jerin Jacob wrote: > > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > > wrote: > > > > > > On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > > > > On Wed, Jun 16, 2021 at 3:47 PM

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

2021-06-22 Thread Jerin Jacob
On Fri, Jun 18, 2021 at 3:11 PM fengchengwen wrote: > > On 2021/6/18 13:52, Jerin Jacob wrote: > > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > > wrote: > >> > >> On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > >>> On Wed, Jun 16, 2021 at 3:47 PM fengchengwen > >>> wrote: >

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

2021-06-18 Thread Bruce Richardson
On Fri, Jun 18, 2021 at 10:46:08AM +0530, Jerin Jacob wrote: > On Thu, Jun 17, 2021 at 1:30 PM Bruce Richardson > wrote: > > > > On Thu, Jun 17, 2021 at 01:12:22PM +0530, Jerin Jacob wrote: > > > On Thu, Jun 17, 2021 at 12:43 AM Bruce Richardson > > > wrote: > > > > > > > > On Wed, Jun 16, 2021 a

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

2021-06-18 Thread Bruce Richardson
On Fri, Jun 18, 2021 at 11:22:28AM +0530, Jerin Jacob wrote: > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > wrote: > > > > On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > > > On Wed, Jun 16, 2021 at 3:47 PM fengchengwen > > > wrote: > > > > > > > > On 2021/6/16 15:09, Morten

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

2021-06-18 Thread fengchengwen
On 2021/6/18 13:52, Jerin Jacob wrote: > On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson > wrote: >> >> On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: >>> On Wed, Jun 16, 2021 at 3:47 PM fengchengwen >>> wrote: On 2021/6/16 15:09, Morten Brørup wrote: >> From: dev [m

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

2021-06-18 Thread Bruce Richardson
On Fri, Jun 18, 2021 at 04:52:00PM +0800, fengchengwen wrote: > On 2021/6/17 22:18, Bruce Richardson wrote: > > On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: > >> On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: > >>> On 2021/6/17 1:31, Bruce Richardson wrote: > >>>

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

2021-06-18 Thread fengchengwen
On 2021/6/17 22:18, Bruce Richardson wrote: > On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: >> On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: >>> On 2021/6/17 1:31, Bruce Richardson wrote: On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > On

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

2021-06-17 Thread Jerin Jacob
On Thu, Jun 17, 2021 at 2:46 PM Bruce Richardson wrote: > > On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > > On Wed, Jun 16, 2021 at 3:47 PM fengchengwen > > wrote: > > > > > > On 2021/6/16 15:09, Morten Brørup wrote: > > > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of

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

2021-06-17 Thread Jerin Jacob
On Thu, Jun 17, 2021 at 1:30 PM Bruce Richardson wrote: > > On Thu, Jun 17, 2021 at 01:12:22PM +0530, Jerin Jacob wrote: > > On Thu, Jun 17, 2021 at 12:43 AM Bruce Richardson > > wrote: > > > > > > On Wed, Jun 16, 2021 at 11:38:08PM +0530, Jerin Jacob wrote: > > > > On Wed, Jun 16, 2021 at 11:01

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

2021-06-17 Thread Bruce Richardson
On Thu, Jun 17, 2021 at 12:02:00PM +0100, Bruce Richardson wrote: > On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: > > On 2021/6/17 1:31, Bruce Richardson wrote: > > > On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > > >> On 2021/6/16 0:38, Bruce Richardson wrote: > >

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

2021-06-17 Thread Bruce Richardson
On Thu, Jun 17, 2021 at 05:48:05PM +0800, fengchengwen wrote: > On 2021/6/17 1:31, Bruce Richardson wrote: > > On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > >> On 2021/6/16 0:38, Bruce Richardson wrote: > >>> On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: > Th

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

2021-06-17 Thread fengchengwen
On 2021/6/17 1:31, Bruce Richardson wrote: > On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: >> On 2021/6/16 0:38, Bruce Richardson wrote: >>> On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: This patch introduces 'dmadevice' which is a generic type of DMA devi

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

2021-06-17 Thread Bruce Richardson
On Wed, Jun 16, 2021 at 08:07:26PM +0530, Jerin Jacob wrote: > On Wed, Jun 16, 2021 at 3:47 PM fengchengwen wrote: > > > > On 2021/6/16 15:09, Morten Brørup wrote: > > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > > >> Sent: Tuesday, 15 June 2021 18.39 > > >> > > >> On

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

2021-06-17 Thread Bruce Richardson
On Thu, Jun 17, 2021 at 01:12:22PM +0530, Jerin Jacob wrote: > On Thu, Jun 17, 2021 at 12:43 AM Bruce Richardson > wrote: > > > > On Wed, Jun 16, 2021 at 11:38:08PM +0530, Jerin Jacob wrote: > > > On Wed, Jun 16, 2021 at 11:01 PM Bruce Richardson > > > wrote: > > > > > > > > On Wed, Jun 16, 2021

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

2021-06-17 Thread Jerin Jacob
On Thu, Jun 17, 2021 at 12:43 AM Bruce Richardson wrote: > > On Wed, Jun 16, 2021 at 11:38:08PM +0530, Jerin Jacob wrote: > > On Wed, Jun 16, 2021 at 11:01 PM Bruce Richardson > > wrote: > > > > > > On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > > > > On 2021/6/16 0:38, Bruce Ric

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

2021-06-16 Thread Bruce Richardson
On Wed, Jun 16, 2021 at 11:38:08PM +0530, Jerin Jacob wrote: > On Wed, Jun 16, 2021 at 11:01 PM Bruce Richardson > wrote: > > > > On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > > > On 2021/6/16 0:38, Bruce Richardson wrote: > > > > On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwe

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

2021-06-16 Thread Bruce Richardson
On Wed, Jun 16, 2021 at 04:48:59PM +, Honnappa Nagarahalli wrote: > > > > > > On Wed, Jun 16, 2021 at 02:14:54PM +0200, David Marchand wrote: > > > On Tue, Jun 15, 2021 at 3:25 PM Chengwen Feng > > wrote: > > > > + > > > > +#define RTE_DMADEV_NAME_MAX_LEN(64) > > > > +/**< @internal

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

2021-06-16 Thread Jerin Jacob
On Wed, Jun 16, 2021 at 11:01 PM Bruce Richardson wrote: > > On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > > On 2021/6/16 0:38, Bruce Richardson wrote: > > > On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: > > >> This patch introduces 'dmadevice' which is a generic

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

2021-06-16 Thread Bruce Richardson
On Wed, Jun 16, 2021 at 05:41:45PM +0800, fengchengwen wrote: > On 2021/6/16 0:38, Bruce Richardson wrote: > > On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: > >> This patch introduces 'dmadevice' which is a generic type of DMA > >> device. > >> > >> The APIs of dmadev library expos

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

2021-06-16 Thread Honnappa Nagarahalli
> > On Wed, Jun 16, 2021 at 02:14:54PM +0200, David Marchand wrote: > > On Tue, Jun 15, 2021 at 3:25 PM Chengwen Feng > wrote: > > > + > > > +#define RTE_DMADEV_NAME_MAX_LEN(64) > > > +/**< @internal Max length of name of DMA PMD */ > > > + > > > +/** @internal > > > + * The data struct

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

2021-06-16 Thread Jerin Jacob
On Wed, Jun 16, 2021 at 3:47 PM fengchengwen wrote: > > On 2021/6/16 15:09, Morten Brørup wrote: > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > >> Sent: Tuesday, 15 June 2021 18.39 > >> > >> On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: > >>> This pat

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

2021-06-16 Thread Bruce Richardson
On Wed, Jun 16, 2021 at 02:14:54PM +0200, David Marchand wrote: > On Tue, Jun 15, 2021 at 3:25 PM Chengwen Feng wrote: > > + > > +#define RTE_DMADEV_NAME_MAX_LEN(64) > > +/**< @internal Max length of name of DMA PMD */ > > + > > +/** @internal > > + * The data structure associated with eac

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

2021-06-16 Thread Bruce Richardson
On Wed, Jun 16, 2021 at 06:17:07PM +0800, fengchengwen wrote: > On 2021/6/16 15:09, Morten Brørup wrote: > >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > >> Sent: Tuesday, 15 June 2021 18.39 > >> > >> On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: > >>> T

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

2021-06-16 Thread David Marchand
On Tue, Jun 15, 2021 at 3:25 PM Chengwen Feng wrote: > + > +#define RTE_DMADEV_NAME_MAX_LEN(64) > +/**< @internal Max length of name of DMA PMD */ > + > +/** @internal > + * The data structure associated with each DMA device. > + */ > +struct rte_dmadev { > + /**< Device ID for this

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

2021-06-16 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of fengchengwen > Sent: Wednesday, 16 June 2021 12.17 > > On 2021/6/16 15:09, Morten Brørup wrote: > > I would like to share a couple of ideas for further discussion: > > > > 1. API for bulk operations. > > The ability to prepare a vector of DMA

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

2021-06-16 Thread fengchengwen
On 2021/6/16 15:09, Morten Brørup wrote: >> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson >> Sent: Tuesday, 15 June 2021 18.39 >> >> On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: >>> This patch introduces 'dmadevice' which is a generic type of DMA >>> device

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

2021-06-16 Thread fengchengwen
On 2021/6/16 0:38, Bruce Richardson wrote: > On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: >> This patch introduces '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

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

2021-06-16 Thread Wang, Haiyue
dhat.com; honnappa.nagaraha...@arm.com; jer...@marvell.com; > david.march...@redhat.com; jerinjac...@gmail.com; Xia, Chenbo > > Subject: Re: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library > > On Wed, Jun 16, 2021 at 03:17:51AM +0100, Wang, Haiyue wrote: > > > -

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

2021-06-16 Thread Bruce Richardson
xp.com; hemant.agra...@nxp.com; > > maxime.coque...@redhat.com; > > honnappa.nagaraha...@arm.com; jer...@marvell.com; > > david.march...@redhat.com; Richardson, Bruce > > ; jerinjac...@gmail.com > > Subject: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library > > &g

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

2021-06-16 Thread Morten Brørup
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce Richardson > Sent: Tuesday, 15 June 2021 18.39 > > On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: > > This patch introduces 'dmadevice' which is a generic type of DMA > > device. > > > > The APIs of dmadev library exposes

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

2021-06-15 Thread Wang, Haiyue
m; jer...@marvell.com; david.march...@redhat.com; > Richardson, Bruce > ; jerinjac...@gmail.com > Subject: [dpdk-dev] [RFC PATCH] dmadev: introduce DMA device library > > This patch introduces 'dmadevice' which is a generic type of DMA > device. > > The APIs of d

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

2021-06-15 Thread Bruce Richardson
On Tue, Jun 15, 2021 at 09:22:07PM +0800, Chengwen Feng wrote: > This patch introduces '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 Fen

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

2021-06-15 Thread Chengwen Feng
This patch introduces '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 --- lib/dmadev/rte_dmadev.h | 531 +++