linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Ben Collins <ben.collins@ubuntu.com>
To: linuxppc-dev@ozlabs.org
Subject: [PATCHES] Ubuntu trivial powerpc patches
Date: Wed, 18 Oct 2006 13:07:30 -0400	[thread overview]
Message-ID: <1161191250.5663.14.camel@gullible> (raw)

Here's a couple of small patches I've got in the Ubuntu kernel tree for
powerpc. They can be synced from:

git.kernel.org:/pub/scm/linux/kernel/git/bcollins/ubuntu-2.6#ubuntu-powerpc

The patch for prom init printf's disabling is just to make the boot a
little cleaner.

Ben Collins:
      [powerpc] Allow disabling of prom init messages.
      [powerpc] Make pSeries_init_panel message configurable.

 arch/powerpc/Kconfig                   |    5 +++++
 arch/powerpc/Kconfig.debug             |    9 +++++++++
 arch/powerpc/kernel/prom_init.c        |    5 ++++-
 arch/powerpc/platforms/pseries/setup.c |    2 +-
 4 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 8b69104..58b9ed9 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -371,6 +371,11 @@ config PPC_PSERIES
 	select PPC_UDBG_16550
 	default y
 
+config PPC_PSERIES_PANEL_MSG
+	depends on PPC_PSERIES
+	string "Message for pSeries progress panel"
+	default "Linux ppc64"
+
 config PPC_ISERIES
 	bool "IBM Legacy iSeries"
 	depends on PPC_MULTIPLATFORM && PPC64
diff --git a/arch/powerpc/Kconfig.debug b/arch/powerpc/Kconfig.debug
index 5ad149b..0f7a26c 100644
--- a/arch/powerpc/Kconfig.debug
+++ b/arch/powerpc/Kconfig.debug
@@ -121,6 +121,15 @@ config BOOTX_TEXT
 	  Say Y here to see progress messages from the boot firmware in text
 	  mode. Requires either BootX or Open Firmware.
 
+config EARLY_PROM_PRINT
+	bool "Support early messages from the kernel via the prom console"
+	depends PPC_OF
+	default y
+	help
+	  Say Y here to see early messages from the kernel through the
+	  prom console. These are usually only related to the prom init
+	  and detection code.
+
 config SERIAL_TEXT_DEBUG
 	bool "Support for early boot texts over serial port"
 	depends on 4xx || LOPEC || MV64X60 || PPLUS || PRPMC800 || \
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index b917616..e95cd81 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -297,7 +297,7 @@ static void __init prom_print(const char
 	}
 }
 
-
+#ifdef CONFIG_EARLY_PROM_PRINT
 static void __init prom_print_hex(unsigned long val)
 {
 	int i, nibbles = sizeof(val)*2;
@@ -356,6 +356,9 @@ #endif
 		}
 	}
 }
+#else
+#define prom_printf(fmt, ...)	do {} while(0)
+#endif
 
 
 static unsigned int __init prom_claim(unsigned long virt, unsigned long size,
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index 89a8119..c9fc362 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -340,7 +340,7 @@ static void __init pSeries_setup_arch(vo
 static int __init pSeries_init_panel(void)
 {
 	/* Manually leave the kernel version on the panel. */
-	ppc_md.progress("Linux ppc64\n", 0);
+	ppc_md.progress(CONFIG_PPC_PSERIES_PANEL_MSG "\n", 0);
 	ppc_md.progress(init_utsname()->version, 0);
 
 	return 0;

             reply	other threads:[~2006-10-18 17:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-18 17:07 Ben Collins [this message]
2006-10-18 22:35 ` [PATCHES] Ubuntu trivial powerpc patches Benjamin Herrenschmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1161191250.5663.14.camel@gullible \
    --to=ben.collins@ubuntu.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).