From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: Cyclic DMA - callback properties and tx_status residue
Date: Fri, 11 May 2012 16:07:41 +0100 [thread overview]
Message-ID: <20120511150741.GH3960@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20120511142941.GA16214@n2100.arm.linux.org.uk>
On Fri, May 11, 2012 at 03:29:41PM +0100, Russell King - ARM Linux wrote:
> On Fri, May 11, 2012 at 03:18:35PM +0100, Mark Brown wrote:
> > I do think that (separately to what ALSA does) if we're going to have a
> > callback specified per request we really should make sure that they all
> > get run as best as we can since the way the API is written people using
> > non-cyclic transfers may run into the same surprise; for cyclic ones the
> > issue you identify is very real though.
> Please stop confusing non-cyclic with cyclic transfers. We know what the
> required semantics are for non-cyclic transfers and they really aren't
> under discussion here. I'm focusing 100% on the cyclic case here.
I'm not confusing them - I'm just pretty sure that all the issues which
you are identifying also apply to the non-cyclic case so while we're
looking at fixing things we (collectively, not particularly including
you as you're focused on the cyclic case) should look at that too.
Right now we're not handling either cyclic or non-cyclic cases well.
> That's my point. And keeping count of N times to call the callback in
> the DMA engine driver is racy at best.
Yes, it'll always break down at some point - no argument there.
> Here's what I think. I think the best solution for cyclic transfers
> is as follows:
I agree, for cyclic transfers this is a very good approach. I'd
probably even set up a separate callback mechanism for cyclic transfers
to make this crystal clear and error out if an attempt was made to use
the linear one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120511/b42d9312/attachment.sig>
next prev parent reply other threads:[~2012-05-11 15:07 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-02 14:45 Cyclic DMA - callback properties and tx_status residue Russell King - ARM Linux
2012-05-02 16:01 ` Vinod Koul
2012-05-02 16:27 ` Russell King - ARM Linux
2012-05-04 12:26 ` Russell King - ARM Linux
2012-05-04 12:45 ` Vinod Koul
2012-05-10 22:54 ` Russell King - ARM Linux
2012-05-11 3:00 ` Vinod Koul
2012-05-11 12:24 ` Linus Walleij
2012-05-11 13:03 ` Russell King - ARM Linux
2012-05-15 5:02 ` Vinod Koul
2012-05-09 9:27 ` Linus Walleij
2012-05-09 9:33 ` Russell King - ARM Linux
2012-05-09 11:16 ` Mark Brown
2012-05-09 12:19 ` Russell King - ARM Linux
2012-05-09 12:49 ` Lars-Peter Clausen
2012-05-09 14:03 ` Mark Brown
2012-05-10 3:44 ` Vinod Koul
2012-05-10 7:44 ` Russell King - ARM Linux
2012-05-10 10:58 ` Vinod Koul
2012-05-10 13:19 ` Huang Shijie
2012-05-10 14:54 ` Vinod Koul
2012-05-10 9:42 ` Mark Brown
2012-05-10 11:01 ` Vinod Koul
2012-05-11 14:02 ` Mark Brown
2012-05-11 14:07 ` Russell King - ARM Linux
2012-05-11 14:18 ` Mark Brown
2012-05-11 14:29 ` Russell King - ARM Linux
2012-05-11 15:07 ` Mark Brown [this message]
2012-05-15 5:07 ` Vinod Koul
2012-05-15 7:37 ` Russell King - ARM Linux
2012-05-15 8:58 ` Vinod Koul
2012-05-09 12:35 ` Lars-Peter Clausen
2012-05-07 10:40 ` Mark Brown
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=20120511150741.GH3960@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.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).