linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] watchdog: add get/set peretimeout UAPI and internals
@ 2016-06-26  1:01 Vladimir Zapolskiy
  2016-06-26  1:01 ` [PATCH v2 1/2] watchdog: add pretimeout support to the core Vladimir Zapolskiy
  2016-06-26  1:01 ` [PATCH v2 2/2] fs: compat_ioctl: add pretimeout functions for watchdogs Vladimir Zapolskiy
  0 siblings, 2 replies; 9+ messages in thread
From: Vladimir Zapolskiy @ 2016-06-26  1:01 UTC (permalink / raw)
  To: Wolfram Sang, Robin Gong, Guenter Roeck; +Cc: Wim Van Sebroeck, linux-watchdog

The change from Wolfram based on Robin's work adds two new watchdog
ioctls WDIOC_GETPRETIMEOUT and WDIOC_SETPRETIMEOUT, both interfaces
are already described in Documentation/watchdog/watchdog-api.txt

Along with UAPI update a new internal interface for watchdog drivers
set_pretimeout() is introduced, it allows to update the state of a controller.

The handling of a pretimeout event is a task delegated to watchdog drivers.

My contribution to the change is negligible, apart of review and testing:
* added visibility of a pretimeout sysfs attribute based on
  set WDIOF_PRETIMEOUT watchdog option,

Wolfram's patch "watchdog: softdog: implement pretimeout support"
potentially can be added to the series with a minor modification:

-	static struct watchdog_device softdog_dev;
 	.....
-	watchdog_notify_pretimeout(&softdog_dev);
+	panic("watchdog pretimeout event");

but I'm hesitating to do it.

Changes from v1 to v2:
* removed my wrong generalization of wdd->pretimeout update
* added seconds unit of time to describe internal kernel API

The change adds all necessary bits to proceed with a watchdog pretimeout
framework devlopment.

Wolfram Sang (2):
  watchdog: add pretimeout support to the core
  fs: compat_ioctl: add pretimeout functions for watchdogs

 Documentation/watchdog/watchdog-kernel-api.txt | 20 +++++++++
 drivers/watchdog/watchdog_dev.c                | 56 +++++++++++++++++++++++++-
 fs/compat_ioctl.c                              |  2 +
 include/linux/watchdog.h                       | 11 +++++
 4 files changed, 87 insertions(+), 2 deletions(-)

-- 
2.8.1

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

end of thread, other threads:[~2016-06-27 20:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-26  1:01 [PATCH v2 0/2] watchdog: add get/set peretimeout UAPI and internals Vladimir Zapolskiy
2016-06-26  1:01 ` [PATCH v2 1/2] watchdog: add pretimeout support to the core Vladimir Zapolskiy
2016-06-26  2:30   ` Guenter Roeck
2016-06-27  9:37     ` Wolfram Sang
2016-06-27 13:32       ` Guenter Roeck
2016-06-27 15:33         ` Wolfram Sang
2016-06-27 20:14           ` Guenter Roeck
2016-06-26  1:01 ` [PATCH v2 2/2] fs: compat_ioctl: add pretimeout functions for watchdogs Vladimir Zapolskiy
2016-06-26  2:30   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).