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 A6AEFC636D4 for ; Fri, 17 Feb 2023 09:28:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DA0F685BE3; Fri, 17 Feb 2023 10:28:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=suse.de 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=suse.de header.i=@suse.de header.b="Sdro486o"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="/aOH9sU5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7541985BE5; Fri, 17 Feb 2023 10:28:50 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (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 3E36485BA9 for ; Fri, 17 Feb 2023 10:28:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=msuchanek@suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id E921D1FDC6; Fri, 17 Feb 2023 09:28:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1676626126; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wTmwRdMD/KifQXchxU8bgYP3mpPQp5/qXUeCdNjoJwc=; b=Sdro486oc044TSEXwpU8lhx4zOYetYj755DIXLjWDPSEdKG2Chk6Jyb8fSK7KrMaU/GX2k 6YZWD4LCNizocugxUXN3JtKTEV2PcrhZ5tJzuZFcshglBiYnxBUx5fGmcm2CC/s1JgsSA5 xqu7SzI5l7iKNJh8s6CdOo3txhSRF4I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1676626126; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wTmwRdMD/KifQXchxU8bgYP3mpPQp5/qXUeCdNjoJwc=; b=/aOH9sU50smjO5mZc6DwMunR3SR0djOFQ1jOBA2ulbArtX4lQYDm4rTwL7ctEzdE3lSKDB 3AYpV1rASZCqGnAw== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 1D33E2C141; Fri, 17 Feb 2023 09:28:44 +0000 (UTC) Date: Fri, 17 Feb 2023 10:28:38 +0100 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Tom Rini 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: <20230217092838.GG19419@kitsune.suse.cz> References: <20230127130012.31499-1-msuchanek@suse.de> <20230208191134.GV19419@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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 Hello, On Sun, Feb 12, 2023 at 06:45:36PM -0500, Tom Rini wrote: > 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ánek wrote: > > > Hello, > > > > > > 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, > > > > > > > > > > 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 to boot > > > > > > > because u-boot runs out of lmbs. > > > > > > > > > > > > > > commit 06d514d77c ("lmb: consider EFI memory map") increases lmb usage, > > > > > > > hence is likely the cause of the lmb overflow. > > > > > > > > > > > > > > Fixes: 06d514d77c ("lmb: consider EFI memory map") > > > > > > > Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1207562 > > > > > > > Signed-off-by: Michal Suchanek > > > > > > > > > > Reviewed-by: Francesco Dolcini > > > > > > > > > > > I plan to pick up > > > > > > https://patchwork.ozlabs.org/project/uboot/patch/20230125230823.1567778-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 increasing > > > > > > the limit. > > > > > > > > > > Tom, my understanding is that you plan to merge this or an equivalent > > > > > change, correct? Otherwise I would need to send some more patches to > > > > > update a few board defconfig that are affected by this specific issue. > > > > > > > > Yes, I was hoping to push the equivalent of this patch a few hours ago, > > > > along with the revert. Then I noticed the test in test/lib/lmb.c doesn't > > > > scale past 8, and I just now figured out what that should look like > > > > instead, I believe. > > > > > > reportedly neither fixes the problem in all cases, and raising > > > CONFIG_LMB_RESERVED_REGIONS is required. > > > > > > Looks like the mechanism to add regions above the default number does > > > not work as intended. > > > > > > The test is to boot rPi 4 from USB directly with recent firmware. > > > > 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-sjoerd@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? Looks like this together with raising the maximum number of regions works, that is v2023.04-rc2 should be fixed. Thanks Michal