All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liang Ma <liangma@liangbit.com>
To: Thomas Monjalon <thomas@monjalon.net>
Cc: Maxime Coquelin <maxime.coquelin@redhat.com>,
	bruce.richardson@intel.com, jerinj@marvell.com,
	andrew.rybchenko@oktetlabs.ru, hemant.agrawal@nxp.com,
	nipun.gupta@nxp.com, g.singh@nxp.com, radhac@marvell.com,
	vburru@marvell.com, Cheng Jiang <Cheng1.jiang@intel.com>,
	dev@dpdk.org, chenbo.xia@intel.com, jiayu.hu@intel.com,
	yvonnex.yang@intel.com, yinan.wang@intel.com, alexr@nvidia.com,
	shahafs@nvidia.com
Subject: Re: [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks
Date: Sun, 18 Apr 2021 16:10:32 +0100	[thread overview]
Message-ID: <20210418151032.GB41@DESKTOP-POQV63C.localdomain> (raw)
In-Reply-To: <1700633.VhrhA6iQC3@thomas>

On Wed, Apr 07, 2021 at 10:43:36AM +0200, Thomas Monjalon wrote:
> +Cc more people to start a discussion about a potential DMA API.
> If you think it is interesting, we can start a fresh discussion thread.
+1 that's ineresting to have a abstract layer of DMA offload engine. 
   I would like join the discussion. please add me in the cc list in the
   new thread.
> 07/04/2021 10:26, Thomas Monjalon:
> > 07/04/2021 09:47, Maxime Coquelin:
> > > 
> > > On 3/17/21 6:40 AM, Cheng Jiang wrote:
> > > > We use ioat ring space for determining if ioat callbacks can enqueue a
> > > > packet to ioat device. But there is one slot can't be used in ioat
> > > > ring due to the ioat driver design, so we need to reduce one slot in
> > > > ioat ring to prevent ring size mismatch in ioat callbacks.
> [...]
> > > > --- a/examples/vhost/ioat.c
> > > > +++ b/examples/vhost/ioat.c
> > > > @@ -113,7 +113,7 @@ open_ioat(const char *value)
> > > >  			goto out;
> > > >  		}
> > > >  		rte_rawdev_start(dev_id);
> > > > -		cb_tracker[dev_id].ioat_space = IOAT_RING_SIZE;
> > > > +		cb_tracker[dev_id].ioat_space = IOAT_RING_SIZE - 1;
> > > 
> > > That really comforts me in thinking we need a generic abstraction for
> > > DMA devices. How is the application developer supposed to know that
> > > the DMA driver has such weird limitations?
> > 
> > Having a generic DMA API may be interesting.
> > Do you know any other HW candidate for such an API?
> > Do you think rte_memcpy can be used as a SW driver?
> 
> 
> 

  reply	other threads:[~2021-04-18 15:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17  5:40 [dpdk-dev] [PATCH] examples/vhost: fix ioat ring space in callbacks Cheng Jiang
2021-03-17  6:58 ` Hu, Jiayu
2021-04-07  7:47 ` Maxime Coquelin
2021-04-07  7:54   ` Hu, Jiayu
2021-04-13  8:50     ` Maxime Coquelin
2021-04-13  9:55       ` Jiang, Cheng1
2021-04-07  8:26   ` Thomas Monjalon
2021-04-07  8:43     ` Thomas Monjalon
2021-04-18 15:10       ` Liang Ma [this message]
2021-04-07  8:48     ` Maxime Coquelin
2021-04-28  2:09 ` Xia, Chenbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210418151032.GB41@DESKTOP-POQV63C.localdomain \
    --to=liangma@liangbit.com \
    --cc=Cheng1.jiang@intel.com \
    --cc=alexr@nvidia.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=bruce.richardson@intel.com \
    --cc=chenbo.xia@intel.com \
    --cc=dev@dpdk.org \
    --cc=g.singh@nxp.com \
    --cc=hemant.agrawal@nxp.com \
    --cc=jerinj@marvell.com \
    --cc=jiayu.hu@intel.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=nipun.gupta@nxp.com \
    --cc=radhac@marvell.com \
    --cc=shahafs@nvidia.com \
    --cc=thomas@monjalon.net \
    --cc=vburru@marvell.com \
    --cc=yinan.wang@intel.com \
    --cc=yvonnex.yang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.