* [PATCHES] Ubuntu trivial powerpc patches
@ 2006-10-18 17:07 Ben Collins
2006-10-18 22:35 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Ben Collins @ 2006-10-18 17:07 UTC (permalink / raw)
To: linuxppc-dev
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;
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCHES] Ubuntu trivial powerpc patches
2006-10-18 17:07 [PATCHES] Ubuntu trivial powerpc patches Ben Collins
@ 2006-10-18 22:35 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2006-10-18 22:35 UTC (permalink / raw)
To: Ben Collins; +Cc: linuxppc-dev
On Wed, 2006-10-18 at 13:07 -0400, Ben Collins wrote:
> +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.
> +
The help text should probably be a little bit less cryptic :) Something
like saying that those messages are displayed by the Open Firmware
wrapper.
Ben.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-18 22:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-18 17:07 [PATCHES] Ubuntu trivial powerpc patches Ben Collins
2006-10-18 22:35 ` Benjamin Herrenschmidt
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).