From: jamie@jamieiles.com (Jamie Iles)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: use cached memory in dma_alloc_coherent() if possible
Date: Tue, 21 Dec 2010 11:22:33 +0000 [thread overview]
Message-ID: <20101221112233.GG2822@pulham.picochip.com> (raw)
In-Reply-To: <AANLkTi=sEJi92UBNR-vqsC2cpniOJVSLTHoq-rj75QZM@mail.gmail.com>
On Tue, Dec 21, 2010 at 11:11:21AM +0000, Catalin Marinas wrote:
> On Tuesday, 21 December 2010, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > On Tue, Dec 21, 2010 at 10:20:02AM +0000, Jamie Iles wrote:
> >> For fully coherent architectures or systems using the ARM ACP to provide
> >> coherency to individual device, use cached memory as the coherent
> >> backing rather than noncached or simply bufferable memory.
> >
> > As has already been covered by Catalin, as far as we know, no one uses
> > the ACP yet. ?Do you have a system which does?
>
> I'm not sure there is any publicly available system yet. This may be
> present in future systems, though only a few peripherals would
> probably be connected to the ACP (like an HD LCD controller). So I
> don't think we'll get a completely coherent system and a better
> approach may be to add per-device DMA operations.
Ok, we may not get new systems that are fully coherent but we have
ixp23xx that is fully coherent and the ARM DMA API as it is already
checks for this with the arch_is_coherent().
You can do per-device DMA operations with the first patch by defining
the operations in struct device::archdata::dma_ops. If all you need is
something that initializes scatterlists then you can use the
coherent_dma_ops struct.
Jamie
next prev parent reply other threads:[~2010-12-21 11:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-21 10:20 [PATCH 1/2] ARM: convert dma-mapping to asm-generic API Jamie Iles
2010-12-21 10:20 ` [PATCH 2/2] ARM: use cached memory in dma_alloc_coherent() if possible Jamie Iles
2010-12-21 10:30 ` Russell King - ARM Linux
2010-12-21 10:34 ` Jamie Iles
2010-12-21 11:11 ` Catalin Marinas
2010-12-21 11:22 ` Jamie Iles [this message]
2010-12-21 10:36 ` [PATCH 1/2] ARM: convert dma-mapping to asm-generic API Russell King - ARM Linux
2010-12-21 11:01 ` Jamie Iles
2010-12-21 16:04 ` Jamie Iles
2010-12-22 2:57 ` FUJITA Tomonori
2010-12-21 10:54 ` Arnd Bergmann
2010-12-21 10:59 ` Russell King - ARM Linux
2010-12-21 11:53 ` Arnd Bergmann
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=20101221112233.GG2822@pulham.picochip.com \
--to=jamie@jamieiles.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