login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
3
Re: [PATCH] Config option to disable info from decompression of the kernel
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Ben Collins
Subject:
Re: [PATCH] Config option to disable info from decompression of the kernel
Date: Thursday, July 3, 2008 - 7:46 am
On Thu, 2008-07-03 at 14:36 +0200, Ingo Molnar wrote:
quoted text
> * Ben Collins <ben.collins@canonical.com> wrote: > > > I submitted a similar patch some time ago, but rightfully it didn't > > get accepted, as it just disabled all output from the decompress stage > > (without a boot time option to enable it). > > > > This patch just disables the information output from this stage, but > > not the error output. > > > +config NO_BZ_CHATTER > > + bool "Disable decompress info messages" > > + default n > > + help > > + Disables just the informational output from the decompression stage > > + (e.g. bzImage) of the boot. You will still see errors. Do this if you > > + want to cleanup the bootup process. > > applied to tip/x86/setup - thanks Ben. > > Note that i've flipped around the name (i.e. got rid of the 'NO_'), and > i renamed it to the bit more generic X86_VERBOSE_BOOTUP config variable. > We might want to make other output dependent on that flag, not just the > decompressor messages. Find the commit below. (please double-check it)
Looks good, thanks.
quoted text
> Ingo > > -----------------------> > commit 6bcb13b35a2ea39be6c7cc0292b8ad1191b1a748 > Author: Ben Collins <ben.collins@canonical.com> > Date: Wed Jun 18 14:04:35 2008 -0400 > > x86: config option to disable info from decompression of the kernel > > This patch allows the disabling of decompression messages during > x86 bootup. > > Signed-off-by: Ben Collins <ben.collins@canonical.com> > Signed-off-by: Ingo Molnar <mingo@elte.hu> > > diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug > index ac1e31b..14abaa5 100644 > --- a/arch/x86/Kconfig.debug > +++ b/arch/x86/Kconfig.debug > @@ -16,6 +16,14 @@ config NONPROMISC_DEVMEM > obviously disasterous, but specific access can be used by people > debugging the kernel. > > +config X86_VERBOSE_BOOTUP > + bool "Enable verbose x86 bootup info messages" > + default y > + help > + Enables the informational output from the decompression stage > + (e.g. bzImage) of the boot. If you disable this you will still > + see errors. Disable this if you want silent bootup. > + > config EARLY_PRINTK > bool "Early printk" if EMBEDDED > default y > diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c > index d10e727..11629e9 100644 > --- a/arch/x86/boot/compressed/misc.c > +++ b/arch/x86/boot/compressed/misc.c > @@ -202,7 +202,8 @@ static void free(void *where); > static void *memset(void *s, int c, unsigned n); > static void *memcpy(void *dest, const void *src, unsigned n); > > -static void putstr(const char *); > +static void __putstr(int, const char *); > +#define putstr(__x) __putstr(0, __x) > > #ifdef CONFIG_X86_64 > #define memptr long > @@ -266,11 +267,16 @@ static void scroll(void) > vidmem[i] = ' '; > } > > -static void putstr(const char *s) > +static void __putstr(int error, const char *s) > { > int x, y, pos; > char c; > > +#ifndef CONFIG_X86_VERBOSE_BOOTUP > + if (!error) > + return; > +#endif > + > #ifdef CONFIG_X86_32 > if (real_mode->screen_info.orig_video_mode == 0 && > lines == 0 && cols == 0) > @@ -363,9 +369,9 @@ static void flush_window(void) > > static void error(char *x) > { > - putstr("\n\n"); > - putstr(x); > - putstr("\n\n -- System halted"); > + __putstr(1, "\n\n"); > + __putstr(1, x); > + __putstr(1, "\n\n -- System halted"); > > while (1) > asm("hlt");
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] Config option to disable info from decompression o ...
, Ben Collins
, (Wed Jun 18, 11:04 am)
Re: [PATCH] Config option to disable info from decompressi ...
, Ingo Molnar
, (Thu Jul 3, 5:36 am)
Re: [PATCH] Config option to disable info from decompressi ...
, Ben Collins
, (Thu Jul 3, 7:46 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate