linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Disable EARLY_PRINTK on IP22 to make the system boot
@ 2009-11-19 16:40 Martin Michlmayr
  2009-11-19 16:56 ` Dmitri Vorobiev
  2009-11-24  1:39 ` Ralf Baechle
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Michlmayr @ 2009-11-19 16:40 UTC (permalink / raw)
  To: linux-mips

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.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 1aad0d9..42e1ac1 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -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/

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: Disable EARLY_PRINTK on IP22 to make the system boot
  2009-11-19 16:40 Disable EARLY_PRINTK on IP22 to make the system boot Martin Michlmayr
@ 2009-11-19 16:56 ` Dmitri Vorobiev
  2009-11-19 17:00   ` Martin Michlmayr
  2009-11-24  1:39 ` Ralf Baechle
  1 sibling, 1 reply; 6+ messages in thread
From: Dmitri Vorobiev @ 2009-11-19 16:56 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: linux-mips

On Thu, Nov 19, 2009 at 6:40 PM, Martin Michlmayr <tbm@cyrius.com> wrote:
> 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

>
> Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
>
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index 1aad0d9..42e1ac1 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -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/
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Disable EARLY_PRINTK on IP22 to make the system boot
  2009-11-19 16:56 ` Dmitri Vorobiev
@ 2009-11-19 17:00   ` Martin Michlmayr
  2009-11-19 20:05     ` Dmitri Vorobiev
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Michlmayr @ 2009-11-19 17:00 UTC (permalink / raw)
  To: Dmitri Vorobiev; +Cc: linux-mips

* Dmitri Vorobiev <dmitri.vorobiev@gmail.com> [2009-11-19 18:56]:
> > 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.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Disable EARLY_PRINTK on IP22 to make the system boot
  2009-11-19 17:00   ` Martin Michlmayr
@ 2009-11-19 20:05     ` Dmitri Vorobiev
  2009-11-19 20:55       ` Thomas Bogendoerfer
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitri Vorobiev @ 2009-11-19 20:05 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: linux-mips

On Thu, Nov 19, 2009 at 7:00 PM, Martin Michlmayr <tbm@cyrius.com> wrote:
> * Dmitri Vorobiev <dmitri.vorobiev@gmail.com> [2009-11-19 18:56]:
>> > 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

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

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

OK.

Dmitri

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Disable EARLY_PRINTK on IP22 to make the system boot
  2009-11-19 20:05     ` Dmitri Vorobiev
@ 2009-11-19 20:55       ` Thomas Bogendoerfer
  0 siblings, 0 replies; 6+ messages in thread
From: Thomas Bogendoerfer @ 2009-11-19 20:55 UTC (permalink / raw)
  To: Dmitri Vorobiev; +Cc: Martin Michlmayr, linux-mips

On Thu, Nov 19, 2009 at 10:05:06PM +0200, Dmitri Vorobiev wrote:
> On Thu, Nov 19, 2009 at 7:00 PM, Martin Michlmayr <tbm@cyrius.com> wrote:
> > * Dmitri Vorobiev <dmitri.vorobiev@gmail.com> [2009-11-19 18:56]:
> >> > 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
> 
> 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.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Disable EARLY_PRINTK on IP22 to make the system boot
  2009-11-19 16:40 Disable EARLY_PRINTK on IP22 to make the system boot Martin Michlmayr
  2009-11-19 16:56 ` Dmitri Vorobiev
@ 2009-11-24  1:39 ` Ralf Baechle
  1 sibling, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2009-11-24  1:39 UTC (permalink / raw)
  To: Martin Michlmayr; +Cc: linux-mips

On Thu, Nov 19, 2009 at 04:40:09PM +0000, Martin Michlmayr wrote:

> 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.
> 
> Signed-off-by: Martin Michlmayr <tbm@cyrius.com>

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

  Ralf

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-24  1:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 16:40 Disable EARLY_PRINTK on IP22 to make the system boot Martin Michlmayr
2009-11-19 16:56 ` Dmitri Vorobiev
2009-11-19 17:00   ` Martin Michlmayr
2009-11-19 20:05     ` Dmitri Vorobiev
2009-11-19 20:55       ` Thomas Bogendoerfer
2009-11-24  1:39 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).