]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c843c4efe7db35361a696928fda780227647a70
tree32a59c6b4fb85f8e83773569b80183ff724d87be
parent71e8006efde2f6a239d12247f872284e22bbe505
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