Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp523362rwr; Wed, 26 Apr 2023 02:41:43 -0700 (PDT) X-Google-Smtp-Source: AKy350Z4xvR8i2bZuLciaq+MBrcokzCva861kfE6fN0gWVd72TtNPxUNzVrvVHCdu4HHoadd8cVK X-Received: by 2002:a05:6a20:8e24:b0:f3:3578:6699 with SMTP id y36-20020a056a208e2400b000f335786699mr17820561pzj.45.1682502103033; Wed, 26 Apr 2023 02:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682502103; cv=none; d=google.com; s=arc-20160816; b=Q0RySVizJSoBoKgaOEIqyH/Uah8y+t5jE0wtR8A9Mx6BRDl8hdVu68cYFLiZqmGOFN PqB+m+acC8RDqHSeVlYUa1MUOm63YYao5/JW6A0pyhNUafYVN9QcajQ+vendYJQr7DNo DTDoZHaeYn66AbPibUceIyFyiW9nnbIAHwp5WedoJJre7BZtJtuBtrvK/iVkhC+jL44p S5VieoSxi7+LjkKUlClWMSQDQ/Mium70Lr/pkAOXe8h9gguCG2CKN++UkSGxLU8Z/Np/ 8n+NA/ZSOxIKQGoNlF5sIkpbc+RkRM1boXBdeeeiJ33McD9uddvoP2k7o/v26kPyMNRE b58Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ce4GYxtRqPUN978KLBinEzPZHPyR7Q5Y4N3uHGTI18A=; b=KUIESlsYHdUn+Tef3j6bpD+vsWrUGgbHOh5VL42jc+FA9M5+ZbxkK1fDiyZOQA8KN7 KZojl9Bq6ozIMbDm1H+P3WHTvycAiSbdIga4xs7qoNvzmCoU4cFXUIXTUtxc6OPnTK02 gaNZ8u+D/fZw6rGCA7Tca9y0tQKsNgNIZXYMJSFSamWZ4uxmyKtDnXYKS71tUT3yxlr1 xxZH4XuS04VUtsBXnixXI7BmSGinePTkMl4j/D/U5naEaJ09/lBMNyho+dc9OqLK7/tx trDbUv6cg4OzhWy/S6pDqnw24D45XxjJpCBjY5X+x8vChQrTSpJunggiLO9bZXrJIwA5 wXEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=bLgsuL5j; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f16-20020a63f110000000b00518cf8916e2si12475275pgi.415.2023.04.26.02.41.30; Wed, 26 Apr 2023 02:41:42 -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; dkim=pass header.i=@bytedance.com header.s=google header.b=bLgsuL5j; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240330AbjDZJfm (ORCPT + 99 others); Wed, 26 Apr 2023 05:35:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240211AbjDZJfk (ORCPT ); Wed, 26 Apr 2023 05:35:40 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A2A930C4 for ; Wed, 26 Apr 2023 02:35:15 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-2f8405b3dc1so4202440f8f.3 for ; Wed, 26 Apr 2023 02:35:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1682501713; x=1685093713; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ce4GYxtRqPUN978KLBinEzPZHPyR7Q5Y4N3uHGTI18A=; b=bLgsuL5jnXn0H97jLHgVAuTV95orbxH7cNIsemG9NrrG6IMhLYAz9O1E5xjggiipxp IOvDRWCbVbcckyOEToIxL94M7eb18SCYRYO/U7sLqmNDO+rtvt86wnlufjQ0cSt4OTFG 2CwqJW0l8480m+WXJZ67om2DVZxgNOZHKL0Qj2b4CaxTF7RMt8ughdnVbcIx+FOKWiAT GADrcGHsXDnT+VDhsJfwRyYuP/i0YGwBYX2zJ4Xx+LLaOum74DNi8gnPaPacoisGHxTB sAdHiGV27a3cgs9b4uEx9GPGEE5XdnJcnr7LGddx8MFsrZ1MUPZQYllntxDoCoTddPdU UoBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682501713; x=1685093713; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ce4GYxtRqPUN978KLBinEzPZHPyR7Q5Y4N3uHGTI18A=; b=ezWAB+4kDQfZYC9HieoVgOGVswBfc+1vpydWZWFIwOoj5ELsGn3mIlomO+/4YvUBmo FhmgNR7kuamx/UVPZb8FkibS8pzqse52zbkd2u34ZF4gzGKBhIeygFMxEwa0Fhj2KvCZ jBtVpOnKuG1pfvIoMXYO4dMDlyZfDjiFXd9EwUl88YFtkCuZNHuVLBTZ9qAUxFNj9bcP /3GKSe4tgbe/T3lZFU1FDRox+CvVX8Ha2jOfE0tFrkRpmnFcSm3dv7uGxYPzwfQjTYm5 O4foG5f3eeFBy+rF+I3yCrTxnW3pm5E64NlgE1pWdtrKRGqaG54Ga6vj6f3De5ueUBK/ ew1A== X-Gm-Message-State: AAQBX9cDNWJOlai9VtZp5I6cmr0HQ3ziaFkdqihIjaZ4iiKXoixlcFV4 Rw7luLAM4jz5fiZb9AyFdd4O6mKKeWfU7HgsFsZkkQ== X-Received: by 2002:a5d:4611:0:b0:2f6:987f:a0f5 with SMTP id t17-20020a5d4611000000b002f6987fa0f5mr14112922wrq.5.1682501713638; Wed, 26 Apr 2023 02:35:13 -0700 (PDT) MIME-Version: 1.0 References: <20230426034001.16-1-cuiyunhui@bytedance.com> In-Reply-To: From: =?UTF-8?B?6L+Q6L6J5bSU?= Date: Wed, 26 Apr 2023 17:34:55 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI To: Ard Biesheuvel Cc: Mark Rutland , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Ard, On Wed, Apr 26, 2023 at 3:09=E2=80=AFPM Ard Biesheuvel wr= ote: > > 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 t= ree. > 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. Thanks, Yunhui