From mboxrd@z Thu Jan 1 00:00:00 1970 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 C909EC433EF for ; Fri, 10 Jun 2022 11:01:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B9C784401; Fri, 10 Jun 2022 13:01:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinet.cat 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 C035D84404; Fri, 10 Jun 2022 13:01:45 +0200 (CEST) Received: from mx1.tinet.cat (mx1.tinet.cat [195.77.216.146]) (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 5424A843EE for ; Fri, 10 Jun 2022 13:01:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinet.cat Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xdrudis@tinet.cat X-ASG-Debug-ID: 1654858901-163e7b455068f910001-4l7tJC Received: from smtp01.tinet.cat (smtp01.tinet.org [195.77.216.131]) by mx1.tinet.cat with ESMTP id l1CcsHmkAAKa7fA0; Fri, 10 Jun 2022 13:01:41 +0200 (CEST) X-Barracuda-Envelope-From: xdrudis@tinet.cat X-Barracuda-Effective-Source-IP: smtp01.tinet.org[195.77.216.131] X-Barracuda-Apparent-Source-IP: 195.77.216.131 Received: from begut (50.red-79-152-182.dynamicip.rima-tde.net [79.152.182.50]) by smtp01.tinet.cat (Postfix) with ESMTPSA id C9F56605D0A7; Fri, 10 Jun 2022 13:01:41 +0200 (CEST) Date: Fri, 10 Jun 2022 13:01:40 +0200 From: Xavier Drudis Ferran To: LABBE Corentin Cc: yogeshs@ti.com, lokeshvutla@ti.com, sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Subject: Re: [SPAM] Boot regression on am335x-hs-evm Message-ID: <20220610110140.GD1735@begut> X-ASG-Orig-Subj: Re: [SPAM] Boot regression on am335x-hs-evm References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Barracuda-Connect: smtp01.tinet.org[195.77.216.131] X-Barracuda-Start-Time: 1654858901 X-Barracuda-URL: https://webmail.tinet.cat:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1462 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: SPAM GLOBAL 0.9562 1.0000 3.8410 X-Barracuda-Spam-Score: 3.84 X-Barracuda-Spam-Status: No, SCORE=3.84 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=6.0 KILL_LEVEL=8.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.98616 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 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.5 at phobos.denx.de X-Virus-Status: Clean El Fri, Jun 10, 2022 at 11:59:23AM +0200, LABBE Corentin deia: > --- a/drivers/core/lists.c > +++ b/drivers/core/lists.c > @@ -20,6 +20,10 @@ > #include > #include > > +static int _errorcount; > +int errorlist[1024]; > +int errorcount; > + > struct driver *lists_driver_lookup_name(const char *name) > { > struct driver *drv = > @@ -120,8 +124,9 @@ int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only) > int ret; > > ret = bind_drivers_pass(parent, pre_reloc_only); > - if (!ret) > - break; > + errorlist[_errorcount] = ret; > + _errorcount++; > + errorcount = _errorcount; > if (ret != -EAGAIN && !result) > result = ret; > } > > But errorcount is always 0 which is puzzling me since according to my think, lists_bind_drivers() is ran before secure_boot_verify_image(). > I'm not sure at which point your code is called, but do you have working BSS? README: [...] lowlevel_init(): - no global_data or BSS [...] board_init_f(): [...] - global_data is available - stack is in SRAM - BSS is not available, so you cannot use global/static variables, only stack variables and global_data > Any idea on how to debug further ? > maybe you can add a field to global_data ?