Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp550881rwr; Wed, 26 Apr 2023 03:10:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YJorf+cEJXdUpoQVUL5KcI/vb+kvnzxgdbYFN0QW/i3pgADeqyTzwgIsjYyozqPsCyYLlx X-Received: by 2002:a17:902:e545:b0:1a6:6f3f:bc3 with SMTP id n5-20020a170902e54500b001a66f3f0bc3mr28964362plf.57.1682503810513; Wed, 26 Apr 2023 03:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682503810; cv=none; d=google.com; s=arc-20160816; b=uOsx+jFbhqwlJh/HKaHeutUVlL7oT/abWRqZXIYSwFml6/2cXjkNlJ85RiC2/ZHYOs lhxFCtojC99/PdMu5mwIPd8RBeIe/MY6PNHXOwIPwaCNRrtthWvBpS3a2PUx4PVJZDYb izHvqve5I+mbMpAokHcIPHD31JjBi/LyxVbY0lbDLpc5cUWPHCLO4QUVjVE3RovtxFtK kkCwei9VB61lvFqa9tFcfs4NI6OhT8y4/H+GWNRMNhDvjWbQYv6dQTib37JOF69cyqky NBRzMocqA7Cp/5zL+E7nzsgCzVDDWkDw4JxLTveLHI44GHfLPN/7xsSASPiWYZY4g+Mf cp/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Da0K1+1u6HjacStMktLhxyrU/rZ3YGlzOIVzFSDHKuI=; b=Tm/cHLk+AI0LcL7rjqo1X2fZJnGODMFOQ4BiR6h2aDUJ0jl0PLLfhp8SloMmceI9HL Os9zyyPrhweOJpcWETTS/E8mHqjW8B8uMSVz+RukfzqifwDKqyL+4Xwa47ZRctVL6k+X 6Y04WjdEXOFoMIFDzD9DXyZH5zuZIBVL7gJMI2ZKjo/oC9o9UgnN4lHNRRWxSCufA5I0 8s4ynfQ3uXs5D8FZ1QlolVnUqxaq99EmGW0ZIpw9olzsgui0W+OU2vKWJeyCzoFXjWcv okHkwDohWILh3w7NusknWtGv6xc9vzkTyR69Ndb8CZ5LUi7i5Ycqr0ZO4jNeI9B0KFNa kloA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a1709027e4c00b001a520d3ecb1si14670350pln.515.2023.04.26.03.09.55; Wed, 26 Apr 2023 03:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240369AbjDZKHe (ORCPT + 99 others); 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: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.