Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1554411
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Rasmus Villemoes <rasmus.villemoes@prevas.dk> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 0/3] watchdog: allow setting deadline for opening /dev/watchdogN |
| Date | Mon, 09 Jan 2017 16:20:02 +0100 |
| Message-ID | <sXJTP-5Pf-17@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1634; q=dns/txt; s=ironport2; t=1483974831; x=1515510831; h=from:to:cc:subject:date:message-id:mime-version; bh=aq6td6zmS5j+Mn0CHi/oqd/VGQiDChvUuQnj10e6CDM=; b=NVAYgZB658uc/H40kQjT7vWHSxo9V1D5z+SXg1BZkNu6k48lelpeUgKd jPy1e95T/pTBhITyPrbZqfmh1vnLp9EC72svXgSKRU2dj7TyK9f+8BJiE Aaq+eYKqQTAYe1nUZMKLGfKhAM8HG1hCkvGa5F6FFLYnBXtKJJsB7dS/N s=; |
| X-Ironport-Av | E=Sophos;i="5.33,339,1477954800"; d="scan'208";a="1616350" |
| X-Mailer | git-send-email 2.7.4 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Originating-IP | [172.16.8.31] |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 35 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Sylvain Lemieux <slemieux.tyco@gmail.com>, Rasmus Villemoes <rasmus.villemoes@prevas.dk>, Guenter Roeck <linux@roeck-us.net> |
| X-Original-Date | Mon, 9 Jan 2017 16:02:30 +0100 |
| X-Original-Message-ID | <1483974153-466-1-git-send-email-rasmus.villemoes@prevas.dk> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1554411 |
Show key headers only | View raw
If a watchdog driver tells the framework that the device is running, the framework takes care of feeding the watchdog until userspace opens the device. If the userspace application which is supposed to do that never comes up properly, the watchdog is fed indefinitely by the kernel. This can be especially problematic for embedded devices. These patches allow one to set a maximum time for which the kernel will feed the watchdog, thus ensuring that either userspace has come up, or the board gets reset. This allows fallback logic in the bootloader to attempt some recovery (for example, if an automatic update is in progress, it could roll back to the previous version). The patches have been tested on a Raspberry Pi 2 and a Wandboard. v4 is mostly identical to v1. The differences are that the ability to compile out this feature is removed, and the ability to set the default value for the watchdog.open_timeout command line parameter via Kconfig is split into a separate patch. Compared to v2/v3, this drops the ability to set the open_timeout via a device property; I'll leave implementing that to those who actually need it. Rasmus Villemoes (3): watchdog: introduce watchdog_worker_should_ping helper watchdog: introduce watchdog.open_timeout commandline parameter watchdog: introduce CONFIG_WATCHDOG_OPEN_TIMEOUT Documentation/watchdog/watchdog-parameters.txt | 10 +++++++ drivers/watchdog/Kconfig | 9 +++++++ drivers/watchdog/watchdog_dev.c | 37 +++++++++++++++++++++++--- 3 files changed, 52 insertions(+), 4 deletions(-) -- 2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v4 0/3] watchdog: allow setting deadline for opening /dev/watchdogN Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2017-01-09 16:20 +0100 [PATCH v4 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_TIMEOUT Rasmus Villemoes <rasmus.villemoes@prevas.dk> - 2017-01-09 16:20 +0100
csiph-web