public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dmatest - scatter gather mode
@ 2016-04-24 18:44 Ramon Fried
  2016-04-26 14:37 ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Ramon Fried @ 2016-04-24 18:44 UTC (permalink / raw)
  To: vinod.koul@intel.com, dan.j.williams@intel.com,
	dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org

I'm looking of a way to validate a DMA engine driver I've written.
I came across dmatest module and while reading the code I've noticed that scatter-gather DMA mode is not implemented.
I wonder if anyone one knows the reason, and if such enhancement will be welcome as a patch.

Thanks.
Ramon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dmatest - scatter gather mode
  2016-04-24 18:44 dmatest - scatter gather mode Ramon Fried
@ 2016-04-26 14:37 ` Andy Shevchenko
  2016-04-26 16:28   ` Vinod Koul
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Shevchenko @ 2016-04-26 14:37 UTC (permalink / raw)
  To: Ramon Fried
  Cc: vinod.koul@intel.com, dan.j.williams@intel.com,
	dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org

On Sun, Apr 24, 2016 at 9:44 PM, Ramon Fried <ramon.fried@tandemg.com> wrote:
> I'm looking of a way to validate a DMA engine driver I've written.
> I came across dmatest module and while reading the code I've noticed that scatter-gather DMA mode is not implemented.
> I wonder if anyone one knows the reason, and if such enhancement will be welcome as a patch.

You meant the actual slave interaction? How can you implement this in
a generic way?
For example we are using an SPI controller in loopback mode to check DMA driver.
In your case it might be something really specific.

Otherwise you may try mem copy functionality if your DMA engine supports such.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dmatest - scatter gather mode
  2016-04-26 14:37 ` Andy Shevchenko
@ 2016-04-26 16:28   ` Vinod Koul
  0 siblings, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2016-04-26 16:28 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Ramon Fried, dan.j.williams@intel.com, dmaengine@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Tue, Apr 26, 2016 at 05:37:04PM +0300, Andy Shevchenko wrote:
> On Sun, Apr 24, 2016 at 9:44 PM, Ramon Fried <ramon.fried@tandemg.com> wrote:
> > I'm looking of a way to validate a DMA engine driver I've written.
> > I came across dmatest module and while reading the code I've noticed that scatter-gather DMA mode is not implemented.
> > I wonder if anyone one knows the reason, and if such enhancement will be welcome as a patch.
> 
> You meant the actual slave interaction? How can you implement this in
> a generic way?
> For example we are using an SPI controller in loopback mode to check DMA driver.
> In your case it might be something really specific.
> 
> Otherwise you may try mem copy functionality if your DMA engine supports such.

I think he means dma copy using sg lists, see the patch posted today for
that


-- 
~Vinod

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-26 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-24 18:44 dmatest - scatter gather mode Ramon Fried
2016-04-26 14:37 ` Andy Shevchenko
2016-04-26 16:28   ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox