[PATCH] powerpc/64s: Make NMI record implicitly soft-masked code as irqs disabled

Michael Ellerman patch-notifications at ellerman.id.au
Sun May 16 08:43:54 AEST 2021


On Mon, 3 May 2021 21:17:08 +1000, Nicholas Piggin wrote:
> scv support introduced the notion of code that implicitly soft-masks
> irqs due to the instruction addresses. This is required because scv
> enters the kernel with MSR[EE]=1.
> 
> If a NMI (including soft-NMI) interrupt hits when we are implicitly
> soft-masked then its regs->softe does not reflect this because it is
> derived from the explicit soft mask state (paca->irq_soft_mask). This
> makes arch_irq_disabled_regs(regs) return false.
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/64s: Make NMI record implicitly soft-masked code as irqs disabled
      https://git.kernel.org/powerpc/c/4ec5feec1ad029bdf7d49bc50ccc0c195eeabe93

cheers


More information about the Linuxppc-dev mailing list