From: Russell King <rmk@arm.linux.org.uk>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Takashi Iwai <tiwai@suse.de>,
linux-arch@vger.kernel.org,
Gerhard Pircher <gerhard_pircher@gmx.net>,
Parisc List <linux-parisc@vger.kernel.org>
Subject: Re: [PATCH 3/8] parisc: implement dma_mmap_coherent()
Date: Fri, 10 Jul 2009 19:39:26 +0100 [thread overview]
Message-ID: <20090710183925.GB1019@flint.arm.linux.org.uk> (raw)
In-Reply-To: <1247250650.3936.48.camel@mulgrave.site>
On Fri, Jul 10, 2009 at 06:30:50PM +0000, James Bottomley wrote:
> On Fri, 2009-07-10 at 19:16 +0100, Russell King wrote:
> > As far as sound DMA goes, it's not about mailboxes. It's about a circular
> > buffer which you want the device to DMA from direct to/from the DAC/ADC
> > and have the application write/read data directly to/from that same
> > buffer.
>
> But that makes it sound like ordinary streaming DMA from a device to
> user space ... that's what the dma_map_xx APIs are already designed to
> handle: I don't understand why you need coherent memory for this (which
> can be a scarce resource on some platforms).
The streaming APIs are inefficient for this. Consider the overhead of
having to writeback and invalidate caches at 200KB/s (which is what
you're requiring ARM to do). That's far too much CPU overhead.
It's much more efficient to use non-cached memory for this on ARM.
We've been doing this for years and years, it's well proven.
> Why? The dma_map_xx API is designed to be zero copy.
Except with a rather large overhead of repetitive cache handling.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
next prev parent reply other threads:[~2009-07-10 18:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-10 13:10 [PATCH 0/8] Add dma_mmap_coherent() for other archs Takashi Iwai
2009-07-10 13:12 ` [PATCH 1/8] mips: implement dma_mmap_coherent() Takashi Iwai
2009-07-10 13:13 ` [PATCH 2/8] arm: Define ARCH_HAS_DMA_MMAP_COHERENT Takashi Iwai
2009-07-10 13:13 ` [PATCH 3/8] parisc: implement dma_mmap_coherent() Takashi Iwai
2009-07-10 15:11 ` James Bottomley
2009-07-10 15:11 ` James Bottomley
2009-07-10 18:16 ` Russell King
2009-07-10 18:30 ` James Bottomley
2009-07-10 18:39 ` Russell King [this message]
2009-07-10 18:39 ` Russell King
2009-07-10 18:59 ` James Bottomley
2009-07-10 18:59 ` James Bottomley
2009-07-17 14:13 ` Takashi Iwai
2009-07-17 19:16 ` James Bottomley
2009-07-17 19:16 ` James Bottomley
2009-07-19 12:23 ` Takashi Iwai
2009-07-19 12:23 ` Takashi Iwai
2009-07-10 13:14 ` [PATCH 4/8] sh: " Takashi Iwai
2009-07-10 13:14 ` [PATCH 5/8] sparc: " Takashi Iwai
2009-07-10 13:15 ` [PATCH 6/8] powerpc: " Takashi Iwai
2009-07-10 13:15 ` [PATCH 7/8] x86: " Takashi Iwai
2009-07-10 13:16 ` [PATCH 8/8] ia64: " Takashi Iwai
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=20090710183925.GB1019@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=James.Bottomley@HansenPartnership.com \
--cc=gerhard_pircher@gmx.net \
--cc=linux-arch@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=tiwai@suse.de \
/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).