[PATCH] setup: Move unmask of async interrupts after possible earlycon setup

Jon Masters jcm at redhat.com
Tue Aug 26 13:05:16 PDT 2014


Hi Grant,

On 08/26/2014 04:01 PM, Grant Likely wrote:
> On Tue, Aug 26, 2014 at 7:55 PM, Jon Masters <jcm at redhat.com> wrote:
>> The kernel wants to enable reporting of asynchronous interrupts (i.e.
>> System Errors) as early as possible. But if this happens too early
>> then a pending System Error on initial entry into the kernel will
>> never be reported where a user can see it (instead it will remain
>> in the kernel ring buffer and be visible only via hardware debug).
>> Therefore, move the enabling of asynchronous interrupts to after
>> parsing any possible earlycon parameters setting up earlycon.
>>
>> Signed-off-by: Jon Masters <jcm at redhat.com>
> 
> That sounds wrong. Why aren't early log messages getting flushed out
> when the console shows up?

The problem is that when such an error occurs, we immediately panic. And
we've not setup the earlycon yet so there's no way to ever see it. I
wasted a bunch of time last week so it's worth saving someone else.

Jon.




More information about the linux-arm-kernel mailing list