linux-mips
[Top] [All Lists]

Re: mmap'ed memory cacheable or uncheable

To: Teresa Tao <Teresat@tridentmicro.com>
Subject: Re: mmap'ed memory cacheable or uncheable
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 31 Jul 2003 13:31:21 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <61F6477DE6BED311B69F009027C3F58403AA3969@EXCHANGE>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <61F6477DE6BED311B69F009027C3F58403AA3969@EXCHANGE>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Thu, Jul 24, 2003 at 08:26:59PM -0700, Teresa Tao wrote:

> I got a question regarding the mmap'ed memory. Is the mmap'ed memory
> cacheable or uncheable? My driver just use the remap_page_range to map
> a reserved physical memory.

Mmap(2) creates cachable mappings for everything below the highest memory
address and uncached above that.  That's a somewhat naive mechanism
which fails a few systems but somehow nobody did complain so far ...

  Ralf

<Prev in Thread] Current Thread [Next in Thread>