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 4EDA3C433F5 for ; Sat, 23 Apr 2022 12:09:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC1EB83DE0; Sat, 23 Apr 2022 14:09:28 +0200 (CEST) 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="sHBS0M4A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E3BAB83DB8; Sat, 23 Apr 2022 14:09:15 +0200 (CEST) Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) (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 6561F83DE4 for ; Sat, 23 Apr 2022 14:09:04 +0200 (CEST) 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-qv1-xf33.google.com with SMTP id h13so8083162qvr.2 for ; Sat, 23 Apr 2022 05:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AxyKtonRSugqocaQ5L58yfJt+6Ry1ktBarLm4rDMwko=; b=sHBS0M4AqiWUj3BxA2rLoyh7z/0zUkyhSLKOqu5qwJ8oVDNyuzc3PROxaYN+kNadYr vY5xKCujjAdB5MBCqt6grgfJjif+8M2bxqtVLO0vsfhR2qnNKb1K7xzu62AuuJhABcKH Wjq/FjiMcu+OXmbnLcrjgWkt/QQELqMe0sBFc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AxyKtonRSugqocaQ5L58yfJt+6Ry1ktBarLm4rDMwko=; b=V1gWm1CCgnGJpvftKgLXgAeigBFB3L4HjSSM/dOq/PglqSxM+Z+G5FikPSkgxUqESk WdRmrOISibe/7vFHcuK+n8tTH+qtskMDu+/OnnyLnk9Srd5cgxrPGQB+LLwFNY4usvu8 s9AVM8nrABqvr/5eTtCpctwb7c2jR02JmFtPfreNeetbDBI4VmxY2O8LVFsG0uANfK7E S8d6ZKQ7ebSeMOFFCQpRSjS2P3vchHp/gyr8NsQK/oOuzaNO9OmJj1GtXVCH5V6iB0BI BHxe8Lp+6V0A3fuINT/snwvxs+cQ1/YpUeyGwZhlWPWXynoY1bZXZcUcefgdg0hF2UKO 8HkQ== X-Gm-Message-State: AOAM532M63vJ9k2LB4XeRSe2TeHEzLgs0qHvQy4WgVUhoSbzyWL9X1en HVkJPT/xMR5RalqwPPm8YBXc3w== X-Google-Smtp-Source: ABdhPJwSZX4mKUD61y4MAxBeXWCCwLU4VS+8wQm6alkJLYoMxUOVRe/aF93yRCHwqkTTr7uQP3dyxg== X-Received: by 2002:a05:6214:509a:b0:446:692c:6c5a with SMTP id kk26-20020a056214509a00b00446692c6c5amr6522644qvb.120.1650715742758; Sat, 23 Apr 2022 05:09:02 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id l18-20020a37f512000000b0069e73cde8b1sm2198151qkk.118.2022.04.23.05.09.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Apr 2022 05:09:02 -0700 (PDT) Date: Sat, 23 Apr 2022 08:09:00 -0400 From: Tom Rini To: Andrew Abbott Cc: u-boot@lists.denx.de, sjg@chromium.org Subject: Re: [PATCH] fdt: Fix TPL SEPARATE_BSS check when locating DTB Message-ID: <20220423120900.GJ3045430@bill-the-cat> References: <20220416001231.843315-1-andrew@mirx.dev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Owq9/LamPkWRn7rU" Content-Disposition: inline In-Reply-To: <20220416001231.843315-1-andrew@mirx.dev> 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.5 at phobos.denx.de X-Virus-Status: Clean --Owq9/LamPkWRn7rU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 16, 2022 at 10:12:31AM +1000, Andrew Abbott wrote: > Commit 690af71850149bf242502f688eca80fb302d1f76 changed this condition > from an explicit >=20 > IS_ENABLED(CONFIG_SPL_SEPARATE_BSS) >=20 > to >=20 > CONFIG_IS_ENABLED(SEPARATE_BSS) >=20 > The documentation for CONFIG_IS_ENABLED() in include/linux/kconfig.h > implies that we will get the correct behaviour, but the actual behaviour > differs such that this condition is now always false. >=20 > This stopped TPL being able to load the device tree blob at least on the > ROCKPro64 board (RK3399 SoC), since the wrong device tree location was > chosen. >=20 > The issues causing this behaviour with CONFIG_IS_ENABLED() are: >=20 > 1. The documentation implies that CONFIG_SPL_BUILD =3D> > CONFIG_SPL_