mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Dan Williams" <dan.j.williams@intel.com>
To: "Nicolas Ferre" <nicolas.ferre@atmel.com>
Cc: "Sosnowski, Maciej" <maciej.sosnowski@intel.com>,
	"Haavard Skinnemoen" <hskinnemoen@atmel.com>,
	"Linux Kernel list" <linux-kernel@vger.kernel.org>,
	"ARM Linux Mailing List"
	<linux-arm-kernel@lists.arm.linux.org.uk>,
	"Andrew Victor" <linux@maxim.org.za>
Subject: Re: [PATCH] dmaengine: at_hdmac: new driver for the Atmel AHB DMA Controller
Date: Thu, 4 Dec 2008 11:26:10 -0700	[thread overview]
Message-ID: <e9c3a7c20812041026v3293786sea3e81e2f777d58d@mail.gmail.com> (raw)
In-Reply-To: <492C1816.6020405@atmel.com>

On Tue, Nov 25, 2008 at 8:21 AM, Nicolas Ferre <nicolas.ferre@atmel.com> wrote:
>>
>> They will be acknowledged by client code.  Calls like async_memcpy
>> assume that the the ack bit is clear by default so they can specify
>> some actions to run at completion time.  By setting it early, at
>> descriptor allocation time, async_tx will get confused.
>
> This ack bit is annoying me : I cannot figure out how it is used for plain
> memcopy/slave offload calls...
>
> Moreover, at recycle time, if I keep a descriptor chain as a whole, I have
> to introduce another state for my descriptors : consumed but not freed yet
> (with another linked list management).
> If I only take care of the ACK flag for releasing descriptors, I loose the
> dependency in my descriptor chain (in a multi-descriptor memcpy case).

Maybe I misread your driver... in the multi-descriptor memcpy case it
is perfectly fine to set the ack-bit in the driver for all but the
last descriptor in the chain.  The client is only expected to attach
dependencies at the end of the chain.

> Can I only consider this information without taking care of the chaining
> dependency (and loose this information in a multi-descriptor operation) ?

You can lose it for all but the last descriptor.

> Or, may I drop this DMA_CTRL_ACK bit management as I do not have the
> usefulness of redoing an operations on one descriptor (no xor engine) ?
>

If you will never need to run async_memcpy and don't want to handle
the bit then you could set DMA_PRIVATE and the channels would never be
picked up by the async_tx api.  But, I am not convinced we need to
take that step yet.

> Kind regards,
> --
> Nicolas Ferre
>

Thanks,
Dan

  reply	other threads:[~2008-12-04 18:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17 15:43 Nicolas Ferre
2008-10-20 19:18 ` Dan Williams
2008-11-14 16:34   ` Nicolas Ferre
2008-11-18 19:00     ` Dan Williams
2008-11-25 15:21       ` Nicolas Ferre
2008-12-04 18:26         ` Dan Williams [this message]
2008-10-22 14:55 ` Sosnowski, Maciej
2008-10-22 15:26   ` Nicolas Ferre

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=e9c3a7c20812041026v3293786sea3e81e2f777d58d@mail.gmail.com \
    --to=dan.j.williams@intel.com \
    --cc=hskinnemoen@atmel.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@maxim.org.za \
    --cc=maciej.sosnowski@intel.com \
    --cc=nicolas.ferre@atmel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®