summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorZexin Wang <ot_zexin.wang@mediatek.com>2026-08-17 10:37:49 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-08-30 14:41:33 -0700
commit11f93e639d513cbfaa78237cd163039d27fea33c (patch)
tree38e7afeb5c4ccae3af6f8ec62cd710bc2aa4918e /scripts/Makefile.thinlto
parentf6a57feaa747dd0dd32950b1f0f117bdd0e43c97 (diff)
downloadlinux-next-11f93e639d513cbfaa78237cd163039d27fea33c.tar.gz
linux-next-11f93e639d513cbfaa78237cd163039d27fea33c.zip
watchdog: sbsa_gwdt: add early_enable module parameter
On SBSA platforms using standard UEFI firmware (such as EDK II), the watchdog timer is often enabled during early boot stages but explicitly disabled by the firmware before handing over control to the OS (e.g., during ExitBootServices). This is done to prevent unintended resets while the OS is loading, assuming the OS watchdog driver will take over. However, this leaves a protection gap. If the system hangs between the firmware handover and the userspace watchdog daemon startup, the hardware watchdog will not fire to recover the system. For safety-critical systems that require continuous hardware watchdog protection from the earliest possible moment, this gap is problematic. Add an 'early_enable' module parameter to allow the kernel driver to re-enable the watchdog immediately during probe if it was left disabled by the firmware. By setting the WDOG_HW_RUNNING status bit, the watchdog core is instructed that the hardware is active. As a result, the core's pre-userspace handler (controlled by 'handle_boot_enabled') will automatically issue periodic keepalives until userspace opens the device. This bridges the protection gap seamlessly without requiring firmware modifications and without risking unintended resets during kernel boot. The parameter defaults to false to preserve the traditional behavior. Signed-off-by: Zexin Wang <ot_zexin.wang@mediatek.com> Link: https://patch.msgid.link/20260817023838.6459-1-ot_zexin.wang@mediatek.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions