From: Bill Gatliff <bgat@billgatliff.com>
To: Bruce_Leonard@selinc.com
Cc: timur.tabi@gmail.com, Timur Tabi <timur@freescale.com>,
linuxppc-embedded@ozlabs.org
Subject: Re: Using DMA
Date: Sat, 08 Nov 2008 21:25:59 -0600 [thread overview]
Message-ID: <49165847.1060605@billgatliff.com> (raw)
In-Reply-To: <OF36982726.7A11F196-ON882574FA.00798551-882574FA.0079F330@selinc.com>
Bruce_Leonard@selinc.com wrote:
> timur.tabi@gmail.com wrote on 11/07/2008 01:46:42 PM:
>
>> Whether or not using async dma is worth the effort can only be
>> determined by profiling the code. Either it's better, or it's not.
>> There's no real way to tell in advance.
>>
>
> Pretty much the answer I expected :), I was just hoping that "wiser and
> more experienced" minds would say "oh, well to do what you want you should
> go in this direction". Ah well, such is the life of a kernel hacker.
>
> So it sounds like the async dma is the way to go, since I want to off load
> as much as possible from the core.
One thing to watch out for is an increase in interrupt latency. If
the DMA grabs the bus and won't turn loose until the whole transfer is
finished, your interrupts will wait along with everything else.
Many DMA controllers support a "cycle steal" mode, which lets them get
interrupted by more important things. It slows the DMA transfer down,
but does less damage to the rest of the system.
b.g.
--
Bill Gatliff
bgat@billgatliff.com
next prev parent reply other threads:[~2008-11-09 3:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 2:07 Using DMA Bruce_Leonard
2008-11-06 18:29 ` Scott Wood
2008-11-06 18:36 ` Bill Gatliff
2008-11-06 20:58 ` Bruce_Leonard
2008-11-06 21:42 ` Bill Gatliff
2008-11-07 15:43 ` Timur Tabi
2008-11-07 21:31 ` Bruce_Leonard
2008-11-07 21:46 ` Timur Tabi
2008-11-07 22:12 ` Bruce_Leonard
2008-11-07 22:28 ` Timur Tabi
2008-11-07 22:37 ` Bruce_Leonard
2008-11-09 3:26 ` Bill Gatliff
2008-11-09 3:25 ` Bill Gatliff [this message]
2008-11-10 0:09 ` Bruce_Leonard
2008-11-10 14:35 ` Timur Tabi
2008-11-10 17:58 ` Bruce_Leonard
2008-11-11 9:09 ` Rajasekaran Kaliyaperumal, Chennai
2008-11-11 10:22 ` Porting Linux to 8051 [ was:Re: Using DMA ] Martyn Welch
2008-11-10 22:06 ` Using DMA Bruce_Leonard
2008-11-11 14:51 ` Timur Tabi
2008-11-11 18:19 ` Bruce_Leonard
2008-11-11 19:22 ` Timur Tabi
2008-11-11 21:46 ` Bruce_Leonard
2008-11-11 21:54 ` Timur Tabi
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=49165847.1060605@billgatliff.com \
--to=bgat@billgatliff.com \
--cc=Bruce_Leonard@selinc.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=timur.tabi@gmail.com \
--cc=timur@freescale.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.