Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp116345rdb; Tue, 16 Jan 2024 17:30:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHsCyCSZJXxBjAtZ78/OjJHB2+w+XRZbp3P6fbgcKxB2hA7Z4dS1vDoE0t63iMi/qnJ0w91 X-Received: by 2002:a05:6870:9c8f:b0:203:2c18:808e with SMTP id pq15-20020a0568709c8f00b002032c18808emr11107234oab.102.1705455000610; Tue, 16 Jan 2024 17:30:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705455000; cv=pass; d=google.com; s=arc-20160816; b=gCQkJ87tVqO5EEVSol6hQl2DpXWuZiLijePJVUSaFaq4XPkljMYNncaa3LduI6YQ3N b+mWP0HVRf1WH9zOA64Az9v1lgvOVrZ7epR7oVqyGdq9aIF803e9d4Kvt1XFRjp+hZUm T8a2FrNdl4r/VPRu4u34NRBriE3CE7QIYfl90ygyKiduxQzgpOefWrRc9mbkGEowDoeI eyAyBhmYwvUx2xI11cGrh94rhx0LHpIjcMuUStn94gY70wlnfWw2OT3EAGtLSw6nfVp8 m2aSLMZR7vTgAA9ubnuG03MzSUJICo5sah7auuHHAWiSszyKrTGhG+fwqnhIMK9jY18D NDXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=u7BlLrJyg8NJtw6cjGr372yJi8HU88SzdYtGR597Yxg=; fh=4mQFX2iCr7bKhkcuNbN/tNrWvFdql9bZN/dE27O1PgE=; b=Xozz25v9W5PB9G9mDQtDgvR/xc6AzLer8T5FDyGF2wPxZQFY7cpY682AQoS5K3ljD7 qlghetyg1cjr6hrIdlPtvOdfLtKLLbx1QhCs8NeMNswZv2ZbTk/XttyCeMu4abe2Yk6v 0QTxwmaZNfGdMZDSfMq2t/mDnV7nRSnL5wEBzZFAWQh/DkC5QZXt5C7muZADc4fJ+QQV rVWr8GRu5Q7qQK+c2hBqZmIiwClotrC9xKbb+ZlSo/rD2IWPhvNDoWAsvGINLv7Ovw7Y OIU/ReScHrSwDKoWmhNI0q/Dl7yhkWCleinnrHAqZfkwqUXqx4ft9jQnqx8gxPO0YPMu rwiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tC9n+TgG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-28425-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 8-20020a630a08000000b005cf88b065b1si2490678pgk.121.2024.01.16.17.30.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 17:30:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28425-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tC9n+TgG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-28425-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28425-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 17829288BAB for ; Wed, 17 Jan 2024 01:27:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D8B7717E9; Wed, 17 Jan 2024 01:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tC9n+TgG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F245810E9; Wed, 17 Jan 2024 01:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705454841; cv=none; b=ssdnPpeIfg8yLfzVjOd6+y1tfY3aNXoCTd7w4kYNPteoJo6jF2vkXw2t0ISnDLqx0SvmsQ8sSi/8deelk8B+6I9+TRtuk6eNL0GpQfQiwk022Ivc1BG0NNbUACE7ZekOpnjowmblFJ1HIJfad3xOZKexJbZztR8NBKdLj4vCtBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705454841; c=relaxed/simple; bh=u7BlLrJyg8NJtw6cjGr372yJi8HU88SzdYtGR597Yxg=; h=Received:DKIM-Signature:Message-ID:Content-Type:MIME-Version: Content-Transfer-Encoding:In-Reply-To:References:Subject:From:Cc: To:Date:User-Agent; b=txqydAxN3POfz9XoHsyLce6CL60GC5S5h2bnINv0+pKvZTL1IWo1VYrNAdOMHmMHtHhEGpHuxC7YH9FZShrt6fOrHfZ7i4NXQPraG8gHRBD8SvmNYPlMRlNn+EQUuHct2QgzRJE/KYoUN+IEt0EpAjdfybfF5F1Km3CPYV0Z+OA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tC9n+TgG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5737EC433F1; Wed, 17 Jan 2024 01:27:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705454840; bh=u7BlLrJyg8NJtw6cjGr372yJi8HU88SzdYtGR597Yxg=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=tC9n+TgGzJdYa9eJaNIrd6YETp5ouaQa3aG/Bsb5/+N9Ozvs5fVcYmBG3R+99pSr5 6MQ+zqdLWmYJkkihzT5Ht0YQGPz5jNQVXsC52lwEWb6veqPJK0PgKqtIJWkAAsas2A ESvqojtCoN+ZsgPbnn0qdAQ83dvbZj1vzayHDMbAv4f8xzdUDnTPAV6JFSe5KGMIBP yO1jM5cRt4kuCl/+A2j/at9+4Kir3CEfkwNnX9m9EDx8HO8gBIGEM6Xd8aoajnN5sB GddFcKCgyWf5RXom2kEzyux5c/FbyuQ9jy3E+OHf8D8+0yBoSIBN3fGRnwpt7PN5gn NyOU6rMIxL3Kw== Message-ID: <434b21afe1899b1567f3617261594842.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20240112200750.4062441-1-sboyd@kernel.org> <20240112200750.4062441-2-sboyd@kernel.org> Subject: Re: [PATCH 1/6] arm64: Unconditionally call unflatten_device_tree() From: Stephen Boyd Cc: Rob Herring , linux-kernel@vger.kernel.org, patches@lists.linux.dev, linux-um@lists.infradead.org, linux-arm-kernel@lists.infradead.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, devicetree@vger.kernel.org, Frank Rowand , Catalin Marinas , Will Deacon To: Mark Rutland Date: Tue, 16 Jan 2024 17:27:18 -0800 User-Agent: alot/0.10 Quoting Mark Rutland (2024-01-16 03:51:14) > Hi Stephen, >=20 > On Fri, Jan 12, 2024 at 12:07:44PM -0800, Stephen Boyd wrote: > > Call this function unconditionally so that we can populate an empty DTB > > on platforms that don't boot with a firmware provided or builtin DTB. > > There's no harm in calling unflatten_device_tree() unconditionally. >=20 > For better or worse, that's not true: there are systems the provide both = a DTB > *and* ACPI tables, and we must not consume both at the same time as those= can > clash and cause all sorts of problems. In addition, we don't want people = being > "clever" and describing disparate portions of their system in ACPI and DT. >=20 > It is a very deliberate choice to not unflatten the DTB when ACPI is in u= se, > and I don't think we want to reopen this can of worms. Hmm ok. I missed this part. Can we knock out the initial_boot_params in this case so that we don't unflatten a DTB when ACPI is in use?