[PATCH v10 1/7] powerpc/mce: Schedule work from irq_work

Nicholas Piggin npiggin at gmail.com
Tue Aug 20 00:08:46 AEST 2019


Santosh Sivaraj's on August 15, 2019 10:39 am:
> schedule_work() cannot be called from MCE exception context as MCE can
> interrupt even in interrupt disabled context.

The powernv code doesn't do this in general, rather defers kernel
MCEs. My patch series converts the pseries machine check exception
code over to the same.

However there remain special cases where that's not true for
powernv, e.g., the machine check stack overflow or unrecoverable
MCE paths try to force it through so something gets printed. We
probably shouldn't even try to do memory failure in these cases.

Still, shouldn't hurt to make this change and fixes the existing
"different" pseries code.

Thanks,
Nick

> fixes: 733e4a4c ("powerpc/mce: hookup memory_failure for UE errors")
> Suggested-by: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>
> Signed-off-by: Santosh Sivaraj <santosh at fossix.org>
> Reviewed-by: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>
> Acked-by: Balbir Singh <bsingharora at gmail.com>
> Cc: stable at vger.kernel.org # v4.15+

Reviewed-by: Nicholas Piggin <npiggin at gmail.com>



More information about the Linuxppc-dev mailing list