login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
December
»
30
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET != 0
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Thomas Bogendoerfer <tsbogend@...>
To: Mel Gorman <mel@...>
Cc: <linux-kernel@...>, Bob Picco <bob.picco@...>, Dave Hansen <haveblue@...>, Andy Whitcroft <apw@...>, Andi Kleen <ak@...>, Benjamin Herrenschmidt <benh@...>, Paul Mackerras <paulus@...>, Keith Mannthey <kmannth@...>, Luck, Tony <tony.luck@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>, Yasunori Goto <y-goto@...>, <akpm@...>, Linus Torvalds <torvalds@...>, <ralf@...>
Subject:
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET != 0
Date: Sunday, December 30, 2007 - 7:37 am
On Thu, Dec 20, 2007 at 01:27:20PM +0000, Mel Gorman wrote:
quoted text
> On (20/12/07 13:43), Thomas Bogendoerfer didst pronounce: > > On Thu, Dec 20, 2007 at 11:44:06AM +0000, Mel Gorman wrote: > > > --- a/include/asm-mips/page.h > > > +++ b/include/asm-mips/page.h > > > @@ -37,13 +37,6 @@ > > > #include <linux/pfn.h> > > > #include <asm/io.h> > > > > > > -/* > > > - * It's normally defined only for FLATMEM config but it's > > > - * used in our early mem init code for all memory models. > > > - * So always define it. > > > - */ > > > -#define ARCH_PFN_OFFSET PFN_UP(PHYS_OFFSET) > > > - > > > > hmm, doesn't this break what I've fixed ? Without this #define > > ARCH_PFN_OFFSET gets defined to 0 and the bug is back. Or did > > I miss anything ? > > > > ARCH_PFN_OFFSET goes to 0, so page_to_pfn() is no longer adjusting by > PFN_UP(PHYS_OFFSET) like it was when your problem occured. I am guessing > that the nature of the crash was that page_to_pfn() was returning bogus > values early in boot and trying to initialise memmap that didn't exist.
ic, your patch works for me. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ RFC1925, 2.3 ] --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET !...
, Mel Gorman
, (Thu Dec 20, 7:44 am)
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET !...
, Thomas Bogendoerfer
, (Thu Dec 20, 8:43 am)
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET !...
, Mel Gorman
, (Thu Dec 20, 9:27 am)
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET !...
, Thomas Bogendoerfer
, (Sun Dec 30, 7:37 am)
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET !...
, Mel Gorman
, (Mon Jan 7, 8:15 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Yinghai Lu
[PATCH] x86: make e820.c to have common functions
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
Eric W. Biederman
Re: [PATCH 0/4][RFC] netns: sysfs: add a netns suffix to net device sysfs entries
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
931 guests
online.
Online users
apnote50
dutcd101
Syndicate