Re: ioremap_nocache problem?

Timur Tabi (ttabi@interactivesi.com)
Thu, 25 Jan 2001 11:11:04 -0600


** Reply to message from Jeff Hartmann <jhartmann@valinux.com> on Thu, 25 Jan
2001 10:04:47 -0700

> > The problem with this is that between the ioremap and iounmap, the page is
> > reserved. What happens if that page belongs to some disk buffer or user
> > process, and some other process tries to free it. Won't that cause a problem?
>
> The page can't belong to some other process/kernel component. You own
> the page if you allocated it.

Ok, my mistake. I wasn't paying attention to the "get_free_pages" call. My
problem is that I'm ioremap'ing someone else's page, but my hardware sits on the
memory bus disguised as real memory, and so I need to poke around the 4GB space
trying to find it.

> (I was the one who added support to
> the kernel to ioremap real ram, trust me.)

I really appreciate that feature, because it helps me a lot. Any
recommendations on how I can do what I do without causing any problems? Right
now, my driver never calls iounmap on memory that's in real RAM, even when it
exits. Fortunately, the driver isn't supposed to exit, so all it does is waste
a few KB of virtual memory.

-- 
Timur Tabi - ttabi@interactivesi.com
Interactive Silicon - http://www.interactivesi.com

When replying to a mailing-list message, please direct the reply to the mailing list only. Don't send another copy to me.

- 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/