Re: [PATCH] DMA: Correct invalid assumptions in the Kconfig text

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Haavard Skinnemoen
Date: Wednesday, October 24, 2007 - 11:16 am

On Wed, 24 Oct 2007 08:55:58 -0700
"Dan Williams" <dan.j.williams@intel.com> wrote:

Sure, that's the plan, and this patch is a start, isn't it? I just
wanted to make sure that the generic-sounding DMA Engine API would
allow more "traditional" DMA controller functionality in addition to
all the high-end RAID and networking stuff.


Yes, I've been thinking along those lines, and
Documentation/crypto/async-tx-api.txt seems to suggest something like
that for platform-specific extensions. More specifically, I'm thinking
about adding a few new structs which wrap around some of the existing
ones, like struct dma_async_tx_descriptor, adding new ops and data
members. So it will be sort of a generic, optional extension of the API.

If that works out well, we may also consider moving some of the
async_tx-specific fields into an extended struct of its own. But that
will be more of an optimization or cleanup. I don't want to hurt any
existing users.

Then we're going to need some new hooks for creating those extended
descriptors. This can be done either by adding more hooks in struct
dma_device or by creating another "subclass".

Yes, I'm mostly handwaving at this point, but I intend to follow up
with actual code soon. Unless someone else beats me to it, of course.


IMO, no. The first step I'm planning to do is to get the driver working
within the existing framework, i.e. as a pure memcpy offload
engine, and verify that it can indeed improve networking performance.
This would imply that the framework itself isn't Intel-specific even
though all the existing drivers are for Intel hardware. And I don't
think the proposed text makes any new promises that weren't there
before.

And I think it's important to clarify that what is meant to live under
drivers/dma isn't just RAID and networking acceleration engines -- it
is realy meant to be a generic DMA engine framework. If this isn't
true, I might as well stop writing the driver based on this framework
and instead focus on creating a new one.

But I'm pretty optimistic about being able to extend the API in a way
that will not hurt existing functionality and still provide what we
need to support embedded DMA controllers. In fact, it looks a lot
easier to do with the current incarnation of the API than it did
earlier.


Thanks. Are one of you going to pick it up as well?

Håvard
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] DMA: Correct invalid assumptions in the Kconfig text, Haavard Skinnemoen, (Wed Oct 24, 2:38 am)
Re: [PATCH] DMA: Correct invalid assumptions in the Kconfi ..., Haavard Skinnemoen, (Wed Oct 24, 11:16 am)
Re: [PATCH] DMA: Correct invalid assumptions in the Kconfi ..., Haavard Skinnemoen, (Thu Oct 25, 2:32 am)
Re: [PATCH] DMA: Correct invalid assumptions in the Kconfi ..., Haavard Skinnemoen, (Sat Oct 27, 6:58 am)
Re: [PATCH] DMA: Correct invalid assumptions in the Kconfi ..., Haavard Skinnemoen, (Sat Oct 27, 9:07 am)