From: jamie@jamieiles.com (Jamie Iles)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: convert dma-mapping to asm-generic API
Date: Tue, 21 Dec 2010 16:04:49 +0000 [thread overview]
Message-ID: <20101221160449.GB23586@pulham.picochip.com> (raw)
In-Reply-To: <20101221110135.GE2822@pulham.picochip.com>
On Tue, Dec 21, 2010 at 11:01:35AM +0000, Jamie Iles wrote:
> On Tue, Dec 21, 2010 at 10:36:52AM +0000, Russell King - ARM Linux wrote:
> > I don't believe that the direction taken there is anywhere near the right
> > one - the approach we have (implementing the whole buffer sync in terms
> > of the partial buffer sync) is the far more logical, simpler and safer
> > way, and doesn't lead to the possibility of two partially overlapping
> > mappings causing the wrong one to be operated upon.
> >
> > The debug code doesn't check for overlapping mappings in any way, so we
> > can't say that they never occur.
> >
> > With the way that the DMA API has gone, I view the "generic" stuff as
> > a disaster.
>
> Ok I can't disagree with that. I've had a look at some of the other
> arches and I can't see an obvious reason why we couldn't change the
> generic implementation to do the sync in the way you describe. Perhaps
> I'll have a look at that after the holidays.
As an alternative, how about we add sync_single_range_for_{cpu,device}()
methods to struct dma_map_ops and if they aren't populated, fall back to
the non-range variants with an offset of 0? Then for ARM we can specify
the _range_* versions and we don't need the fuzziness in the dmabounce
code. Or is this just not worth doing and keeping the ARM version
specific?
Jamie
next prev parent reply other threads:[~2010-12-21 16:04 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
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 [this message]
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=20101221160449.GB23586@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