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 C0897C3DA6E for ; Thu, 28 Dec 2023 16:07:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DA0CB87ACD; Thu, 28 Dec 2023 17:07:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dolcini.it 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 ECF1787AE8; Thu, 28 Dec 2023 17:07:49 +0100 (CET) Received: from mail11.truemail.it (mail11.truemail.it [IPv6:2001:4b7e:0:8::81]) (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 1DF8B87ACD for ; Thu, 28 Dec 2023 17:07:48 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=dolcini.it Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=francesco@dolcini.it Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 4C113215A4; Thu, 28 Dec 2023 17:07:47 +0100 (CET) Date: Thu, 28 Dec 2023 17:07:43 +0100 From: Francesco Dolcini To: Francesco Dolcini Cc: Fabio Estevam , Marek Vasut , u-boot@lists.denx.de, "NXP i.MX U-Boot Team" , Stefano Babic Subject: Re: Regression: i.MX6ULL reset not working Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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.8 at phobos.denx.de X-Virus-Status: Clean On Thu, Dec 28, 2023 at 04:49:33PM +0100, Francesco Dolcini wrote: > Hello Marek and all, > I just tried latest master on colibri-imx6ull-emmc and the reset command > is broken - it does nothing. > > >From a bisect the issue was introduced with commit 68dcbdd594d4 ("ARM: > imx: Add weak default reset_cpu()"), U-Boot releases >= v2023.07 are > broken. > > Any hint? I did not try to debug it myself (yet?). Ok, the reason for the bug is simple. Before that change we had drivers/watchdog/imx_watchdog.c:reset_cpu() implementing the reset. However that function is also weak and now the newly defined and empty weak is taking precedence. I assume every i.MX that is not i.MX8M* or i.MX7ULP is now broken, not just i.MX6ULL nor just the colibri. Francesco