public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [PATCH 5.10.y-cip 0/2] watchdog: iTCO_wdt: Backport patches to enable handle_boot_enabled=0
@ 2023-07-18 17:00 Jan Kiszka
  2023-07-18 17:00 ` [PATCH 5.10.y-cip 1/2] watchdog: iTCO_wdt: No need to stop the timer in probe Jan Kiszka
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jan Kiszka @ 2023-07-18 17:00 UTC (permalink / raw)
  To: cip-dev, Nobuhiro Iwamatsu, Pavel Machek

These patches are needed in order to make iTCO_wdt respect
handle_boot_enabled=0, i.e. to step back from a running watchdog until
userspace picks it up. Up to 5.16, the driver simply stopped the
watchdog which could have created a non-monitored window during boot-up
in the handover from the firmware starting it to userspace (typically
sytemd) safely driving. E.g., any infinite loops in the initramfs would
could have created a locked-up system.

These patches were proposed to the watchdog maintainers for official
stable integration  [1] but received no reaction so far. As the issue is critical for
CIP's OTA software update integration, let's use the CIP path instead.

I don't have any test setup for 4.19, so I'm only proposing this for
5.10 here.

Jan

[1] https://lore.kernel.org/linux-watchdog/e9c2d0a5-9618-b616-3be3-826cc0665388@siemens.com/T/#t

Mika Westerberg (2):
  watchdog: iTCO_wdt: No need to stop the timer in probe
  watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already
    running

 drivers/watchdog/iTCO_wdt.c | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

-- 
2.35.3



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

end of thread, other threads:[~2023-07-19 11:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-18 17:00 [PATCH 5.10.y-cip 0/2] watchdog: iTCO_wdt: Backport patches to enable handle_boot_enabled=0 Jan Kiszka
2023-07-18 17:00 ` [PATCH 5.10.y-cip 1/2] watchdog: iTCO_wdt: No need to stop the timer in probe Jan Kiszka
2023-07-18 17:00 ` [PATCH 5.10.y-cip 2/2] watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running Jan Kiszka
2023-07-18 23:57 ` [PATCH 5.10.y-cip 0/2] watchdog: iTCO_wdt: Backport patches to enable handle_boot_enabled=0 nobuhiro1.iwamatsu
2023-07-19 11:23 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox