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@...>
Date: Tuesday, May 6, 2008 - 4:05 am

From: Mikael Pettersson <mikpe@it.uu.se>
Date: Tue, 6 May 2008 09:54:05 +0200


It's possible your machine does boot up all the way.
The video driver simply isn't registerring for whatever
reason.

Can you ping the box if you wait a minute or two after the
messages stop?

The only patch to the aty driver since 2.6.25 is the
following, below, which you can try reverting.

Another thing you can do is edit arch/sparc64/kernel/setup.c
and in the prom_early_console struct initializer, remove the
"CON_BOOT" bit from the .flags setting.  That will keep the
PROM console enabled even when another console wants to
register.  We'll get more messages that way.

commit 21b4d1db84a70175251d86078123cc27e46ff69d
Author: Roel Kluin <12o3l@tiscali.nl>
Date:   Mon Apr 28 02:15:04 2008 -0700

    video/aty/atyfb_base.c: free when fb can't be registered
    
    Free buffer when the framebuffer can't be registered
    
    Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
    Cc: "Antonino A. Daplas" <adaplas@pol.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
index 62f9c6e..e4bcf53 100644
--- a/drivers/video/aty/atyfb_base.c
+++ b/drivers/video/aty/atyfb_base.c
@@ -2621,10 +2621,13 @@ static int __devinit aty_init(struct fb_info *info)
 #endif /* CONFIG_FB_ATY_CT */
 	info->var = var;
 
-	fb_alloc_cmap(&info->cmap, 256, 0);
+	if (fb_alloc_cmap(&info->cmap, 256, 0) < 0)
+		goto aty_init_exit;
 
-	if (register_framebuffer(info) < 0)
+	if (register_framebuffer(info) < 0) {
+		fb_dealloc_cmap(&info->cmap);
 		goto aty_init_exit;
+	}
 
 	fb_list = info;
 
--
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