[PATCH 2/2] powerpc/pseries, ps3: panic flush kernel messages before halting system

2017-12-23 Thread Nicholas Piggin
Platforms with a panic handler that halts the system can have problems getting kernel messages out, because the panic notifiers are called before kernel/panic.c does its flushing of printk buffers an console etc. This was attempted to be solved with commit a3b2cb30f252 ("powerpc: Do not call ppc_m

[PATCH 1/2] powerpc: System reset avoid interleaving oops using die synchronisation

2017-12-23 Thread Nicholas Piggin
The die() oops path contains a serializing lock to prevent oops messages from being interleaved. In the case of a system reset initiated oops (e.g., qemu nmi command), __die was being called which lacks that synchronisation and oops reports could be interleaved across CPUs. A recent patch 4388c9b3

[PATCH 0/2] sreset driven panic/oops message printing fixes

2017-12-23 Thread Nicholas Piggin
Here's a couple of fixes that should go into 4.15 and possibly stable kernels as well. Most of the time when you hit the system reset button, either you're a developer with xmon enabled or customer with a crash dumper enabled. But if neither is the case, then the result is currently pretty useless.

[PATCH v3] powerpc/64s: Improve local TLB flush for boot and MCE on POWER9

2017-12-23 Thread Nicholas Piggin
There are several cases outside the normal address space management where a CPU's entire local TLB is to be flushed: 1. Booting the kernel, in case something has left stale entries in the TLB (e.g., kexec). 2. Machine check, to clean corrupted TLB entries. One other place where the TLB