From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4309AC77B60 for ; Wed, 26 Apr 2023 10:07:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240143AbjDZKHe (ORCPT ); Wed, 26 Apr 2023 06:07:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbjDZKHd (ORCPT ); Wed, 26 Apr 2023 06:07:33 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 259FC26A6; Wed, 26 Apr 2023 03:07:31 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C06D74B3; Wed, 26 Apr 2023 03:08:14 -0700 (PDT) Received: from FVFF77S0Q05N (unknown [10.57.23.120]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8ADE33F5A1; Wed, 26 Apr 2023 03:07:28 -0700 (PDT) Date: Wed, 26 Apr 2023 11:07:25 +0100 From: Mark Rutland To: =?utf-8?B?6L+Q6L6J5bSU?= Cc: Ard Biesheuvel , Lorenzo Pieralisi , rafael@kernel.org, lenb@kernel.org, jdelvare@suse.com, cujomalainey@chromium.org, yc.hung@mediatek.com, angelogioacchino.delregno@collabora.com, allen-kh.cheng@mediatek.com, pierre-louis.bossart@linux.intel.com, tinghan.shen@mediatek.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, rminnich@gmail.com Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI Message-ID: References: <20230426034001.16-1-cuiyunhui@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Wed, Apr 26, 2023 at 05:34:55PM +0800, 运辉崔 wrote: > Hi Ard, > > On Wed, Apr 26, 2023 at 3:09 PM Ard Biesheuvel wrote: > > > > Hello Yunhui, > > > > I am not sure this is a good idea: this is clearly intended for arm64, > > which cannot use ACPI without the EFI memory map, which it uses to > > cross reference memory opregion accesses, to determine the correct > > memory type attributes. > > > Not only for arm64, but also other arches, such as riscv. > For memory-related nodes, it will be done in the early scan of the device tree. Ard's point is that the device tree doesn't have all the same information (e.g. nothing in DT describes the memory type attributes), and so this isn't sufficient. We'd have to create entirely new ways to pass that information, which is not very desirable. > > What is the use case you are trying to accommodate here? > > > Some bootloaders do not support uefi, such as coreboot, > but need to support acpi, smbios. For arm64 at least, if you need ACPI you must have EFI, and trying to change that will require significant work and long term maintenance. Can you extend coreboot to provide EFI services, or to chain-load an EFI payload? Thanks, Mark.