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 31534C433EF for ; Tue, 9 Nov 2021 00:25:35 +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 5FCE261107 for ; Tue, 9 Nov 2021 00:25:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5FCE261107 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.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 1DCB08384A; Tue, 9 Nov 2021 01:25:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="BlSxq9lZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 276B18384A; Tue, 9 Nov 2021 01:25:30 +0100 (CET) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A203E8364F for ; Tue, 9 Nov 2021 01:25:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72b.google.com with SMTP id br39so17227678qkb.8 for ; Mon, 08 Nov 2021 16:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gmvHoscn06TzAvqZzV85K13AziIvSTN9j0kz8C8yEfs=; b=BlSxq9lZxXRQQ/etzOl/M9+kwb4N6boFkZYozAXpAbPwdXpG24oUQo5Xz531Y+uoYE WvTRgdOyKXVJgutVlSWZSm38Yb8HCtgwETkzlUXOPAB4B/QPjvuzvDidswaJ9GiMcyQ2 YLPYCmXLNAVz23g7I1NlF/nTh0uGi49VBHeu0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gmvHoscn06TzAvqZzV85K13AziIvSTN9j0kz8C8yEfs=; b=1yot7Ro65JUr21Lz0WdiH8HRICaxQ5in+jSLPY6RJt0G1wdMf9Pw0jZZWx9e5toHXJ 0ywe8UY91fgStgE3ilvqNrLT6C4SMvaQjT69iWf4SLSwzj1wo+FfZRx5PNiDGiKUU4Uk oOOuKvmF7Jib/OdK6mquT85Yjx93h5r7QspiCGYc8xm5kzChtnOVsOgifdIXn8Xn3SMx l/87ZrEfz1O3u9ntDIGVVMb66kOtM8LTH2oP+ve/FCEPGVMPjwXPoi1B8fyxWjiHP+Fp hP5JMO+hZfcZD9AcoNtwP1W/gJT4SNbLRPpgz49jHxLOlF5pMvcN3qa1hOoIbuqWIxNu GrfQ== X-Gm-Message-State: AOAM533x+9O1UW0Izjx5LjDjs54Jj6QztyFDeaY81s+ammy+sm8WI3bu nvHXKF/LWCu7MVQHyJm/s0ezBw== X-Google-Smtp-Source: ABdhPJzAgcU56pLmqCIIFZEg4YMQSk5Ugc+91v5nLt8JlMNSfGcp9/5dNLCvLftbVmdf3978/7hiAQ== X-Received: by 2002:a05:620a:2808:: with SMTP id f8mr2571870qkp.434.1636417522181; Mon, 08 Nov 2021 16:25:22 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-489f-3b74-940f-6f1a.res6.spectrum.com. [2603:6081:7b01:cbda:489f:3b74:940f:6f1a]) by smtp.gmail.com with ESMTPSA id l3sm10652753qkj.110.2021.11.08.16.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 16:25:21 -0800 (PST) Date: Mon, 8 Nov 2021 19:25:19 -0500 From: Tom Rini To: Simon Glass Cc: Heinrich Schuchardt , Andre Przywara , 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: <20211109002519.GM24579@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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s58dH9ID44isBfhf" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett 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 --s58dH9ID44isBfhf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2021 at 05:09:14PM -0700, Simon Glass wrote: > Hi Heinrich, >=20 > On Mon, 8 Nov 2021 at 09:17, Heinrich Schuchardt > wrote: > > > > On 11/8/21 17:05, Tom Rini wrote: > > > On Mon, Nov 08, 2021 at 08:58:33AM -0700, Simon Glass wrote: > > >> Hi, > > >> > > >> On Sun, 7 Nov 2021 at 04:18, Heinrich Schuchardt > > >> wrote: > > >>> > > >>> > > >>> > > >>> On 11/6/21 14:53, Tom Rini wrote: > > >>>> On Sat, Nov 06, 2021 at 04:55:44AM +0100, Heinrich Schuchardt wrot= e: > > >>>>> > > >>>>> > > >>>>> On 11/6/21 02:52, Andre Przywara wrote: > > >>>>>> On Fri, 5 Nov 2021 18:56:34 -0400 > > >>>>>> Tom Rini wrote: > > >>>>>> > > >>>>>>> On Fri, Nov 05, 2021 at 09:38:50PM +0100, Heinrich Schuchardt w= rote: > > >>>>>>>> On 11/5/21 20:17, Tom Rini wrote: > > >>>>>>>>> On Fri, Nov 05, 2021 at 07:37:02PM +0100, Heinrich Schuchardt= wrote: > > >>>>>>>>>> On 11/5/21 17:12, Simon Glass wrote: > > >>>>>>>>>>> Hi, > > >>>>>>>>>>> > > >>>>>>>>>>> On Fri, 5 Nov 2021 at 08:21, Tom Rini = wrote: > > >>>>>>>>>>>> > > >>>>>>>>>>>> On Fri, Nov 05, 2021 at 12:14:47PM +0100, Stefan Roese wro= te: > > >>>>>>>>>>>>> Hi Andre, > > >>>>>>>>>>>>> > > >>>>>>>>>>>>> Added Tom to Cc. > > >>>>>>>>>>>>> > > >>>>>>>>>>>>> On 05.11.21 11:04, Andre Przywara wrote: > > >>>>>>>>>>>>>> On Thu, 4 Nov 2021 20:02:41 -0600 > > >>>>>>>>>>>>>> Simon Glass wrote: > > >>>>>>>>>>>>>> > > >>>>>>>>>>>>>> Hi, > > >>>>>>>>>>>>>>> On Thu, 4 Nov 2021 at 19:22, Stefan Roese = wrote: > > >>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>> Hi Andre, > > >>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>> On 05.11.21 00:11, Andre Przywara wrote: > > >>>>>>>>>>>>>>>>> On Thu, 4 Nov 2021 11:37:57 +0100 > > >>>>>>>>>>>>>>>>> Stefan Roese wrote: > > >>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>> Hi Stefan, > > >>>>>>>>>>>>>>>>>> On 04.11.21 04:55, Samuel Holland wrote: > > >>>>>>>>>>>>>>>>>>> This series hooks up the watchdog uclass to automat= ically register > > >>>>>>>>>>>>>>>>>>> watchdog devices for use with sysreset, doing a bit= of minor cleanup > > >>>>>>>>>>>>>>>>>>> along the way. > > >>>>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>>>> The goal is for this to replace the sunxi board-lev= el non-DM reset_cpu() > > >>>>>>>>>>>>>>>>>>> function. I was surprised to find that the wdt_rebo= ot driver requires > > >>>>>>>>>>>>>>>>>>> its own undocumented device tree node, which refere= nces the watchdog > > >>>>>>>>>>>>>>>>>>> device by phandle. This is problematic for us, beca= use sunxi-u-boot.dtsi > > >>>>>>>>>>>>>>>>>>> file covers 20 different SoCs with varying watchdog= node phandle names. > > >>>>>>>>>>>>>>>>>>> So it would have required adding a -u-boot.dtsi fil= e for each board. > > >>>>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>>>> Hooking things up automatically makes sense to me; = this is what Linux > > >>>>>>>>>>>>>>>>>>> does. However, I put the code behind a new option t= o avoid surprises for > > >>>>>>>>>>>>>>>>>>> other platforms. > > >>>>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>>>> Changes in v3: > > >>>>>>>>>>>>>>>>>>> - Move condition to wdt-uclass.c to fix bu= ild errors. > > >>>>>>>>>>>>>>>>>>> - Include watchdog name in error message. > > >>>>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>>>> Changes in v2: > > >>>>>>>>>>>>>>>>>>> - Extend the "if SYSRESET" block to the en= d of the file. > > >>>>>>>>>>>>>>>>>>> - Also make gpio_reboot_probe function sta= tic. > > >>>>>>>>>>>>>>>>>>> - Rebase on top of 492ee6b8d0e7 (now handl= e all watchdogs). > > >>>>>>>>>>>>>>>>>>> - Added patches 5-6 as an example of how t= he new option will be used. > > >>>>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>>>> Samuel Holland (6): > > >>>>>>>>>>>>>>>>>>> sysreset: Add uclass Kconfig dependency t= o drivers > > >>>>>>>>>>>>>>>>>>> sysreset: Mark driver probe functions as = static > > >>>>>>>>>>>>>>>>>>> sysreset: watchdog: Move watchdog referen= ce to plat data > > >>>>>>>>>>>>>>>>>>> watchdog: Automatically register device w= ith sysreset > > >>>>>>>>>>>>>>>>>>> sunxi: Avoid duplicate reset_cpu with SYS= RESET enabled > > >>>>>>>>>>>>>>>>>>> sunxi: Use sysreset framework for powerof= f/reset > > >>>>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>>>> arch/arm/Kconfig | 3 = +++ > > >>>>>>>>>>>>>>>>>>> arch/arm/mach-sunxi/board.c | 2 = ++ > > >>>>>>>>>>>>>>>>>>> drivers/sysreset/Kconfig | 11 = ++++++-- > > >>>>>>>>>>>>>>>>>>> drivers/sysreset/sysreset_gpio.c | 2 = +- > > >>>>>>>>>>>>>>>>>>> drivers/sysreset/sysreset_resetctl.c | 2 = +- > > >>>>>>>>>>>>>>>>>>> drivers/sysreset/sysreset_syscon.c | 2 = +- > > >>>>>>>>>>>>>>>>>>> drivers/sysreset/sysreset_watchdog.c | 40 = ++++++++++++++++++++++------ > > >>>>>>>>>>>>>>>>>>> drivers/watchdog/wdt-uclass.c | 8 = ++++++ > > >>>>>>>>>>>>>>>>>>> include/sysreset.h | 10 = +++++++ > > >>>>>>>>>>>>>>>>>>> 9 files changed, 67 insertions(+), 13 dele= tions(-) > > >>>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>>> Applied to u-boot-marvell > > >>>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>>> Mmmh, why u-boot-marvell, > > >>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>> Because I'm handling watchdog related changed since a = few years and we > > >>>>>>>>>>>>>>>> did not create a specific subsystem repo for this and = I'm usually > > >>>>>>>>>>>>>>>> using my "marvell" one for this. > > >>>>>>>>>>>> > > >>>>>>>>>>>> And fwiw, there's a few other cases like this. If it's to= o confusing, > > >>>>>>>>>>>> maybe we should just roll out a few more repositories, I t= hink it's > > >>>>>>>>>>>> easier to do that now than pre-gitlab? > > >>>>>>>>>>>>>>>>> and why did this end up already in master? > > >>>>>>>>>>>>>>>>> Isn't that material for the next merge window? After = all this changes > > >>>>>>>>>>>>>>>>> quite a bit, for a lot of boards, and I did not have = a closer look at > > >>>>>>>>>>>>>>>>> the sunxi parts yet. > > >>>>>>>>>>>>>>>> > > >>>>>>>>>>>>>>>> I was hesitating also a bit. But since this patchset i= s on the list in > > >>>>>>>>>>>>>>>> v1 since over 2 months now (2021-08-21) I thought it w= as "ready" for > > >>>>>>>>>>>>>>>> inclusion now. We are at -rc1 and I think we still hav= e enough time to > > >>>>>>>>>>>>>>>> fix any resulting problems in this release cycle. > > >>>>>>>>>>>>>> > > >>>>>>>>>>>>>> Why do we have the merge window then? This is clearly no= t a regression or > > >>>>>>>>>>>>>> general fix. > > >>>>>>>>>>>>> > > >>>>>>>>>>>>> AFAIU, we are a bit less strict here in U-Boot. Patches t= hat were posted > > >>>>>>>>>>>>> before the merge-window and skipped the review process (m= ost likely > > >>>>>>>>>>>>> because of lack of time) are often still integrated in th= e early rcX > > >>>>>>>>>>>>> cycles. At least this is how I handle it usually. > > >>>>>>>>>>>>> > > >>>>>>>>>>>>> Tom, is my understanding here correct? > > >>>>>>>>>>>> > > >>>>>>>>>>>> Yes. We are not as strict as the kernel is about what can= come in > > >>>>>>>>>>>> between rc1 and rc2 (and to a certain degree, post rc2). = I leave things > > >>>>>>>>>>>> up to the discretion of the custodians. People tend of ha= ve less time > > >>>>>>>>>>>> to handle U-Boot changes than other stuff, so I try and be= flexible in > > >>>>>>>>>>>> picking things up. > > >>>>>>>>>>>>>>> Yes I agree, that should be plenty of time for people t= o review it. > > >>>>>>>>>>>>>> > > >>>>>>>>>>>>>> Well, if there would be people to review the sunxi parts= :-( > > >>>>>>>>>>>>>> I am totally fine with the generic patches (as they have= been reviewed), > > >>>>>>>>>>>>>> but the sunxi integration is somewhat risky. > > >>>>>>>>>>>>>> I was explicitly deprioritising that in my queue, as it = really doesn't > > >>>>>>>>>>>>>> change, add or fix anything, it's mere refactoring, from= the user's point > > >>>>>>>>>>>>>> of view. > > >>>>>>>>>>>>>>>> Do you see any specific issues? > > >>>>>>>>>>>>>> > > >>>>>>>>>>>>>> Patch 6/6 changes the config for all 157 Allwinner board= s, so I think that > > >>>>>>>>>>>>>> deserves at least some testing, *before* merging it. > > >>>>>>>>>>>>> > > >>>>>>>>>>>>> I expect that Samuel did some testing. But still, I agree= that it > > >>>>>>>>>>>>> would be much better, if these patches - especially the A= llwinner parts > > >>>>>>>>>>>>> got more extensive testing. > > >>>>>>>>>>>>>> I will do as much testing now as possible, but I am not = happy about that > > >>>>>>>>>>>>>> situation. > > >>>>>>>>>>>>> > > >>>>>>>>>>>>> Understood. Should we revert patch 6/6 for now? > > >>>>>>>>>>>> > > >>>>>>>>>>>> FWIW, given Samuel has been doing a number of allwinner ch= anges, I had > > >>>>>>>>>>>> also assumed it was sufficiently tested, which is why I di= dn't raise a > > >>>>>>>>>>>> further concern when I saw the widespread nature of the ov= erall changes, > > >>>>>>>>>>>> just figured it was a few more ready-to-go cleanups that w= eren't quite > > >>>>>>>>>>>> picked up in time. Please do speak up if you want me to r= evert the last > > >>>>>>>>>>>> part. > > >>>>>>>>>>> > > >>>>>>>>>>> Also it is often true that people find problems by testing = on master > > >>>>>>>>>>> so applying it helps to shake the tree a bit. > > >>>>>>>>>>> > > >>>>>>>>>>> Regards, > > >>>>>>>>>>> Simon > > >>>>>>>>>> > > >>>>>>>>>> We don't actually have a problem with this series but with a= previous > > >>>>>>>>>> watchdog patch. The culprit according to bisecting is: > > >>>>>>>>>> > > >>>>>>>>>> b147bd3607f8 ("sunxi: Enable watchdog timer support by defau= lt") > > >>>>>>>>>> > > >>>>>>>>>> When booting the OrangePi PC the watchdog triggers while Lin= ux is booting, > > >>>>>>>>>> ca. 16 s after leaving the UEFI subsystem. This matches WDT_= MAX_TIMEOUT in > > >>>>>>>>>> drivers/watchdog/sunxi_wdt.c. > > >>>>>>>>>> > > >>>>>>>>>> If I run > > >>>>>>>>>> =3D> wdt dev watchdog@1c20ca0 > > >>>>>>>>>> =3D> wdt stop > > >>>>>>>>>> > > >>>>>>>>>> before the bootefi command booting succeeds. > > >>>>>>>>>> > > >>>>>>>>>> We don't disarm the watchdog and Linux does not do it for us= in time. > > >>>>>>>>>> > > >>>>>>>>>> The UEFI specification requires that the default watchdog re= set time is 300 > > >>>>>>>>>> s. We should never arm the Sunxi hardware watchdog except wi= thin the > > >>>>>>>>>> watchdog reset driver. > > >>>>>>>>>> > > >>>>>>>>>> The solution is to disable CONFIG_WATCHDOG_AUTOSTART on SUNX= I. See > > >>>>>>>>>> > > >>>>>>>>>> [PATCH 1/1] watchdog: don't autostart watchdog on Sunxi boar= ds > > >>>>>>>>>> https://lists.denx.de/pipermail/u-boot/2021-November/466318.= html > > >>>>>>>>> > > >>>>>>>>> This means we never did come up with a satisfactory to everyo= ne solution > > >>>>>>>>> to what UEFI thinks a watchdog should do, and what other type= s of > > >>>>>>>>> deployment think a watchdog should do, yes? > > >>>>>>>> > > >>>>>>>> Dear Tom, > > >>>>>>>> > > >>>>>>>> The issue is *not* UEFI specific. > > >>>>>>>> > > >>>>>>>> A watchdog timeout of 16 seconds is too short for Linux to boo= t no matter > > >>>>>>>> whether you use the EFI stub or the legacy entry point. > > >>>>>>>> > > >>>>>>>> I only referred to the UEFI specification as it indicates what= can be > > >>>>>>>> considered as a reasonable timeout interval: 300 seconds. > > >>>>>>> > > >>>>>>> 16 seconds from the last time we pet the watchdog in U-Boot to = the > > >>>>>>> kernel being able to take over is quite reasonable. > > >>>>>> > > >>>>>> How do we know that the kernel takes over? What if the kernel/EFI > > >>>>>> payload doesn't have a watchdog driver? I was assuming that the > > >>>>>> watchdog would be disabled as soon as we boot a kernel or an EFI= app > > >>>>>> calls ExitBootServices (maybe even earlier). > > >>>>>> But this sounds like a generic problem, not sunxi specific. So h= ow do > > >>>>>> other platforms solve this? > > >>>>>> > > >>>>>> Cheers, > > >>>>>> Andre > > >>>>> > > >>>>> The UEFI specification has this requirement in chapter "3.1.2 Loa= d Option > > >>>>> Processing": > > >>>>> > > >>>>> "... the boot manager must enable the watchdog timer for 5 minute= s by using > > >>>>> the EFI_BOOT_SERVICES.SetWatchdogTimer() boot service prior to ca= lling > > >>>>> EFI_BOOT_SERVICES.StartImage(). If a boot option returns control = to the boot > > >>>>> manager, the boot manager must disable the watchdog timer with an= additional > > >>>>> call to the SetWatchdogTimer() boot service." > > >>>>> > > >>>>> This means that having an armed watchdog when starting the kernel= is > > >>>>> correct. > > >>>>> > > >>>>> If you start a watchdog in the firmware which is not disabled or = reset by > > >>>>> the operating system, you are out of luck and won't be able to bo= ot. > > >>>>> > > >>>>> Current Linux has driver drivers/watchdog/sunxi_wdt.c compatible = to > > >>>>> "allwinner,sun4i-a10-wdt","allwinner,sun6i-a31-wdt" and enabled by > > >>>>> CONFIG_SUNXI_WATCHDOG. This driver was introduced in Linux v3.12.= It > > >>>>> originally had compatible "allwinner,sun4i-wdt" only. > > >>>>> > > >>>>> Debian Bullseye has the driver enabled as a module. In the bootlo= g of the > > >>>>> Orange Pi PC I find: > > >>>>> [ 12.321909] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (time= out=3D16 sec, > > >>>>> nowayout=3D0) > > >>>>> This message appears approximately *20 seconds* after the EFI stu= b hands > > >>>>> over to the main kernel. Adding the driver to initrd shortens thi= s to *18 > > >>>>> seconds*. The message occurs after file system checks which can b= e a lengthy > > >>>>> operation. In Debian systemd manages the watchdog. > > >>>>> > > >>>>> As I said: 16 seconds is way too short for a hardware watchdog ti= meout. > > >>>> > > >>>> What's the time if you build it in? > > >>>> > > >>> > > >>> For sure you will find some board and configuration that is faster. > > >>> > > >>> But why should I care? This series breaks booting Debian on my boar= d. So > > >>> it needs to be fixed. So, please, apply my patch that is doing so. > > >> > > >> Five minutes sounds completely unacceptable for embedded platforms. > > >> The user will surely have packaged the item up and will be just > > >> heading out to drop it off for return... > > > > I have no problem with people switching on the SUNXI hardware watchdog > > for their specific embedded solution. But here it was switched on for > > all SUNXI boards and breaks booting into Linux distributions. > > > > If the Linux distribution resets the watchdog *after* file system checks > > because it is managed by systemd (as is true for Debian), 5 minutes is > > realistic. > > > > > > > > I'm trying to avoid bringing up the long discussion from the previous > > > thread about this :) > > > > > >> Do we need to add a special case for UEFI here? E.g. bootefi could u= se > > >> a hook to lengthen the watchdog? > > > > The problem is not UEFI related. >=20 > Oh dear, that is definitely quite slow. >=20 > > > > > > > > Well, the problem is that the hardware watchdog has a maximum period = of > > > 16 seconds, I believe. > > > > > > > Yes, Sunxi is limited to 16 seconds. >=20 > I suppose it isn't possible to disable the watchdog once it is enabled? You can, it's just not a general solution because, well, other platforms with a more reasonable overall period may still violate the UEFI spec but not get tripped up. And globally disabling the watchdog before "bootefi" or similar is also not a great idea. It probably is, sadly, the best option to just disable by default (so not enable until the kernel does) watchdog on sunxi. --=20 Tom --s58dH9ID44isBfhf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGJv+wACgkQFHw5/5Y0 tywauwv/UI+59ADcLPbnGHBElvG6FpDSVuodnPqz2uJYGecDPdLuMBLhx9oiXbaZ GOCoqx9ggVeFug7q21mZ0dA8e9wo8vj8a6lN66JQoVeXPG/JjmptuDRT5YvOem+n 5S/GJDABfshjCDYmL5LhU1W5WPl0yDsOTMShspz+x8Aw7bq+mySCU47C6Vl8RbGd fvtjWQQf8ofMkdEcrpd57f2xomg3XUTAiaGqga01zmSYQBjxhTIar+LRytNyNq6D 0NDw3jrGNhrQLsLWYnEYXelVSLTdLS6DOAsj8/xU1M+aksMXdJoUWIuHIXz+0NCS fFFcpk+Z55zQqov+dS6Ug2tFov49bDXiFkZoLMuA0lbQsX+Yu33n//0uPj1iKqkI 62OUSpEeyKbyR+kDgzI4Mq7B+xQZ4aUrP5IixQb7qTQThM4S1cyrSBo87l4uLlXx Ed3HbwtQHSPCjQlosXuHiFm8PXoYCFk3QUUfu/tE2tCk3fay7PX8W1ivaex67Gs/ uJOXUHVK =O97N -----END PGP SIGNATURE----- --s58dH9ID44isBfhf--