Frederic Barrat 7cf7a7d025 powerpc/xive: Discard ESB load value when interrupt is invalid
commit 17328f218fb760c9c6accc5b52494889243a6b98 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: da15c03b047d ("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
..
2019-09-25 17:51:41 -07:00
2019-10-22 09:59:43 -07:00
2019-09-27 13:02:19 -07:00
2020-01-14 20:08:34 +01:00
2020-01-23 08:22:38 +01:00
2019-12-13 08:42:17 +01:00
2020-01-23 08:22:57 +01:00
2020-01-14 20:08:35 +01:00