linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: fix pfn_valid() for FLAGMEM

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH] MIPS: fix pfn_valid() for FLAGMEM
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Date: Fri, 09 Oct 2009 19:43:12 +0400
Cc: Wu Zhangjin <wuzhangjin@gmail.com>, linux-mips@linux-mips.org, "Rafael J. Wysocki" <rjw@sisk.pl>, Pavel Machek <pavel@ucw.cz>
In-reply-to: <20091008185012.GA10365@linux-mips.org>
Organization: MontaVista Software Inc.
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1254992252-15923-1-git-send-email-wuzhangjin@gmail.com> <20091008144230.GA682@linux-mips.org> <1255016760.14496.57.camel@falcon> <20091008185012.GA10365@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.2) Gecko/20040803
Hello.

Ralf Baechle wrote:

Are the non-memory parts marked as reserved?

No, so, is that a need to mark them?

Initially all pages are marked as reserved.

Which seems to be good enough for x86:

$ cat /proc/iomem
00000000-0009efff : System RAM
0009f000-0009ffff : reserved
000c0000-000cffff : pnp 00:0d
000e0000-000fffff : pnp 00:0d
00100000-7fe5b7ff : System RAM
[...]

The 0x9f000 - 0x9ffff range is the good old ISA I/O memory range (classic
MDA/CGA/VGA etc.), that is non-memory yet:

Not really, it's a usual RAM. CGA/VGA video memory occupies 000a0000-000bffff and MDA occupies 000b0000-000b7ffff (if not less). This range is probably reserved by BIOS for something like EBDA...

WBR, Sergei

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