From: dan.j.williams@intel.com (Dan Williams)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] DMA: extend documentation to provide more API details
Date: Thu, 17 Oct 2013 10:00:45 -0700 [thread overview]
Message-ID: <CAPcyv4j-ip4PCxmOFuMyfu6CP3iOuy7==RUEmmSU_Tr8tvbj-g@mail.gmail.com> (raw)
In-Reply-To: <525FFA6D.8080806@wwwdotorg.org>
On Thu, Oct 17, 2013 at 7:55 AM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> On 10/16/2013 11:16 PM, Vinod Koul wrote:
>> On Wed, Oct 16, 2013 at 01:33:44PM -0600, Stephen Warren wrote:
>>> On 10/08/2013 07:34 PM, Dan Williams wrote:
>>>> On Mon, Oct 7, 2013 at 3:39 AM, Vinod Koul <vinod.koul@intel.com> wrote:
>>>>> On Mon, Oct 07, 2013 at 12:17:28PM +0100, Russell King - ARM Linux wrote:
>>> ...
>>>>>> What may be better is to change the wording here: not DMA_SUCCESS but
>>>>>> DMA_COMPLETED. That doesn't imply that it has been successful, merely
>>>>>> that the DMA engine has finished with the transaction.
>>>>>
>>>>> Agreed that its not indication of success but of DMA completetion. I have seen
>>>>> cases where slave perhiphral got stuck while sending last FIFO but since DMA
>>>>> finished transferiing to FIFO it says complete.
>>>
>>> In that case, the DMA *has* completed. DMA is the transfer into the
>>> FIFO, not the handling of the FIFO content by the peripheral.
>>>
>>>>> Dan do you agree?
>>>>
>>>> Yes, it's an indication of completion, not necessarily success.
>>>
>>> Surely by definition, a DMA can't *complete* without being successful.
>>> If the DMA failed, then it didn't complete, but rather must have been
>>> aborted or error'd out, without completing the whole transfer.
>>
>> DMA means transferring of data, and that is what DMA compeletion would mean.
>> Once the data has left the DMA FIFO, we don't know if it filled up the memory
>> propery or get stuck in periphral FIFO, the dmaengine would have no knowledge or
>> control of it. So it can't claim the transfer was success from a data point of
>> view, hence the rename now!
>
> Well, I obviously don't agreee, but I guess I won't bother pursuing this.
>
What name would you prefer,
DMA_THAT_COOKIE_IS_NOT_PART_OF_MY_ACTIVE_SET_SO_SOMETHING_MUST_HAVE_HAPPENED
:-)?
But I think you are pointing out that we don't have any rules around
what to expect when a channel encounters an error. Does the chain
stop advancing and cookie stays valid until the client can clean up,
or does the engine mark an error and advance its last_completed_cookie
past the error?
--
Dan
next prev parent reply other threads:[~2013-10-17 17:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-05 17:36 [PATCH] DMA: extend documentation to provide more API details Guennadi Liakhovetski
2013-10-05 19:02 ` Russell King - ARM Linux
2013-10-05 21:00 ` Guennadi Liakhovetski
2013-10-05 23:31 ` Russell King - ARM Linux
2013-10-06 5:20 ` Vinod Koul
2013-10-07 10:45 ` Guennadi Liakhovetski
2013-10-07 10:41 ` Vinod Koul
2013-10-07 12:17 ` Guennadi Liakhovetski
2013-10-07 11:17 ` Russell King - ARM Linux
2013-10-07 10:39 ` Vinod Koul
2013-10-07 12:15 ` Guennadi Liakhovetski
2013-10-07 14:25 ` Vinod Koul
2013-10-07 15:28 ` Guennadi Liakhovetski
2013-10-07 14:43 ` Vinod Koul
2013-10-07 15:45 ` Guennadi Liakhovetski
2013-10-07 15:52 ` Vinod Koul
2013-10-07 20:55 ` Guennadi Liakhovetski
2013-10-08 3:52 ` Vinod Koul
2013-10-08 7:28 ` Guennadi Liakhovetski
2013-10-07 15:48 ` Vinod Koul
2013-10-07 20:43 ` Guennadi Liakhovetski
2013-10-08 3:58 ` Vinod Koul
2013-10-08 7:17 ` Guennadi Liakhovetski
2013-10-09 1:34 ` Dan Williams
2013-10-10 16:15 ` Vinod Koul
2013-10-16 19:33 ` Stephen Warren
2013-10-17 5:16 ` Vinod Koul
2013-10-17 14:55 ` Stephen Warren
2013-10-17 17:00 ` Dan Williams [this message]
2013-10-07 7:40 ` Guennadi Liakhovetski
2013-10-09 1:28 ` Dan Williams
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='CAPcyv4j-ip4PCxmOFuMyfu6CP3iOuy7==RUEmmSU_Tr8tvbj-g@mail.gmail.com' \
--to=dan.j.williams@intel.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).