Skip to content

Commit 7b29516

Browse files
stewartsmithshenki
authored andcommitted
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 <[email protected]> Acked-by: Vasant Hegde <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Joel Stanley <[email protected]>
1 parent e12a646 commit 7b29516

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/powerpc/platforms/powernv/opal-dump.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,5 +444,6 @@ void __init opal_platform_dump_init(void)
444444
return;
445445
}
446446

447-
opal_dump_resend_notification();
447+
if (opal_check_token(OPAL_DUMP_RESEND))
448+
opal_dump_resend_notification();
448449
}

0 commit comments

Comments
 (0)