aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Cheloha <cheloha@linux.ibm.com>2022-07-13 15:23:32 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2022-07-20 21:57:39 +1000
commitc6b2bd262b33aa2451f52aec2190131d1762945a (patch)
treecdfc37d99bbb375b20f00c8e1f6f890ddc7250f4
parentpowerpc/52xx: Mark gpt driver as not removable (diff)
downloadlinux-dev-c6b2bd262b33aa2451f52aec2190131d1762945a.tar.xz
linux-dev-c6b2bd262b33aa2451f52aec2190131d1762945a.zip
powerpc/pseries: hvcall.h: add H_WATCHDOG opcode, H_NOOP return code
PAPR v2.12 defines a new hypercall, H_WATCHDOG. The hypercall permits guest control of one or more virtual watchdog timers. Add the opcode for the H_WATCHDOG hypercall to hvcall.h. While here, add a definition for H_NOOP, a possible return code for H_WATCHDOG. 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-2-cheloha@linux.ibm.com
-rw-r--r--arch/powerpc/include/asm/hvcall.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h
index 1d454c70e7c6..4457abe31e6e 100644
--- a/arch/powerpc/include/asm/hvcall.h
+++ b/arch/powerpc/include/asm/hvcall.h
@@ -87,6 +87,7 @@
#define H_P7 -60
#define H_P8 -61
#define H_P9 -62
+#define H_NOOP -63
#define H_TOO_BIG -64
#define H_UNSUPPORTED -67
#define H_OVERLAP -68
@@ -324,7 +325,8 @@
#define H_RPT_INVALIDATE 0x448
#define H_SCM_FLUSH 0x44C
#define H_GET_ENERGY_SCALE_INFO 0x450
-#define MAX_HCALL_OPCODE H_GET_ENERGY_SCALE_INFO
+#define H_WATCHDOG 0x45C
+#define MAX_HCALL_OPCODE H_WATCHDOG
/* Scope args for H_SCM_UNBIND_ALL */
#define H_UNBIND_SCOPE_ALL (0x1)