OpenCloudOS-Kernel/arch/powerpc/sysdev/xics
Benjamin Herrenschmidt 880a3d6afd powerpc/xics: Properly set Edge/Level type and enable resend
This sets the type of the interrupt appropriately. We set it as follow:

 - If not mapped from the device-tree, we use edge. This is the case
of the virtual interrupts and PCI MSIs for example.

 - If mapped from the device-tree and #interrupt-cells is 2 (PAPR
compliant), we use the second cell to set the appropriate type

 - If mapped from the device-tree and #interrupt-cells is 1 (current
OPAL on P8 does that), we assume level sensitive since those are
typically going to be the PSI LSIs which are level sensitive.

Additionally, we mark the interrupts requested via the opal_interrupts
property all level. This is a bit fishy but the best we can do until we
fix OPAL to properly expose them with a complete descriptor. It is also
correct for the current HW anyway as OPAL interrupts are currently PCI
error and PSI interrupts which are level.

Finally now that edge interrupts are properly identified, we can enable
CONFIG_HARDIRQS_SW_RESEND which will make the core re-send them if
they occur while masked, which some drivers rely upon.

This fixes issues with lost interrupts on some Mellanox adapters.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-08-09 14:50:18 +10:00
..
Kconfig powerpc/xics: Properly set Edge/Level type and enable resend 2016-08-09 14:50:18 +10:00
Makefile powerpc/xics: Add ICP OPAL backend 2016-07-17 16:42:45 +10:00
icp-hv.c powerpc: Delete non-required instances of include <linux/init.h> 2014-01-15 13:46:44 +11:00
icp-native.c powerpc/xics: Add icp_native_cause_ipi_rm 2016-02-29 16:25:06 +11:00
icp-opal.c powerpc/xics: Add ICP OPAL backend 2016-07-17 16:42:45 +10:00
ics-opal.c powerpc/xics: Properly set Edge/Level type and enable resend 2016-08-09 14:50:18 +10:00
ics-rtas.c powerpc/xics: Properly set Edge/Level type and enable resend 2016-08-09 14:50:18 +10:00
xics-common.c powerpc/xics: Properly set Edge/Level type and enable resend 2016-08-09 14:50:18 +10:00