linux-mips
[Top] [All Lists]

Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2]

To: Franck Bui-Huu <vagabon.xyz@gmail.com>
Subject: Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2]
From: Maxime Bizon <mbizon@freebox.fr>
Date: Sat, 03 Mar 2007 00:45:47 +0100
Cc: ralf <ralf@linux-mips.org>, linux-mips <linux-mips@linux-mips.org>
In-reply-to: <116841864595-git-send-email-fbuihuu@gmail.com>
Organization: Freebox
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <116841864595-git-send-email-fbuihuu@gmail.com>
Reply-to: mbizon@freebox.fr
Sender: linux-mips-bounce@linux-mips.org
On Wed, 2007-01-10 at 09:44 +0100, Franck Bui-Huu wrote:

Hi Franck,

> Here's is the second attempt to make this works on your Malta board
> and all other boards that have some data reserved at the start of
> their memories. In these cases the first patchset assumed wrongly that

I was happy to try this patch on my 4Kec board with memory starting at
0x10000000 but it doesn't work.


Setting PHYS_OFFSET to 0, I get the expected "Wasting 2098176 bytes for
tracking 65568 unused pages" and everything works as usual.

Setting PHYS_OFFSET to 0x10000000, I get "Wasting 1024 bytes for
tracking 32 unused pages", but the kernel doesn't boot and crash in
init_bootmem_node().


Looking at phys_to_virt(), it looks like I also need to change
PAGE_OFFSET to 0x90000000 to get correct values. This makes the kernel
boot with a correct memory map, but userspace doesn't work anymore.

Just in case, I'm not using git head, but a 2.6.20 kernel with the 2
patches applied. Just tell me if you need complete dmesg.

Regards,

-- 
Maxime


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