login
Header Space

 
 

Re: [BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mikpe@...>
Cc: <sparclinux@...>, <linux-kernel@...>, <armin76@...>
Date: Tuesday, May 6, 2008 - 6:20 pm

From: Mikael Pettersson <mikpe@it.uu.se>
Date: Tue, 6 May 2008 21:38:24 +0200


I can reproduce this problem here in my t1000.

It looks like some kind of initrd regression.

Looking at the crashes, the kernel seems to be trying
to dereference a physical address when peeking at the
initrd instead of using a virtual one.  That's a big
clue.

This patch should fix it:

commit d45100f7b69e3d9cd0cd5e956b6ac2c78d460d07
Author: David S. Miller <davem@davemloft.net>
Date:   Tue May 6 15:19:54 2008 -0700

    sparc64: Fix initrd regression.
    
    We die because we forget to convert initrd_start and
    initrd_end to virtual addresses.
    
    Reported by Mikael Pettersson
    
    Signed-off-by: David S. Miller <davem@davemloft.net>

diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index db8e7fb..ec3e2c7 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -771,6 +771,9 @@ static void __init find_ramdisk(unsigned long phys_base)
 		initrd_end = ramdisk_image + sparc_ramdisk_size;
 
 		lmb_reserve(initrd_start, initrd_end);
+
+		initrd_start += PAGE_OFFSET;
+		initrd_end += PAGE_OFFSET;
 	}
 #endif
 }

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5, Mikael Pettersson, (Tue May 6, 3:54 am)
Re: [BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5, David Miller, (Tue May 6, 4:05 am)
Re: [BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5, Mikael Pettersson, (Tue May 6, 3:38 pm)
Re: [BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5, David Miller, (Tue May 6, 6:20 pm)
Re: [BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5, Raúl Porcel, (Thu May 8, 6:33 am)
Re: [BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5, Mikael Pettersson, (Wed May 7, 2:23 pm)
Re: [BUG] 2.6.26-rc1 hangs during boot on UltraSPARC 5, Raúl Porcel, (Tue May 6, 9:10 am)
speck-geostationary