login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Thomas Bogendoerfer
Subject:
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET != 0
Date: Sunday, December 30, 2007 - 4: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, 4:44 am)
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET ...
, Thomas Bogendoerfer
, (Thu Dec 20, 5:43 am)
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET ...
, Mel Gorman
, (Thu Dec 20, 6:27 am)
Re: [PATCH] Fix crash with FLAT_MEMORY and ARCH_PFN_OFFSET ...
, Thomas Bogendoerfer
, (Sun Dec 30, 4:37 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Paul E. McKenney
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
Ingo Molnar
Re: [GIT PULL] time.c - respin
Robin Holt
Re: Linux 2.6.26-rc1
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Junio C Hamano
Re: git-svnimport
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Nicolas Pitre
[PATCH] diff: don't presume empty file when corresponding object is missing
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Mike Frysinger
Re: bridge netpoll support: mismatch between net core and bridge headers
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Stephen J. Bevan
GRE over IPsec
Christophe Rioux
Implementation example of snmp
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: booting openbsd on eee without cd-rom
Guido Tschakert
Re: what exactly is enc0?
Colocation donated by:
Syndicate