aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/harness.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-04-10 17:16:10 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-08 00:32:38 +1000
commit77b5f703dcc859915f0f20d92bc538e4a99ef149 (patch)
treefed242c8288e66341c3999833833df80f3946531 /tools/testing/selftests/powerpc/harness.c
parentpowerpc: Allow CPU selection of e300core variants (diff)
downloadlinux-dev-77b5f703dcc859915f0f20d92bc538e4a99ef149.tar.xz
linux-dev-77b5f703dcc859915f0f20d92bc538e4a99ef149.zip
powerpc/powernv/opal: Use standard interrupts property when available
For (bad) historical reasons, OPAL used to create a non-standard pair of properties "opal-interrupts" and "opal-interrupts-names" for representing the list of interrupts it wants Linux to request on its behalf. Among other issues, the opal-interrupts doesn't have a way to carry the type of interrupts, and they were assumed to be all level sensitive. This is wrong on some recent systems where some of them are edge sensitive causing warnings in the XIVE code and possible misbehaviours if they need to be retriggered (typically the NPU2 TCE error interrupts). This makes Linux switch to using the standard "interrupts" and "interrupt-names" properties instead when they are available, using standard of_irq helpers, which can carry all the desired type information. Newer versions of OPAL will generate those properties in addition to the legacy ones. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [mpe: Fixup prefix logic to check strlen(r->name). Reinstate setting of start = 0 in opal_event_shutdown() to avoid double free warnings] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/harness.c')
0 files changed, 0 insertions, 0 deletions