public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] x86/earlyprintk: setup earlyprintk as early as possible
@ 2015-05-10 19:13 Alexander Kuleshov
  2015-05-10 19:14 ` [PATCH 1/2 v2] x86/setup: update boot_command_line with builtin_cmdline in separate function Alexander Kuleshov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alexander Kuleshov @ 2015-05-10 19:13 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin
  Cc: linux-kernel, Greg Kroah-Hartman, Borislav Petkov,
	Andy Shevchenko, Mark Rustad, Yinghai Lu, Alexander Kuleshov

As setup_early_printk passed to the early_param, it will be usable only after
'parse_early_param' function will be called from the 'setup_arch'. So we have
earlyprintk during early boot and decompression. Next point after decompression
of the kernel where we can use early_printk is after call of the
'parse_early_param'.

These patchset provides two patches where:

1. Move handling of the builtin command line to the separate function
from the setup_arch. Now we can call it from the arch/x86/kernel/head{32,64}.c,
and find 'earlyprintk' kernel command line paramter there.

2. Provide setup_serial_console function to setup serial earlyprintk in the
arch/x86/kernel/head{32,64}.c

Alexander Kuleshov (2):
  x86/setup: update boot_command_line with builtin_cmdline in separate
    function
  x86/earlyprintk: setup earlyprintk as early as possible

 arch/x86/include/asm/serial.h  |  2 ++
 arch/x86/include/asm/setup.h   |  3 ++-
 arch/x86/kernel/early_printk.c | 25 +++++++++++++++++++++++++
 arch/x86/kernel/head32.c       |  6 ++++++
 arch/x86/kernel/head64.c       |  7 +++++++
 arch/x86/kernel/setup.c        | 28 +++++++++++++++-------------
 6 files changed, 57 insertions(+), 14 deletions(-)

-- 
2.4.0


^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH 0/2] x86/earlyprintk: setup earlyprintk as early as possible
@ 2015-04-08  9:31 Alexander Kuleshov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Kuleshov @ 2015-04-08  9:31 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Greg Kroah-Hartman,
	Yinghai Lu
  Cc: linux-kernel

As setup_early_printk passed to the early_param, it will be usable only after
'parse_early_param' function will be called from the 'setup_arch'. So we have
earlyprintk during early boot and decompression. Next point after decompression
of the kernel where we can use early_printk is after call of the
'parse_early_param'.

This patch provides initialization of earlyprintk serial console as early
as possible in the arch/x86/kerne/head{32,64}.c

Alexander Kuleshov (2):
  x86/setup: update boot_command_line with builtin_cmdline in separate
    function
  x86/earlyprintk: setup earlyprintk as early as possible

 arch/x86/kernel/early_printk.c |  2 +-
 arch/x86/kernel/head.c         | 14 ++++++++++++++
 arch/x86/kernel/head32.c       |  3 +++
 arch/x86/kernel/head64.c       |  8 +++++++-
 arch/x86/kernel/setup.c        | 31 ++++++++++++++++++-------------
 include/linux/init.h           |  6 +++++-
 include/linux/printk.h         |  4 ++++
 kernel/printk/printk.c         | 11 +++++++----
 8 files changed, 59 insertions(+), 20 deletions(-)

-- 
2.3.3.611.g09038fc.dirty


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

end of thread, other threads:[~2015-05-11  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-10 19:13 [PATCH 0/2] x86/earlyprintk: setup earlyprintk as early as possible Alexander Kuleshov
2015-05-10 19:14 ` [PATCH 1/2 v2] x86/setup: update boot_command_line with builtin_cmdline in separate function Alexander Kuleshov
2015-05-10 19:14 ` [PATCH 2/2 v4] x86/earlyprintk: setup earlyprintk as early as possible Alexander Kuleshov
2015-05-11  7:22   ` Andy Shevchenko
2015-05-11  7:27 ` [PATCH 0/2] " Andy Shevchenko
2015-05-11  9:56   ` Alexander Kuleshov
  -- strict thread matches above, loose matches on Subject: below --
2015-04-08  9:31 Alexander Kuleshov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox