powerpc/powernv: only call OPAL_RESEND_DUMP if firmware supports it
authorStewart Smith <stewart@linux.vnet.ibm.com>
Thu, 12 Feb 2015 05:25:29 +0000 (16:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Mar 2015 07:50:14 +0000 (18:50 +1100)
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>
arch/powerpc/platforms/powernv/opal-dump.c

index 23260f7dfa7aeca7446dcfcc6e59f5ced346e6b1..5aa9c1ce4de3eabd8476211d7323622dd7c60254 100644 (file)
@@ -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();
 }