linux/arch
Frederic Barrat 7cf7a7d025 powerpc/xive: Discard ESB load value when interrupt is invalid
commit 17328f218f upstream.

A load on an ESB page returning all 1's means that the underlying
device has invalidated the access to the PQ state of the interrupt
through mmio. It may happen, for example when querying a PHB interrupt
while the PHB is in an error state.

In that case, we should consider the interrupt to be invalid when
checking its state in the irq_get_irqchip_state() handler.

Fixes: da15c03b04 ("powerpc/xive: Implement get_irqchip_state method for XIVE to fix shutdown race")
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
[clg: wrote a commit log, introduced XIVE_ESB_INVALID ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200113130118.27969-1-clg@kaod.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-29 16:45:26 +01:00
..
alpha
arc
arm hwrng: omap3-rom - Fix missing clock by probing with device tree 2020-01-26 10:01:03 +01:00
arm64 Revert "arm64: dts: juno: add dma-ranges property" 2020-01-23 08:22:57 +01:00
c6x
csky
h8300
hexagon hexagon: work around compiler crash 2020-01-17 19:49:07 +01:00
ia64 mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
m68k
microblaze
mips MIPS: Prevent link failure with kcov instrumentation 2020-01-17 19:49:05 +01:00
nds32 asm-generic/nds32: don't redefine cacheflush primitives 2020-01-17 19:48:43 +01:00
nios2
openrisc
parisc parisc: Implement copy_thread_tls 2020-01-14 20:08:34 +01:00
powerpc powerpc/xive: Discard ESB load value when interrupt is invalid 2020-01-29 16:45:26 +01:00
riscv riscv: export flush_icache_all to modules 2020-01-17 19:49:04 +01:00
s390 s390/setup: Fix secure ipl message 2020-01-23 08:22:38 +01:00
sh mm/memory_hotplug: shrink zones when offlining memory 2020-01-09 10:19:56 +01:00
sparc
um um: virtio_uml: Disallow modular build 2020-01-23 08:22:57 +01:00
unicore32
x86 x86/resctrl: Fix potential memory leak 2020-01-23 08:22:38 +01:00
xtensa xtensa: Implement copy_thread_tls 2020-01-14 20:08:35 +01:00
.gitignore
Kconfig