setup: Move unmask of async interrupts after possible earlycon setup
authorJon Masters <jcm@redhat.com>
Tue, 26 Aug 2014 20:23:38 +0000 (21:23 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 15 Sep 2014 17:15:09 +0000 (18:15 +0100)
commit7a9c43bed891d1f8d639c69893ee194f5700d0b2
tree1bf1c91163fabc1b64defa4bb615285a7237c55d
parentfe184066abda9de114a80db24f1496ee6c31d1af
setup: Move unmask of async interrupts after possible earlycon setup

The kernel wants to enable reporting of asynchronous interrupts (i.e.
System Errors) as early as possible. But if this happens too early then
any pending System Error on initial entry into the kernel may never be
reported where a user can see it. This situation will occur if the kernel
is configured with CONFIG_PANIC_ON_OOPS set and (default or command line)
enabled, in which case the kernel will panic as intended, however the
associated logging messages indicating this failure condition will remain
only in the kernel ring buffer and never be flushed out to the (not yet
configured) console. Therefore, this patch moves the enabling of
asynchronous interrupts during early setup to as early as reasonable,
but after parsing any possible earlycon parameters setting up earlycon.

Signed-off-by: Jon Masters <jcm@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/setup.c
This page took 0.02587 seconds and 5 git commands to generate.