summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/powernv/opal-dump.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-02-12 16:25:29 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-16 18:50:14 +1100
commit7e73a3b7f34240871fa5556d952e801178970741 (patch)
tree2b2a336ef86919d3539e33b2b6570ebba428711d /arch/powerpc/platforms/powernv/opal-dump.c
parentfc81de63104e7603e6695225c2573f27aaeb4a28 (diff)
powerpc/powernv: only call OPAL_RESEND_DUMP if firmware supports it
Not all OPAL platforms support resending system dumps, so check that current firmware supports it first. Otherwise we get firmware complaining: "OPAL: Called with bad token 91 !" Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/opal-dump.c')
-rw-r--r--arch/powerpc/platforms/powernv/opal-dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal-dump.c b/arch/powerpc/platforms/powernv/opal-dump.c
index 23260f7dfa7a..5aa9c1ce4de3 100644
--- a/arch/powerpc/platforms/powernv/opal-dump.c
+++ b/arch/powerpc/platforms/powernv/opal-dump.c
@@ -452,5 +452,6 @@ void __init opal_platform_dump_init(void)
return;
}
- opal_dump_resend_notification();
+ if (opal_check_token(OPAL_DUMP_RESEND))
+ opal_dump_resend_notification();
}