On Thu, Mar 01, 2018 at 11:15:19AM +0100, Mark Kettenis wrote:
> > Date: Thu, 1 Mar 2018 16:38:50 +1100
> > From: Jonathan Gray <j...@jsg.id.au>
> > 
> > On Sun, Feb 11, 2018 at 04:38:18PM +1100, Jonathan Gray wrote:
> > > The UEFI specification states a watchdog should be armed for 5 minutes.
> > > Stop this from resetting a system when in efiboot.
> > 
> > Anyone?  It is annoying to have the system reset itself when trying
> > to do something in boot or purposefully leaving it at the prompt.
> 
> I've never actually run into this.  But assuming you've tested this
> with both U-Boot and a real UEFI implementation, I'm ok with this.

Yes, on a lenovo ideapad that previously reset itself when I was hand
transcribing 'machine memory' output and on armv7/arm64 U-Boot.

> 
> It'd be interesting to be able to re-arm the watchdog before loading a
> kernel and disable it again once the kernel has booted.  But it
> doesn't look like it would be possible to do that.

In U-Boot since 2018.01.

commit b3d6090042d4de265c930358aec4d9b96bf3748a
Author: Heinrich Schuchardt <xypron.g...@gmx.de>
Date:   Wed Oct 18 18:13:04 2017 +0200

    efi_loader: implement SetWatchdogTimer
    
    The watchdog is initialized with a 5 minute timeout period.
    It can be reset by SetWatchdogTimer.
    It is stopped by ExitBoottimeServices.
    
    Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de>
    Signed-off-by: Alexander Graf <ag...@suse.de>

 cmd/bootefi.c                 |  1 +
 include/efi_loader.h          |  4 ++
 lib/efi_loader/Makefile       |  2 +-
 lib/efi_loader/efi_boottime.c | 17 ++-------
 lib/efi_loader/efi_watchdog.c | 89 
+++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 98 insertions(+), 15 deletions(-)

Reply via email to