[Top] [All Lists]

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

Subject: Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2]
From: "Franck Bui-Huu" <>
Date: Mon, 5 Mar 2007 15:15:46 +0100
Cc: ralf <>, linux-mips <>
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BWutyqVkxnzVuLWswrmL2hXQF9gOTii2Lyb5pL5vhBVC0Tn3+fMXAiktAcZmmI6Wwxa/hB8j6MDCL6ETZd2nCA0FblQZBUFPGnqkS54ApmMT7nh5dVpCv3B2qAJMrRxglZFavF6j8NfNjf4FedUQa6B9KUE1VWjPgC4FT6QwQZw=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VHCPWbrFy+jZbqLWkdt6sC1hCgc50FntDL/x+pQnJuTWMtrrBrY5A6SwD76ic55lcZCbVluSUPXaG61l2Esn7Wh2KveNzI4lUJvKqAJRPEAFCA3RIll9LavHszQN/cksyhyTKlB/4cx23kfC2D85VN1eN/LfF+KASSXJMKE5Tb8=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>

On 3/3/07, Maxime Bizon <> wrote:
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.

No phys_to_virt() should already take care of that:

static inline void * phys_to_virt(unsigned long address)
       return (void *)(address + PAGE_OFFSET - PHYS_OFFSET);

Does your platform code do some address translation by using
CPHYSADDR() macro or by using anything else than pa() ?

Just in case, I'm not using git head, but a 2.6.20 kernel with the 2

2.6.20 should be OK. This patchset need some commits which have been
applied before.

patches applied. Just tell me if you need complete dmesg.

yes, please, it may help. Can you send your config file as well ?

Just to be sure, is your PAGE_OFFSET equal to 0x80000000 ?


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