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 8641CC636D3 for ; Wed, 8 Feb 2023 19:11:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1150D85F1F; Wed, 8 Feb 2023 20:11:42 +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="ynkf/R6G"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="9WnDSPXL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D131385F2D; Wed, 8 Feb 2023 20:11:40 +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 F2C1A85AAF for ; Wed, 8 Feb 2023 20:11:36 +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 B2A8C20123; Wed, 8 Feb 2023 19:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1675883496; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2YnBOvun9Xr1MjTKbWMMKX45yAMLaGRjQ/D8H33+bXI=; b=ynkf/R6G05XMOsdDcTd1dzhWmdl1yUA2q4VQY3JnH7bKSK+0U/TqKGeqPHxd3TJbUP122b waNrTNp+mZw+bAZRPU074MBtqL1fgIPzdvTneoj0Po9AVnkB5DuP4e98lG/GHgtaxvENlG DpIg8Oth1UpAnSuPrFtQbgWUfzw+3TM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1675883496; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2YnBOvun9Xr1MjTKbWMMKX45yAMLaGRjQ/D8H33+bXI=; b=9WnDSPXLlBsHm1IPaQm7PdW6h8yXobe/lejqTkMTwMO2/f9ds/BpMiSWp9j4kipDuC14ON Hz2jR3zsRCd9BBDg== 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 DB0502C141; Wed, 8 Feb 2023 19:11:35 +0000 (UTC) Date: Wed, 8 Feb 2023 20:11:34 +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 , Heinrich Schuchardt Subject: Re: [PATCH] lmb: Bump CONFIG_LMB_MAX_REGIONS Message-ID: <20230208191134.GV19419@kitsune.suse.cz> References: <20230127130012.31499-1-msuchanek@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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. Thanks Michal