linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] Add dma_mmap_coherent() for other archs
@ 2009-07-10 13:10 Takashi Iwai
  2009-07-10 13:12 ` [PATCH 1/8] mips: implement dma_mmap_coherent() Takashi Iwai
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: Takashi Iwai @ 2009-07-10 13:10 UTC (permalink / raw)
  To: linux-arch; +Cc: Gerhard Pircher

Hi,

currently, there is no uniformed way to mmap the pages allocated
via dma_alloc_coherent() properly.  This is a long-standing issue
in the ALSA PCM code, which causes Oops on some non-coherent
architectures.

ARM has already a function dma_mmap_coherent() for that purpose.
This patch series is for adding the same function to other major
architectures to improve the situation (read: not "solve" perfectly :)

I tried to keep the addition as simple and small as possible.
As I couldn't do build tests on some archs, some patches might be
wrong.  A fix patch would be appreciated.

Also, I added ARCH_HAS_DMA_MMAP_COHERENT for each definition so that
the caller can know whether the function is available.  This is
actually more helpful than giving a dummy inline function (at least in
the case of ALSA code) since it can be optimized at the compile time.
Maybe another name would be better, or there is a more clever way.
In anyways, comments and suggestions are greatly appreciated.

The patches can be found on test/dma-fix branch of sound git tree,
too.
  git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git test/dma-fix


thanks,

Takashi

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2009-07-19 12:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).