Re: ioremap_nocache problem?

Stephen C. Tweedie (sct@redhat.com)
Thu, 25 Jan 2001 15:16:55 +0000


Hi,

On Tue, Jan 23, 2001 at 10:53:51AM -0600, Timur Tabi wrote:
>
> My problem is that it's very easy to map memory with ioremap_nocache, but if
> you use iounmap() the un-map it, the entire system will crash. No one has been
> able to explain that one to me, either.

ioremap*() is only supposed to be used on IO regions or reserved
pages. If you haven't marked the pages as reserved, then iounmap will
do the wrong thing, so it's up to you to reserve the pages.

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