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 3E79DC433EF for ; Tue, 9 Nov 2021 14:34:55 +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 658E960D07 for ; Tue, 9 Nov 2021 14:34:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 658E960D07 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.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 0D7B08390C; Tue, 9 Nov 2021 15:34:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.b="vJxGciJl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CA12F8393B; Tue, 9 Nov 2021 15:34:49 +0100 (CET) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B81198383A for ; Tue, 9 Nov 2021 15:34:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 52C653F1B6 for ; Tue, 9 Nov 2021 14:34:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1636468485; bh=YpWq2lkY2rcs2TKjAZEqd/Ge28lqjmUUldQabaU3WOY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=vJxGciJlxvuZCggSegy1JrKoQAvwz1C8qYrHxQ8yTcJt9PEW49DSuArxD5QRLnKGa 6ZK9Gi0++n7bciSBodcXnRsEFoMtJIbkWuzLmtKBTqPIr800Qe+pFajySfZlFk3uJK zEQVayPHF8N5X9GPOCDtcqCajOI2klstbgmbK99cHbcL0ZAMktxnW4DRZdUVzz9BBR n+0PiJBrgZAuzsE9LpgwXfFX8wjhxq/ZxeaoRKNOEl/bgV/6l5ACBPQRKGuKox8DQD rz4w14JwRd263xjEYDbTZCyq8xIjs7yupKxzfAlQWpsAJpubrTuInY/LOoIHk6ZsTY 1P2ZuhP6xcHGg== Received: by mail-wm1-f69.google.com with SMTP id l187-20020a1c25c4000000b0030da46b76daso1426357wml.9 for ; Tue, 09 Nov 2021 06:34:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=YpWq2lkY2rcs2TKjAZEqd/Ge28lqjmUUldQabaU3WOY=; b=pDHVIhS/PV4mbT/CaavPiF9bPx0TxlFPPmWLhoEpwQdJOQtjn9i8WgJXRYuWKVGB97 k5Ozs18J2EO+2j3av70v/nZVg6lmR9J2ubKXTCSxo5YfiVyOjhZxH5BcyBwTAvOQQ6fS rqFj3BSLWckTCzdld2S6sH1b8iPlbUZyiIGe4tYD//EYq+MlQ4eO/NW+p8zv9u5sSZK7 Iuek1xuAi9VAk20FK+pLp+yM7VrIXuaAhIcZqwQk5UodtcafyxciNCzzGnyycFgWqkAe mMB2yijfp7j+m3OnJoPVYMkdfYy4ilrXQdImdwl0Ru9dgJpaqzTQrkG/fxJtNo6Geu5k ywaw== X-Gm-Message-State: AOAM531fwl4ntSPoNBvEkDu0O4GEXq2G8G6mfE5nNysc9SeKao4+qamv QC6x4cH+lTHeFnuASvg5rlIYHzw+jtAiQFFUAo2t2ZMac3OT6fLtx03Lg+Ryx3yKrq93J+ZwFW5 Wgs8vXTmxdDA/qMTSK3W2NjQ+f2i3ECM= X-Received: by 2002:a1c:7c14:: with SMTP id x20mr7539376wmc.75.1636468484505; Tue, 09 Nov 2021 06:34:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxmqoC3SpH77nsewWiEhBHPNH8N3KLAmgR/qnCx/pemvaGN1oeJvq6Q4FYu1+5GDPY8sqrfQ== X-Received: by 2002:a1c:7c14:: with SMTP id x20mr7539345wmc.75.1636468484256; Tue, 09 Nov 2021 06:34:44 -0800 (PST) Received: from [192.168.123.55] (ip-88-152-144-157.hsi03.unitymediagroup.de. [88.152.144.157]) by smtp.gmail.com with ESMTPSA id l124sm2804854wml.8.2021.11.09.06.34.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Nov 2021 06:34:43 -0800 (PST) Message-ID: <9b862ea8-e051-b2d3-0efd-04818e1101cf@canonical.com> Date: Tue, 9 Nov 2021 15:34:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH v3 0/6] Improved sysreset/watchdog uclass integration Content-Language: en-US To: Grant Likely , =?UTF-8?Q?Fran=c3=a7ois_Ozog?= Cc: Simon Glass , Samuel Holland , Stefan Roese , Harald Seiler , u-boot@lists.denx.de, Jagan Teki , Bin Meng , Sean Anderson , Tom Rini , Andre Przywara 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> <20211109142556.28be4731@donnerap.cambridge.arm.com> From: Heinrich Schuchardt In-Reply-To: <20211109142556.28be4731@donnerap.cambridge.arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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 11/9/21 15:26, Andre Przywara wrote: > 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 > Hello Grant, hello Ozog, according to the UEFI spec the watchdog should be shut down in ExitBootServices(). In an IoT scenario this may not always make sense. E.g. if A/B boot fails you want to reset the board to its previous state. Is this something to discuss in the EBBR context? Is there any requirement in SystemReady ES? Best regards Heinrich