All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/4] pseries-wdt: initial support for PAPR virtual watchdog timers
@ 2022-05-20 18:35 ` Scott Cheloha
  0 siblings, 0 replies; 28+ messages in thread
From: Scott Cheloha @ 2022-05-20 18:35 UTC (permalink / raw)
  To: linux-watchdog
  Cc: linux, tzungbi, brking, nathanl, aik, npiggin, vaishnavi, wvoigt,
	linuxppc-dev

This series is preceded by two RFCs:

RFC v1: https://lore.kernel.org/linux-watchdog/20220413165104.179144-1-cheloha@linux.ibm.com/
RFC v2: https://lore.kernel.org/linux-watchdog/20220509174357.5448-1-cheloha@linux.ibm.com/

Changes of note from RFC v2:

- Separate platform device registration in pseries/setup.c into a
  separate patch to avoid cross-subsystem patches.

- Change the "action" module parameter to use integers instead of
  strings.

- Add a proper .get method, action_get(), for reading the "action"
  module parameter value.

- Document pseries-wdt module parameters in watchdog-parameters.rst.

- Correct many checkpatch.pl warnings.

- For now, assume there is only one pseries-wdt device and always
  assign it watchdogNumber 1.



^ permalink raw reply	[flat|nested] 28+ messages in thread
* [PATCH v1 1/4] powerpc/pseries: hvcall.h: add H_WATCHDOG opcode, H_NOOP return code
@ 2022-05-20 17:20 ` Scott Cheloha
  0 siblings, 0 replies; 28+ messages in thread
From: Scott Cheloha @ 2022-05-20 17:20 UTC (permalink / raw)
  To: linux-watchdog
  Cc: linux, tzungbi, brking, nathanl, aik, npiggin, vaishnavi, wvoigt,
	linuxppc-dev, Scott Cheloha

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>
---
 arch/powerpc/include/asm/hvcall.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h
index d92a20a85395..4b4f69c35b4f 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)
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2022-06-02  4:27 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 18:35 [PATCH v1 0/4] pseries-wdt: initial support for PAPR virtual watchdog timers Scott Cheloha
2022-05-20 18:35 ` Scott Cheloha
2022-05-20 18:35 ` [PATCH v1 1/4] powerpc/pseries: hvcall.h: add H_WATCHDOG opcode, H_NOOP return code Scott Cheloha
2022-05-20 18:35   ` Scott Cheloha
2022-05-20 18:35 ` [PATCH v1 2/4] powerpc/pseries: add FW_FEATURE_WATCHDOG flag Scott Cheloha
2022-05-20 18:35   ` Scott Cheloha
2022-05-20 18:35 ` [PATCH v1 3/4] powerpc/pseries: register pseries-wdt device with platform bus Scott Cheloha
2022-05-20 18:35   ` Scott Cheloha
2022-05-20 18:35 ` [PATCH v1 4/4] watchdog/pseries-wdt: initial support for PAPR H_WATCHDOG timers Scott Cheloha
2022-05-20 18:35   ` Scott Cheloha
2022-05-25  6:35   ` Alexey Kardashevskiy
2022-05-25  6:35     ` Alexey Kardashevskiy
2022-05-25  7:52     ` Guenter Roeck
2022-05-25  7:52       ` Guenter Roeck
2022-06-01 15:07       ` Scott Cheloha
2022-06-01 15:07         ` Scott Cheloha
2022-06-01 15:45         ` Guenter Roeck
2022-06-01 15:45           ` Guenter Roeck
2022-06-01 15:56           ` Scott Cheloha
2022-06-01 15:56             ` Scott Cheloha
2022-06-01 14:48     ` Scott Cheloha
2022-06-01 14:48       ` Scott Cheloha
2022-06-02  4:27       ` Alexey Kardashevskiy
2022-06-02  4:27         ` Alexey Kardashevskiy
  -- strict thread matches above, loose matches on Subject: below --
2022-05-20 17:20 [PATCH v1 1/4] powerpc/pseries: hvcall.h: add H_WATCHDOG opcode, H_NOOP return code Scott Cheloha
2022-05-20 17:20 ` Scott Cheloha
2022-05-20 17:44 ` Guenter Roeck
2022-05-20 17:44   ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.