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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D7BF1ECAAA1 for ; Fri, 16 Sep 2022 19:22:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8B9A884BD6; Fri, 16 Sep 2022 21:22:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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="cmFfHD3L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7D5A984BD6; Fri, 16 Sep 2022 21:22:13 +0200 (CEST) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (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 6F84E849E9 for ; Fri, 16 Sep 2022 21:22:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72c.google.com with SMTP id y2so14018412qkl.11 for ; Fri, 16 Sep 2022 12:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=0ynPrLOTAHnGvLPRNkmGKUVe2FmXI2sUkgfGL43AU8E=; b=cmFfHD3LSbXhPiT8eIW0YxMc2Xhz4C1utxY9PWWtaQg83Ohca+Ge+PVaVoz/JsUcD5 gFNnB/P6JUH783f6PoGBhGKK5fORFY8u//D8fp+ManZEjEeTcxommEy32FrlwffvLsrL WWKPkiD0clC83wSgmlIrQNmWipY4fF3pLwn4Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=0ynPrLOTAHnGvLPRNkmGKUVe2FmXI2sUkgfGL43AU8E=; b=BmfgL2r1HcwbqNe1NEbGXz/n7/TWt4HH0CspxZOzRluvlCnUryLLdz+gn0Wx8OnCqZ hbzGq6dLNhOFjPCIBDyyUE+nhnGqB7wCajS6ZhCDAz8J8tLzTYMtfGAjWwAcZtNdySRx HsDCY25c06PCqD7GLs66nVI6H/eMSY9I46ouo/eNZ63UtVUIVFci55HSA4CPK42OOG/f DyvqezavfwTPu3Cv31+u7QJ4+qMBciMgUeV4Q3gslrncCaL7KPnSU7tIgjoQeMyNZ9d6 Qv8cJ7sFHQiOmWm0JtriATdZEffFsO+3VYRsTI2hOmz5JEnILwhPuGS3VdvaXd+JHQTP mZTA== X-Gm-Message-State: ACrzQf2UXz5qTPTvKZrLjZv2cMjo5zBhx9w3ebrnMumDR/wDvivInMw0 WYsSUcgxQcNdn5Y4k30hX8n6d52z4f15LEW0 X-Google-Smtp-Source: AMsMyM53W48hTli+O9bzx8UrZihtqXRId1GoTo53uuGGqpg1ibc99q+/ny3gx+Cg2vSrC358hXfcLQ== X-Received: by 2002:a05:620a:2681:b0:6b5:b60c:1e66 with SMTP id c1-20020a05620a268100b006b5b60c1e66mr5113897qkp.99.1663356129149; Fri, 16 Sep 2022 12:22:09 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-9528-6343-1213-bf35.res6.spectrum.com. [2603:6081:7b00:6400:9528:6343:1213:bf35]) by smtp.gmail.com with ESMTPSA id bp40-20020a05620a45a800b006ce3f1af120sm7302791qkb.44.2022.09.16.12.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 12:22:07 -0700 (PDT) Date: Fri, 16 Sep 2022 15:22:05 -0400 From: Tom Rini To: Stefan Roese Cc: U-Boot Mailing List Subject: Re: Please pull u-boot-watchdog/next Message-ID: <20220916192205.GN6993@bill-the-cat> References: <20220916140851.GJ6993@bill-the-cat> <20220916142117.GK6993@bill-the-cat> <6114cb4d-c212-1f40-fc1d-71b839715d01@denx.de> <77d6d897-6523-a45b-bed8-da4f67fc98f2@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mB/CYmFGQzL2EujR" Content-Disposition: inline In-Reply-To: <77d6d897-6523-a45b-bed8-da4f67fc98f2@denx.de> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean --mB/CYmFGQzL2EujR Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 16, 2022 at 09:12:54PM +0200, Stefan Roese wrote: > Hi Tom, >=20 > On 16.09.22 16:37, Stefan Roese wrote: > > Hi Tom, > >=20 > > On 16.09.22 16:21, Tom Rini wrote: > > > On Fri, Sep 16, 2022 at 10:08:51AM -0400, Tom Rini wrote: > > > > On Fri, Sep 16, 2022 at 09:22:16AM +0200, Stefan Roese wrote: > > > >=20 > > > > > Hi Tom, > > > > >=20 > > > > > please pull the following watchdog related patches: > > > > >=20 > > > > > ---------------------------------------------------------------- > > > > > - Migrate watchdog reset to cyclic infrastructure (Stefan) > > > > > ---------------------------------------------------------------- > > > > >=20 > > > > > Here the Azure build, without any issues: > > > > >=20 > > > > > https://dev.azure.com/sr0718/u-boot/_build/results?buildId=3D260&= view=3Dresults > > > > >=20 > > > > >=20 > > > > > Thanks, > > > > > Stefan > > > > >=20 > > > > > The following changes since commit > > > > > 6ec7207ab3c4dad098967fef5df75e25240fd852: > > > > >=20 > > > > > =A0=A0 Merge branch '2022-09-15-TI-platform-updates' into next (2= 022-09-15 > > > > > 17:02:52 -0400) > > > > >=20 > > > > > are available in the Git repository at: > > > > >=20 > > > > > =A0=A0 git@source.denx.de:u-boot/custodians/u-boot-watchdog.git n= ext > > > > >=20 > > > > > for you to fetch changes up to > > > > > 4bd01be23a9d0c2dbfaac0c196ead6a89824cbf8: > > > > >=20 > > > > > =A0=A0 watchdog: Further cleanup (2022-09-16 07:09:05 +0200) > > > > >=20 > > > > > ---------------------------------------------------------------- > > > > > Stefan Roese (6): > > > > > =A0=A0=A0=A0=A0=A0 watchdog: Integrate watchdog triggering into t= he > > > > > cyclic framework > > > > > =A0=A0=A0=A0=A0=A0 cyclic: Introduce schedule() function > > > > > =A0=A0=A0=A0=A0=A0 cyclic: Use schedule() instead of WATCHDOG_RES= ET() > > > > > =A0=A0=A0=A0=A0=A0 watchdog: Get rid of ASSEMBLY hacks > > > > > =A0=A0=A0=A0=A0=A0 watchdog: Remove WATCHDOG_RESET macro > > > > > =A0=A0=A0=A0=A0=A0 watchdog: Further cleanup > > > >=20 > > > > Good bad news, I've got your first hardware failure report.=A0 One = of > > > > these three: > > > > cyclic: Use schedule() instead of WATCHDOG_RESET() > > > > cyclic: Introduce schedule() function > > > > watchdog: Integrate watchdog triggering into the cyclic framework > > > >=20 > > > > Causes am335x_evm to have no output in SPL and just hang. It, along= with > > > > all of the other TI AM335x platforms have watchdog enabled in SPL. = I can > > > > also observe that the system watchdog is not triggering, so maybe w= e're > > > > stuck in some loop where that's being serviced still? > > > >=20 > > > > I suspect all the am335x boards are broken, so if you don't have > > > > something there you can test on let me know off-list and I'll get y= ou > > > > access to my lab. > > > >=20 > > >=20 > > > I'll note that pine64_plus_defconfig is now also failing, but > > > interestingly dra7xx_evm_defconfig is passing. > >=20 > > Thanks for all your testing Tom. I'll check, if I still have an AM355x > > here. I just now found an Cubieboard2, which also seems to have SPL > > watchdog enabled. Let me check, if I can get this board running and > > tested. >=20 > Cubieboard2 does not really use the watchdog in U-Boot and especially > not very early (SPL). So no help here. But I figured out a potential > problem that might explain you system hang. Could you please give the > attached patch a try and let me know, if this changes the situation > a bit? >=20 > Thanks, > Stefan > From 3788aadff5d697e3e150a9e520915007f7a26def Mon Sep 17 00:00:00 2001 > From: Stefan Roese > Date: Fri, 16 Sep 2022 21:08:51 +0200 > Subject: [PATCH] cyclic: Only call cyclic_run() from schedule() when it's > ready >=20 > schedule() might get called very early in the boot process (SPL etc), > when the cyclic IF is not initialized. Let's make sure, that we only > call into cyclic_run() when it's ready. >=20 > Signed-off-by: Stefan Roese > --- > common/cyclic.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/common/cyclic.c b/common/cyclic.c > index 594f9cd92592..9cdbed4ecc92 100644 > --- a/common/cyclic.c > +++ b/common/cyclic.c > @@ -104,7 +104,12 @@ void schedule(void) > if (IS_ENABLED(CONFIG_HW_WATCHDOG)) > hw_watchdog_reset(); > =20 > - cyclic_run(); > + /* > + * schedule() might get called very early before the cyclic IF is > + * ready. Make sure to only call cyclic_run() when it's initalized. > + */ > + if (gd->cyclic->cyclic_ready) > + cyclic_run(); > } > =20 > int cyclic_uninit(void) No change. --=20 Tom --mB/CYmFGQzL2EujR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmMkzNYACgkQFHw5/5Y0 tyxt/wwAuYtwSvAmmHBhxZOdHrwt2jeKbSuZwBPx+voqjnuEyYYZ2tS5PvERb4Bw bZg0ggbzF69xlVGO41gGp2wtEQvBcRYbwLfpAhtnJDUI+riEggzt6BfFXG8iYN+H qwxq+Bme8REk0dASgJ+/b5+uTUK1ospJPkqgdzAC71pTEBkdwlghoaw5sRvOva9e DxzT7DdOdKor1XuNIoxYLXrtqgnWNW4ba2Vrm+/qrUDwHROoXosk1SSknoSkP0L2 hb1sbPPDE+E6ltCYL/XrxdhxqALfRxoSlZKJQeAqkEs39sAlDjSrAD44jT2kbALM 5lmptSIA4TQ4VEn6dTXW9t04NiAwgDfVqUzxzzLfxNWmYq/pNYj7HlJWrqiTEkhQ 8LLNskuWAUPvzkFPXmasFSbFArAtqVc7pmtS66AeIEpZHLTGAdbcEeART4vN0bUL sHJoPzXdjPviA95ZT3VMVeXpIlpH298G+knJChniMYRNCkCd0DmiY9NJejEEtiL9 gGMZlIef =6n40 -----END PGP SIGNATURE----- --mB/CYmFGQzL2EujR--