Skip to contentSkip to conversation

Disable EARLY_PRINTK on IP22 to make the system boot

PATCH Martin Michlmayr 4 participants 6 messages Nov 19, 2009 – Nov 24, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

Some Debian users have reported that the kernel hangs early during boot on some IP22 systems. Thomas Bogendoerfer found that this is due to a "bad interaction between CONFIG_EARLY_PRINTK and overwritten prom memory during early boot". Since there's no fix yet, disable CONFIG_EARLY_PRINTK for now.

arch/mips/Kconfig +3 -1
index 1aad0d9..42e1ac1 100644
@@ -358,7 +358,9 @@ config SGI_IP22
 	select SWAP_IO_SPACE
 	select SYS_HAS_CPU_R4X00
 	select SYS_HAS_CPU_R5000
-	select SYS_HAS_EARLY_PRINTK
+# Disable EARLY_PRINTK for now since it leads to overwritten prom memory
+# during early boot on some machines.
+#	select SYS_HAS_EARLY_PRINTK
 	select SYS_SUPPORTS_32BIT_KERNEL
 	select SYS_SUPPORTS_64BIT_KERNEL
 	select SYS_SUPPORTS_BIG_ENDIAN
Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#1 lore raw
Quoted 5 lines · Martin Michlmayr

Some Debian users have reported that the kernel hangs early during boot on some IP22 systems. Thomas Bogendoerfer found that this is due to a "bad interaction between CONFIG_EARLY_PRINTK and overwritten prom memory during early boot". Since there's no fix yet, disable CONFIG_EARLY_PRINTK for now.

Never experienced anything like that, although I'm quite extensively using IP22 with recent kernels. Any details on the hangs?

Thanks,
Dmitri

Quoted 24 lines
arch/mips/Kconfig +3 -2
index 1aad0d9..42e1ac1 100644
@@ -358,7 +358,9 @@ config SGI_IP22
       select SWAP_IO_SPACE
       select SYS_HAS_CPU_R4X00
       select SYS_HAS_CPU_R5000
-       select SYS_HAS_EARLY_PRINTK
+# Disable EARLY_PRINTK for now since it leads to overwritten prom memory
+# during early boot on some machines.
+#      select SYS_HAS_EARLY_PRINTK
       select SYS_SUPPORTS_32BIT_KERNEL
       select SYS_SUPPORTS_64BIT_KERNEL
       select SYS_SUPPORTS_BIG_ENDIAN
 
--

Martin Michlmayr
http://www.cyrius.com/

#2 lore raw
Quoted 8 lines · Dmitri Vorobiev
Quoted 5 lines

Some Debian users have reported that the kernel hangs early during boot on some IP22 systems. Thomas Bogendoerfer found that this is due to a "bad interaction between CONFIG_EARLY_PRINTK and overwritten prom memory during early boot". Since there's no fix yet, disable CONFIG_EARLY_PRINTK for now.

Never experienced anything like that, although I'm quite extensively using IP22 with recent kernels. Any details on the hangs?

It doesn't happen on all machines. It has been reported e.g. with an Indigo2. See http://bugs.debian.org/507557

Since Thomas Bogendoerfer disagnosed the problem, he should be able to say more.

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#3 lore raw
Quoted 7 lines · Martin Michlmayr
Quoted 6 lines · Dmitri Vorobiev
Quoted 5 lines

Some Debian users have reported that the kernel hangs early during boot on some IP22 systems.  Thomas Bogendoerfer found that this is due to a "bad interaction between CONFIG_EARLY_PRINTK and overwritten prom memory during early boot".  Since there's no fix yet, disable CONFIG_EARLY_PRINTK for now.

Quoted 5 lines
Quoted 2 lines

Never experienced anything like that, although I'm quite extensively using IP22 with recent kernels. Any details on the hangs?

It doesn't happen on all machines.  It has been reported e.g. with an Indigo2.  See http://bugs.debian.org/507557

Interesting, thanks. Good to know that, since one of my machines is Indigo2.

Quoted 3 lines

Since Thomas Bogendoerfer disagnosed the problem, he should be able to say more.

OK.

Dmitri

Quoted 5 lines

--
Martin Michlmayr
http://www.cyrius.com/

#4 lore raw
Quoted 8 lines · Dmitri Vorobiev
Quoted 7 lines · Martin Michlmayr
Quoted 6 lines · Dmitri Vorobiev
Quoted 5 lines

Some Debian users have reported that the kernel hangs early during boot on some IP22 systems.  Thomas Bogendoerfer found that this is due to a "bad interaction between CONFIG_EARLY_PRINTK and overwritten prom memory during early boot".  Since there's no fix yet, disable CONFIG_EARLY_PRINTK for now.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Never experienced anything like that, although I'm quite extensively using IP22 with recent kernels. Any details on the hangs?

It doesn't happen on all machines.  It has been reported e.g. with an Indigo2.  See http://bugs.debian.org/507557

Interesting, thanks. Good to know that, since one of my machines is Indigo2.

I guess is depending on RPOM version and installed memory. I haven't figured out exactly which parts get overwritten, but since we completely ignore ARCS reservered memory and still use ARCS prom calls, it's not a real safe game we are doing.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea.                                                [ RFC1925, 2.3 ]
#5 lore raw
In reply to Martin Michlmayr
Quoted 7 lines · Martin Michlmayr

Some Debian users have reported that the kernel hangs early during boot on some IP22 systems. Thomas Bogendoerfer found that this is due to a "bad interaction between CONFIG_EARLY_PRINTK and overwritten prom memory during early boot". Since there's no fix yet, disable CONFIG_EARLY_PRINTK for now.

Patch looks ok but I think IP28 needs the same change applied. Will post a new patch in separate mail.

Ralf