powerpc/pseries: add FW_FEATURE_WATCHDOG flag
authorScott Cheloha <cheloha@linux.ibm.com>
Wed, 13 Jul 2022 20:23:33 +0000 (15:23 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 Jul 2022 11:57:39 +0000 (21:57 +1000)
commit1621563ec62ff143c7b817dd5eab0884cdfaf89d
tree32a59c6b4fb85f8e83773569b80183ff724d87be
parentc6b2bd262b33aa2451f52aec2190131d1762945a
powerpc/pseries: add FW_FEATURE_WATCHDOG flag

PAPR v2.12 specifies a new optional function set, "hcall-watchdog",
for the /rtas/ibm,hypertas-functions property.  The presence of this
function set indicates support for the H_WATCHDOG hypercall.

Check for this function set and, if present, set the new
FW_FEATURE_WATCHDOG flag.

Signed-off-by: Scott Cheloha <cheloha@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220713202335.1217647-3-cheloha@linux.ibm.com
arch/powerpc/include/asm/firmware.h
arch/powerpc/platforms/pseries/firmware.c