Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Mon, 23 Nov 2009
 18:43:17 -0700
Received: from mail1.lsil.com (mail1.lsil.com [147.145.40.21])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id nAO1hGC5013528	for
 <andy.sharp@lsi.com>; Mon, 23 Nov 2009 17:43:16 -0800
Received: from psmtp.com (na3sys009amx231.postini.com [74.125.149.115])	by
 mail1.lsil.com (8.12.11/8.12.11) with SMTP id nAO1hEpF006915	for
 <andy.sharp@lsi.com>; Mon, 23 Nov 2009 17:43:15 -0800 (PST)
Received: from source ([78.24.191.182]) by na3sys009amx231.postini.com
 ([74.125.148.14]) with SMTP;	Mon, 23 Nov 2009 17:43:15 PST
Received: from localhost.localdomain ([127.0.0.1]:49961 "EHLO
	eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL)	by eddie.linux-mips.org with
 ESMTP id S1493517AbZKXBnM (ORCPT	<rfc822;andy.sharp@lsi.com>); Tue, 24 Nov
 2009 02:43:12 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 24 Nov 2009 02:42:55
 +0100 (CET)
Received: from h5.dl5rb.org.uk ([81.2.74.5]:33888 "EHLO h5.dl5rb.org.uk"
	rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP	id
 S1493513AbZKXBmw (ORCPT <rfc822;linux-mips@linux-mips.org>);	Tue, 24 Nov 2009
 02:42:52 +0100
Received: from h5.dl5rb.org.uk (localhost.localdomain [127.0.0.1])	by
 h5.dl5rb.org.uk (8.14.3/8.14.3) with ESMTP id nAO1h3qH004287;	Tue, 24 Nov
 2009 01:43:03 GMT
Received: (from ralf@localhost)	by h5.dl5rb.org.uk (8.14.3/8.14.3/Submit) id
 nAO1h349004285;	Tue, 24 Nov 2009 01:43:03 GMT
From: Ralf Baechle <ralf@linux-mips.org>
To: Martin Michlmayr <tbm@cyrius.com>, "linux-mips@linux-mips.org"
	<linux-mips@linux-mips.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Mon, 23 Nov 2009 18:43:03 -0700
Subject: [PATCH] MIPS: IP22/IP28 Disable EARLY_PRINTK on make the system	boot
Thread-Topic: [PATCH] MIPS: IP22/IP28 Disable EARLY_PRINTK on make the
 system	boot
Thread-Index: Acpsp37N+vwbIDC1SQuIkdNxWd2PdA==
Message-ID: <20091124014303.GB3991@linux-mips.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-scanned-by: MIMEDefang 2.39
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <ralf@linux-mips.org> [22/1] 
x-pstn-neptune: 0/0/0.00/0
user-agent: Mutt/1.5.19 (2009-01-05)
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

From: Martin Michlmayr <tbm@cyrius.com>

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>
Cc: Martin Michlmayr <tbm@cyrius.com>
Cc: linux-mips@linux-mips.org
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
This version also disables early printk for IP28.

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 1aad0d9..ffdd651 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -358,7 +358,14 @@ 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.
+	#
+	# See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=3Dlinux-mips&i=3D20091=
119164009.GA15038%40deprecation.cyrius.com
+	# for a more details discussion
+	#
+	# select SYS_HAS_EARLY_PRINTK
 	select SYS_SUPPORTS_32BIT_KERNEL
 	select SYS_SUPPORTS_64BIT_KERNEL
 	select SYS_SUPPORTS_BIG_ENDIAN
@@ -410,7 +417,14 @@ config SGI_IP28
 	select SGI_HAS_ZILOG
 	select SWAP_IO_SPACE
 	select SYS_HAS_CPU_R10000
-	select SYS_HAS_EARLY_PRINTK
+	#
+	# Disable EARLY_PRINTK for now since it leads to overwritten prom
+	# memory during early boot on some machines.
+	#
+	# See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=3Dlinux-mips&i=3D20091=
119164009.GA15038%40deprecation.cyrius.com
+	# for a more details discussion
+	#
+	# select SYS_HAS_EARLY_PRINTK
 	select SYS_SUPPORTS_64BIT_KERNEL
 	select SYS_SUPPORTS_BIG_ENDIAN
       help

