Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6172C433EF for ; Tue, 9 Nov 2021 14:26:39 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19C80610F7 for ; Tue, 9 Nov 2021 14:26:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 19C80610F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BEE02835AE; Tue, 9 Nov 2021 15:26:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 0D311838B4; Tue, 9 Nov 2021 15:26:34 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 41DB38039D for ; Tue, 9 Nov 2021 15:26:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 62E512B; Tue, 9 Nov 2021 06:26:29 -0800 (PST) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 211AD3F800; Tue, 9 Nov 2021 06:26:28 -0800 (PST) Date: Tue, 9 Nov 2021 14:26:19 +0000 From: Andre Przywara To: Tom Rini Cc: Heinrich Schuchardt , Simon Glass , Samuel Holland , Stefan Roese , Harald Seiler , u-boot@lists.denx.de, Jagan Teki , Bin Meng , Sean Anderson Subject: Re: [PATCH v3 0/6] Improved sysreset/watchdog uclass integration Message-ID: <20211109142556.28be4731@donnerap.cambridge.arm.com> In-Reply-To: <20211109135037.GO24579@bill-the-cat> References: <20211105225634.GJ24579@bill-the-cat> <20211106015230.1d1895cf@slackpad.fritz.box> <8f221d27-7065-2f19-c850-4e889a238c72@canonical.com> <20211106135352.GL24579@bill-the-cat> <209d4b05-c2d7-d27d-d494-4612cc41a6b7@canonical.com> <20211108160518.GH24579@bill-the-cat> <20211109013724.1b5119c1@slackpad.fritz.box> <6a9c8382-0d10-3d0f-6720-8778404ceee0@canonical.com> <20211109135037.GO24579@bill-the-cat> Organization: ARM X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Tue, 9 Nov 2021 08:50:37 -0500 Tom Rini wrote: Hi, > On Tue, Nov 09, 2021 at 09:00:05AM +0100, Heinrich Schuchardt wrote: > > [snip] thanks for that ;-) > > > I am still puzzled about this, if I read the UEFI spec correctly, the > > > 5 minutes watchdog timer is for EFI applications using boot services? > > > So grub, for instance. But the description of ExitBootServices tells me > > > that the: "boot services watchdog timer is disabled"? > > > So it should not affect Linux booting (after the EFI stub is done)? > > > > Currently we only disable the software watchdog (efi_tpl = TPL_HIGH_LEVEL;) > > We should call wdt_stop_all() too. I will create a patch for that. > > Lets use this as a chance to bring up the issue with the relevant part > of the UEFI forum. Turning off a running watchdog is a bad idea in > places where Arm is pushing SystemReady IR (and I would argue other > specs as well, but..). I think architecturally you have no other chance than turning it off at boot. You do not know what your payload is (Linux? BSD? Xen? homebrew kernel?), which watchdog it is using, or if it's using one at all (no driver). Also for instance sunxi has typically two watchdogs, which one is it that needs petting? And even an opt-in from the EFI application (the kernel's EFI stub) sounds hard, as the Linux EFI stub for instance has no insight into the watchdog configuration, so can't say whether we have a driver or whether that would work (because of a missing firmware table). But it indeed sounds like a rather generic problem, and there might indeed be a solution generic enough for UEFI. Do you have anything in mind? Cheers, Andre