Re: mmap + dma_alloc_coherent

From: Rolf Offermanns
Date: Wed Apr 13 2005 - 06:52:57 EST


On Wednesday 13 April 2005 13:19, Russell King wrote:
> This has come up before. ARM implements dma_mmap_*() to allow this
> to happen, but it never got propagated to the other architectures.
I know, this is why I referenced the other LKML threads. What keeps these
functions from being propagated to the other archs? Are there still
unresolved issues? (x86 not marking RAM pages reserved would be one I
assume)?
>
> Here's the (untested) x86 version. There may be a problem with
> x86 not marking the pages reserved, which is required for
> remap_pfn_range() to work.

So the fact that remap_pfn_range() does not work on pages allocated with
__get_free_pages() is an x86-only issue? Or is it by design?

-Rolf
--
Rolf Offermanns <roffermanns@xxxxxxxxx>
SYSGO AG Tel.: +49-6136-9948-0
Am Pfaffenstein 14 Fax: +49-6136-9948-10
55270 Klein-Winternheim http://www.sysgo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/