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 1A531C636CC for ; Wed, 8 Feb 2023 14:54:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8136185EC1; Wed, 8 Feb 2023 15:54:21 +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="U25nIa7r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9617485EB2; Wed, 8 Feb 2023 15:54:18 +0100 (CET) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (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 D17538523A for ; Wed, 8 Feb 2023 15:54:15 +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-x831.google.com with SMTP id g7so20921111qto.11 for ; Wed, 08 Feb 2023 06:54:15 -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=AnHNZJmYUF0TtBk6UC+eY7/heuCBbLE2xh/YxTHln+s=; b=U25nIa7rSxvdnw8Ts8QB0Xg/c/qgESxzr+3G/HMQ6jMaqrAJEd92NVPME4gVQW2Zkp BvVLuUnA2qRVbB9AjoyoGBjiKLd7ZRduXftgBOcm5A0BXqpI0p5W5NHnJ5J8u3dPD3e2 jwKeg6cZKSKj90Y46mX7TPbNTlwBHe/011ALk= 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=AnHNZJmYUF0TtBk6UC+eY7/heuCBbLE2xh/YxTHln+s=; b=u31z3RgU6Vys67GrNUmV/NMWo/X7N2p3l8bEY6y0FLN/PmhrVAOYMP8Kx1DXgaizU3 1ga0kYZskYpEEWhmRbl6w+dTB3WmVLSknO8ik9wbD1hvzaj8jRrPmyPlbTeUEihzGD/T mAw9GRBQNjnUBy56HbGn5T6jWmK5YFfQzSdi2KzHFdd0hy6pqrbXQ7g0mz2fz/zqEO3h 2U3uKzMEDWMThJnQoYlF2oiadC2Rsm0DKS0E9kDFqk8a5Yfg25zqvxBx5zl/hnFN3Xnv qa8uta24Yp+ywlg0MrvmD3dd3lJ4mSo0QEAH2/nloZW9nMNDLK8kXsVyKtKSclq7AH/y g0gQ== X-Gm-Message-State: AO0yUKXeciFcJj5xLWoHDjyEgfY/ghYYz3iEpkdU4E2KKCG+5Ilb2R9z dez9M5wxJy93nzDL2d7vHTXrZ+jL6+01SY25fJY= X-Google-Smtp-Source: AK7set8k3Vtp2qQcog7iVmypsGKedNGhzpFAM/56A+KEsd9UxX5LgTOELtkSh4a3V9WnvBpZbUVC+Q== X-Received: by 2002:ac8:5cd2:0:b0:3b8:41d2:1b43 with SMTP id s18-20020ac85cd2000000b003b841d21b43mr12617102qta.61.1675868054570; Wed, 08 Feb 2023 06:54:14 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-90cc-7e59-435b-3104.res6.spectrum.com. [2603:6081:7b00:6400:90cc:7e59:435b:3104]) by smtp.gmail.com with ESMTPSA id e18-20020ac86712000000b003b9a505627bsm11510309qtp.79.2023.02.08.06.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 06:54:14 -0800 (PST) Date: Wed, 8 Feb 2023 09:54:12 -0500 From: Tom Rini To: Philippe Schenker Cc: "u-boot@lists.denx.de" Subject: Re: [PATCH] lmb: Default to not-LMB_USE_MAX_REGIONS Message-ID: References: <20230125230823.1567778-1-trini@konsulko.com> <32b441a41602eda85b65682d60354141fbc9c5d8.camel@toradex.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9aEVWjcmbK5YIKgL" Content-Disposition: inline In-Reply-To: <32b441a41602eda85b65682d60354141fbc9c5d8.camel@toradex.com> 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 --9aEVWjcmbK5YIKgL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 08, 2023 at 02:33:58PM +0000, Philippe Schenker wrote: > Hi Tom, >=20 > We currently face an issue on our apalis-imx8 machine, that is not able > to boot with a ramdisk. What happens is that there are all 8 of 8 LMBs > reserved and fdt tries to allocate one more, probably for relocation. >=20 > I now stumbled on this recent patch and noticed that in my understanding > this is introducing a regression to all the boards you remove > `CONFIG_LMB_MAX_REGIONS=3D64` isn't it? Or do I miss something? >=20 > For the other question this raises to me is it in general safe to just > increase this limit, let's say to 16? >=20 > And since it was quite an effort debugging this issue I thought of > adding a debug print if the MAX cnt in lmb.c is being hit to ease that > pain for other devs, would you be fine with something like this? Right, so with the late in the cycle change to make EFI use LMBs as well, a lot of platforms hit the 8 of 8 LMBs now in use problem. The change here switches from a static allocation of a maximum number of LMBs to dynamically allocating as many of them as needed. --=20 Tom --9aEVWjcmbK5YIKgL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmPjt40ACgkQFHw5/5Y0 tyyqCAv/ZxOJOEkUJZ7+M4+ORSIpexZQX7Qj5xCnYl6nXMdiPKLaCf8iEc2u6HsL EQCka94G7zaY4NDOP5fXBgBau9nVC11dLJD8CURQpTqGZjPrNJRq73KuBBjvTr34 IprnxZ77YPeTO8vl9XQH5XWJSFiU0T6AWbJbEVywMpBnCpxBKFmiPwR/OoGZp7aT J3NMWmFPka3wfEw5NLXuRW/8EgY9uwkFbeaiVWJxZJxWVR0tvvP+i7ugGQ1feb/c 5WwKR4vqUjtYfJqTteR7K38cHWpHWNnDILqSpi2DLduUZ5PeDlIPDkIfp864WqUr XK9nfjCQtf/gpMqnPRYGvNrYOGt7OItrA3/94joGtaS6be+BpgQh9bRWcpeG0f5F sO+d4NoDpGePtB5hgQMHcKpqs8AUjDQMj2PszS2NxPflRyeKRY/QkJidAM5cj5pE BQwdBEI6B4LULDjk0ZukMLdPXutG1DLND1uP4arObIbHbOLViowv0YvW2f+iBK9+ nDBHLe7E =Muvy -----END PGP SIGNATURE----- --9aEVWjcmbK5YIKgL--