Re: DMA and Cache coherency on machines without hardware enforced

Roman Zippel (zippel@fh-brandenburg.de)
Thu, 2 Dec 1999 11:17:26 +0100 (MET)


Hi,

> ioremap_nocache(). You can also use ioremap_nocache() on allocated pages
> (it's a page granularity thing) via doing something like:
>
> page = __get_free_pages(whatever, order);
> ptr = ioremap_nocache(virt_to_phys(page), 1 <<
> (order+PAGE_SHIFT));

But the problem is that this mapping is never released if you call
iounmap() and if you remove that check there, vfree tries to free not only
the mapping but also any non reserved page. I think we really need a real
memremap() interface...

bye, Roman

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