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 553F4C636D3 for ; Sun, 12 Feb 2023 23:46:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD27485648; Mon, 13 Feb 2023 00:45:53 +0100 (CET) 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="e+XkeonP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BC0F98562B; Mon, 13 Feb 2023 00:45:46 +0100 (CET) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (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 C764A85735 for ; Mon, 13 Feb 2023 00:45:40 +0100 (CET) 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-qt1-x834.google.com with SMTP id h24so12172508qta.12 for ; Sun, 12 Feb 2023 15:45:40 -0800 (PST) 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:message-id:reply-to; bh=sek6BsvatzvXx95Cp33Noc6TFMKOGfbbRaHzFZvDYK4=; b=e+XkeonPv54oC2465sSmmiRCOH3tOhmA5aYWdEcdGPPwCzZiBqR5Awb1OXnL2Bmotz Ga0JMZyi2tSxAS3hGGJTvZJW4M4deccee5/KtwC5W37kiDpv9QnbzUOcfjmkNtQ9Ooiy Bhdku9WQqCDagh9tQ0VkGqMmI7seIKfEsnz/4= 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 :message-id:reply-to; bh=sek6BsvatzvXx95Cp33Noc6TFMKOGfbbRaHzFZvDYK4=; b=GgiA2oGxejvfZluYweS75SPv6YwOp4zg6Sz1jlDx0vhvi+4Hs3JrXS7bdWt88DYUT8 y0M4P6PNF1hznd0RlT8YgwO8RhfNOVUzfgPGUt1qzrcAWe4bMAtNIFa6D6JO+Tcj9waX Fy+n40QuSjV4Li2ehvkkwLKUi1GV7IniPnKyXnZVd1HfIycnsfFkCivksNHtUnQEqVMS Y/wX+a1XnGs1qOIkQvj5RkCvYGzMW740Pj1ml000ajY79punlicq0KoI7LHx+0mAM1nP TUXpdP7fPf+2rO7irdqOfHLuganGbKkphUlBbQrnkENXl4vemM+XGPZcjKV/b7oIw7iF zFPQ== X-Gm-Message-State: AO0yUKWfZRK7O2XebKySEmezsn77HXvUVDTp7IbdF8a7UFL47L0Ibyln VIizvPY5Mb6LgggVG0zNHNiUwA== X-Google-Smtp-Source: AK7set8jgUduMJJDC/WlWENBrxHJB18IFV5dmcnYOjOJ96wGLGWoo8/pByB9+lKNZPwjYplOLovN2Q== X-Received: by 2002:a05:622a:1386:b0:3b9:a60f:b2bb with SMTP id o6-20020a05622a138600b003b9a60fb2bbmr39173710qtk.56.1676245539565; Sun, 12 Feb 2023 15:45:39 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-b26c-1f7f-442c-b848.res6.spectrum.com. [2603:6081:7b00:6400:b26c:1f7f:442c:b848]) by smtp.gmail.com with ESMTPSA id i6-20020ac84f46000000b003b80fdaa14dsm8178189qtw.73.2023.02.12.15.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 15:45:39 -0800 (PST) Date: Sun, 12 Feb 2023 18:45:36 -0500 From: Tom Rini To: Michal =?iso-8859-1?Q?Such=E1nek?= Cc: Francesco Dolcini , u-boot@lists.denx.de, Guillaume Gardet , Simon Glass , Philippe Reynes , Ilias Apalodimas , Leo Yu-Chi Liang , Sughosh Ganu , Kautuk Consul , Brandon Maier , Rasmus Villemoes , Patrick Delaunay , Heinrich Schuchardt , Sjoerd Simons Subject: Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS Message-ID: References: <20230127130012.31499-1-msuchanek@suse.de> <20230208191134.GV19419@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JQwtNumt9ofYr0rZ" Content-Disposition: inline In-Reply-To: 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 --JQwtNumt9ofYr0rZ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 08, 2023 at 02:50:16PM -0500, Tom Rini wrote: > On Wed, Feb 08, 2023 at 08:11:34PM +0100, Michal Such=E1nek wrote: > > Hello, > >=20 > > On Wed, Feb 08, 2023 at 01:25:50PM -0500, Tom Rini wrote: > > > On Wed, Feb 08, 2023 at 07:24:25PM +0100, Francesco Dolcini wrote: > > > > Hello, > > > >=20 > > > > On Fri, Jan 27, 2023 at 08:54:55AM -0500, Tom Rini wrote: > > > > > On Fri, Jan 27, 2023 at 02:00:12PM +0100, Michal Suchanek wrote: > > > > > > It is reported that in some configurations it is not possible t= o boot > > > > > > because u-boot runs out of lmbs. > > > > > >=20 > > > > > > commit 06d514d77c ("lmb: consider EFI memory map") increases lm= b usage, > > > > > > hence is likely the cause of the lmb overflow. > > > > > >=20 > > > > > > Fixes: 06d514d77c ("lmb: consider EFI memory map") > > > > > > Link: https://bugzilla.opensuse.org/show_bug.cgi?id=3D1207562 > > > > > > Signed-off-by: Michal Suchanek > > > >=20 > > > > Reviewed-by: Francesco Dolcini > > > >=20 > > > > > I plan to pick up > > > > > https://patchwork.ozlabs.org/project/uboot/patch/20230125230823.1= 567778-1-trini@konsulko.com/ > > > > > as the alternative fix for this issue and would suggest that any = distro > > > > > hitting the problem on v2023.01 apply the above instead of increa= sing > > > > > the limit. > > > >=20 > > > > Tom, my understanding is that you plan to merge this or an equivale= nt > > > > change, correct? Otherwise I would need to send some more patches to > > > > update a few board defconfig that are affected by this specific iss= ue. > > >=20 > > > Yes, I was hoping to push the equivalent of this patch a few hours ag= o, > > > along with the revert. Then I noticed the test in test/lib/lmb.c does= n't > > > scale past 8, and I just now figured out what that should look like > > > instead, I believe. > >=20 > > reportedly neither fixes the problem in all cases, and raising > > CONFIG_LMB_RESERVED_REGIONS is required. > >=20 > > Looks like the mechanism to add regions above the default number does > > not work as intended. > >=20 > > The test is to boot rPi 4 from USB directly with recent firmware. >=20 > Well, given 0089affee275 ("configs: stm32mp15: increase the number of > reserved memory region in lmb") I guess this has been run in to before, > but not resolved more generically. I wonder if https://patchwork.ozlabs.org/project/uboot/patch/20230212150706.2967007-2-s= joerd@collabora.com/ is what will finish dealing with these issues, even the ones that had perhaps shown up before and been addressed in the commit I mentioned above? --=20 Tom --JQwtNumt9ofYr0rZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPpeiAACgkQFHw5/5Y0 tyygKgv/Uh0uPTLnoG37FrP+dPcHn/C6fciGs7XzT9IBt0XGUUZLA/4F981KSMwA z6jfJSEiWme2NO+51CNsumcbVgPxz8hrX25AdRFCOAhgX5qBgXWGtu9ytilZ+I8i 4GnIXFE1TBg+J62zcf/HyqRyGLx0rHE6UhQi5bpJeN1PSyPfP61Nh2xdlXMa8nLk HIecgnNdtUWV7AxtIdXpLbDX+A0aUSap7a4AzwlmYLcXEsfjQ9z1M/2oCkPHNSle s1AAdTu5COkEd7qjSj+GlMqIH6rkVKjgm3Mk/lsbTPhEYMDngHzMOzBww5/yr1x5 4DgyYtHJG8kkFo6uN/BRVSn+1hF+tQvOP4OvLiaDb5drNIFxKunqsF1H/GP4eQXf +LbJSmuOug+1qIepBz0cXU+l6cp1c3aDTh143OS7ALKELO2AWrAf4CNyVnhvJL4y VwFkrnDRsfV9UizxKGt6cfndg+frIugeycacKwvWoXCDr3LbfrzqMuy1ftpVvz4T 25pLJsnN =srju -----END PGP SIGNATURE----- --JQwtNumt9ofYr0rZ--