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 6A2EFECAAD8 for ; Fri, 16 Sep 2022 19:13:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 83E518499D; Fri, 16 Sep 2022 21:13:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1663355581; bh=Mvudx4/l2pAPIe5d9aPrz9VfgLLOQEzJHx/yNwFC3N4=; h=Date:Subject:From:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Uhrh0oyokeu1wZ1aCD6yworU3vXl7Gomo17xS6W4AETra5v5QJ/HEr26ptDT9J/mj K/QIoPUVgxwcsWLqTYgp45jhMAxr6qUMOlg3dqy8zmaKJbN2ez079Vrvh7l2nyr1DB GNDwLI/rni1kkxGjFaiCcJDLSk1lNJA8bDtiKWmlsnsyOPzQF9wDK0d6IHekM4NKah LhAtLn0aDNgJfQDfjiUolC4nZrk+6ECMD3gLmybVm4jTG5UEsJBOIMQ7w8tef7Dwfs nYOrgxCZ9ESFTS3Q8qYzYrNv/B5lNmbMPS0SOpMqYktckJpl4kAm8P9rcFw18lFqTe ZZIiG9c3inxDg== Received: by phobos.denx.de (Postfix, from userid 109) id B2D4A849E9; Fri, 16 Sep 2022 21:13:00 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:101:465::204]) (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 113AC844C2 for ; Fri, 16 Sep 2022 21:12:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4MTkHC6d85z9sSN; Fri, 16 Sep 2022 21:12:55 +0200 (CEST) Content-Type: multipart/mixed; boundary="------------BVkQ97Qk0kgKYdqQbZZe8BER" Message-ID: <77d6d897-6523-a45b-bed8-da4f67fc98f2@denx.de> Date: Fri, 16 Sep 2022 21:12:54 +0200 MIME-Version: 1.0 Subject: Re: Please pull u-boot-watchdog/next Content-Language: en-US From: Stefan Roese To: Tom Rini Cc: U-Boot Mailing List References: <20220916140851.GJ6993@bill-the-cat> <20220916142117.GK6993@bill-the-cat> <6114cb4d-c212-1f40-fc1d-71b839715d01@denx.de> In-Reply-To: <6114cb4d-c212-1f40-fc1d-71b839715d01@denx.de> X-Rspamd-Queue-Id: 4MTkHC6d85z9sSN 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 This is a multi-part message in MIME format. --------------BVkQ97Qk0kgKYdqQbZZe8BER Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Tom, On 16.09.22 16:37, Stefan Roese wrote: > Hi Tom, > > 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: >>> >>>> Hi Tom, >>>> >>>> please pull the following watchdog related patches: >>>> >>>> ---------------------------------------------------------------- >>>> - Migrate watchdog reset to cyclic infrastructure (Stefan) >>>> ---------------------------------------------------------------- >>>> >>>> Here the Azure build, without any issues: >>>> >>>> https://dev.azure.com/sr0718/u-boot/_build/results?buildId=260&view=results >>>> >>>> >>>> Thanks, >>>> Stefan >>>> >>>> The following changes since commit >>>> 6ec7207ab3c4dad098967fef5df75e25240fd852: >>>> >>>>    Merge branch '2022-09-15-TI-platform-updates' into next (2022-09-15 >>>> 17:02:52 -0400) >>>> >>>> are available in the Git repository at: >>>> >>>>    git@source.denx.de:u-boot/custodians/u-boot-watchdog.git next >>>> >>>> for you to fetch changes up to >>>> 4bd01be23a9d0c2dbfaac0c196ead6a89824cbf8: >>>> >>>>    watchdog: Further cleanup (2022-09-16 07:09:05 +0200) >>>> >>>> ---------------------------------------------------------------- >>>> Stefan Roese (6): >>>>        watchdog: Integrate watchdog triggering into the cyclic >>>> framework >>>>        cyclic: Introduce schedule() function >>>>        cyclic: Use schedule() instead of WATCHDOG_RESET() >>>>        watchdog: Get rid of ASSEMBLY hacks >>>>        watchdog: Remove WATCHDOG_RESET macro >>>>        watchdog: Further cleanup >>> >>> Good bad news, I've got your first hardware failure report.  One of >>> these three: >>> cyclic: Use schedule() instead of WATCHDOG_RESET() >>> cyclic: Introduce schedule() function >>> watchdog: Integrate watchdog triggering into the cyclic framework >>> >>> 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 we're >>> stuck in some loop where that's being serviced still? >>> >>> 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 you >>> access to my lab. >>> >> >> I'll note that pine64_plus_defconfig is now also failing, but >> interestingly dra7xx_evm_defconfig is passing. > > 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. 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? Thanks, Stefan --------------BVkQ97Qk0kgKYdqQbZZe8BER Content-Type: text/x-patch; charset=UTF-8; name="0001-cyclic-Only-call-cyclic_run-from-schedule-when-it-s-.patch" Content-Disposition: attachment; filename*0="0001-cyclic-Only-call-cyclic_run-from-schedule-when-it-s-.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSAzNzg4YWFkZmY1ZDY5N2UzZTE1MGE5ZTUyMDkxNTAwN2Y3YTI2ZGVmIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gUm9lc2UgPHNyQGRlbnguZGU+CkRhdGU6 IEZyaSwgMTYgU2VwIDIwMjIgMjE6MDg6NTEgKzAyMDAKU3ViamVjdDogW1BBVENIXSBjeWNs aWM6IE9ubHkgY2FsbCBjeWNsaWNfcnVuKCkgZnJvbSBzY2hlZHVsZSgpIHdoZW4gaXQncwog cmVhZHkKCnNjaGVkdWxlKCkgbWlnaHQgZ2V0IGNhbGxlZCB2ZXJ5IGVhcmx5IGluIHRoZSBi b290IHByb2Nlc3MgKFNQTCBldGMpLAp3aGVuIHRoZSBjeWNsaWMgSUYgaXMgbm90IGluaXRp YWxpemVkLiBMZXQncyBtYWtlIHN1cmUsIHRoYXQgd2Ugb25seQpjYWxsIGludG8gY3ljbGlj X3J1bigpIHdoZW4gaXQncyByZWFkeS4KClNpZ25lZC1vZmYtYnk6IFN0ZWZhbiBSb2VzZSA8 c3JAZGVueC5kZT4KLS0tCiBjb21tb24vY3ljbGljLmMgfCA3ICsrKysrKy0KIDEgZmlsZSBj aGFuZ2VkLCA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