Explorar o código

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>
Stewart Smith %!s(int64=11) %!d(string=hai) anos
pai
achega
7e73a3b7f3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      arch/powerpc/platforms/powernv/opal-dump.c

+ 2 - 1
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();
 }