| To: | mbizon@freebox.fr |
|---|---|
| Subject: | Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2] |
| From: | "Franck Bui-Huu" <vagabon.xyz@gmail.com> |
| Date: | Thu, 8 Mar 2007 10:01:21 +0100 |
| Cc: | linux-mips <linux-mips@linux-mips.org>, ralf <ralf@linux-mips.org> |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; 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=uRX5mmpbwY5tnDEmiPF7WbWDefexyu3Y1qFURrX24Xu0Dvy3ag7Do5/S2awjYPjKUQVqrTt66qt7QQxbvjfY8Tb+Mkl7G3Y61ZXiLRTQHdTmQTa1vPjCKar8vdjSr1KZ/fZ+ifUg0aH5nurxYetC5eE2dcC8SwIqyMw8sqbzaOA= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; 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=DFHPH18E2ivqTnIck4+EaeZRqZCUuJGh02FqnKl/tptrfTbk90mx3iBFDy3mRRH6tpQmkQt4ImHs7P6zt8nIUZbXTg+PpwXT2kl6+hybgehQEsyx72F6p6kQwj6fWXw/fZmIOTYmvANaNpy8WaLfs+W16sPr6kHjG7pedPZpA3w= |
| In-reply-to: | <1173286700.6970.24.camel@sakura.staff.proxad.net> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <116841864595-git-send-email-fbuihuu@gmail.com> <1172879147.964.65.camel@sakura.staff.proxad.net> <cda58cb80703050615r4e559ca1u78517634ac23a27@mail.gmail.com> <1173112433.7093.36.camel@sakura.staff.proxad.net> <cda58cb80703061339l2f8cfc09m5823b090b69a7aa7@mail.gmail.com> <1173286700.6970.24.camel@sakura.staff.proxad.net> |
| Sender: | linux-mips-bounce@linux-mips.org |
Hi On 3/7/07, Maxime Bizon <mbizon@freebox.fr> wrote: I found the problem, I think these two liners are missing from your good catch ! I dunno why this is missing from the original patch since I have this in my own tree. patch. My board now works correctly, with 2MB more free memory, thanks for this ! (and for the free tour in mm/ ;) yeah 2MB is quite a lot for embedded system. Commit 6f284a2ce7b8bc49cb8455b1763357897a899abb introduced PHYS_OFFSET, but missed some virtual to physical address conversion. The following patch fixes it. Signed-off-by: Maxime Bizon <mbizon@freebox.fr> --- linux-2.6.20/include/asm-mips/pgtable.h 2007-02-04 21:22:45.000000000 +0100 +++ linux/include/asm-mips/pgtable.h 2007-03-07 17:28:20.000000000 +0100 @@ -75,7 +75,7 @@ * Conversion functions: convert a page and protection to a page entry, * and a page entry and page directory to the page they refer to. */ -#define pmd_phys(pmd) (pmd_val(pmd) - PAGE_OFFSET) +#define pmd_phys(pmd) (pmd_val(pmd) - PAGE_OFFSET + PHYS_OFFSET) please use virt_to_phys() instead plain translation...
ditto
Ralf, could this patch reach ASAP your main tree ?
thanks
--
Franck
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2], Franck Bui-Huu |
|---|---|
| Next by Date: | Re: Building 64 bit kernel on Cobalt, Franck Bui-Huu |
| Previous by Thread: | Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2], Maxime Bizon |
| Next by Thread: | Re: [PATCH 0/2] FLATMEM: allow memory to start at pfn != 0 [take #2], Franck Bui-Huu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |