Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1522184rwr; Thu, 27 Apr 2023 20:19:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Jq+1F0j3Gjmwt26UQylvDLgPchqGgPqrjq533CJTJ1KI72l6au9MP9GFULgObpIYxGZ7/ X-Received: by 2002:a17:90a:c390:b0:23e:f8e2:9ed3 with SMTP id h16-20020a17090ac39000b0023ef8e29ed3mr3971761pjt.43.1682651954647; Thu, 27 Apr 2023 20:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682651954; cv=none; d=google.com; s=arc-20160816; b=OUPxBldye9IqVmXQ3lwkruYc9ksk0ULc9QJd9R5s/xy9uEzFsV0kCihA0wXpNcQLn0 hu5SDTODpnvk28bfB8lt0xmH3D8UxFiQRfb5pg1U+3AO123v0lePkt+16TIs2IGeyKlP 8+R8TKrGGxrEiRQ38vCVf/FQdpEOcvyCQ4FI2Kcp/kuhOiWi62ukcuA1nG8wvGIv/b6L hjNo+Aet+GClWJzYu20qyiojk5AcClIuDs3+E35/egryGxLdQqpi8XU+Qrfb5+UY1f4/ TB7DbfVofB8dEd2n8k693BJhsUFHsMRoIzGW2V3oOJcJZ0C4iik/tXWpNM4L08trGcfM 6JLw== 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=aDCuPvcaDi9+iw8/KxLgNKP2gNwI8pEaXx9HTEyfXDQ=; b=gFcdWCW3aHhpJAoe6jtCCKnfWvUrTX3UACHTOlPJLz8bwne0NE/50Pf4T3EeHpBppd CPGNAGJCaM4v9Bs1sA7oIgWvFRofCOrLgoVAs9IEnbUIWhbFjh+SqCvDcSRFfV6pvCqd Y5SIQtvYm61b8nW/lootwLPJQ3DbmpaMXzW4wzFQ8+qDgqKlAJ6hBNjz0qAWUhyiIP9N DnXxfFhM+5gkD8ZYFbbQ+4+kI4ZO2dr4gAUjdSIx+Szmah3swLqAi4Vv4PiZLlvhq7NB bpVZorryi42FJk34PVgsakTyIIM+QadMIdX6wF17kgIaE4CiGz+xJVayNW4fgd35Cq99 /G1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=gij0vRbj; 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 h192-20020a636cc9000000b004fb33a76e2csi20109622pgc.834.2023.04.27.20.18.59; Thu, 27 Apr 2023 20:19:14 -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=gij0vRbj; 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 S1345164AbjD1DSx (ORCPT + 99 others); Thu, 27 Apr 2023 23:18:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345124AbjD1DSl (ORCPT ); Thu, 27 Apr 2023 23:18:41 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BF2C1FF7 for ; Thu, 27 Apr 2023 20:18:16 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-2fa0ce30ac2so8375566f8f.3 for ; Thu, 27 Apr 2023 20:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1682651895; x=1685243895; 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=aDCuPvcaDi9+iw8/KxLgNKP2gNwI8pEaXx9HTEyfXDQ=; b=gij0vRbjt5XZOxE1P0cS9+uvr6CgTr9hO1Jh1w9KYmM86w93KZOIW3jPF+uQAHE518 OW0baTo8/QYMDG3vR3YS4Rabzy5wNuDTGsMQEOl+ng3i6BOwFms4IDZo4CGL/IT9NmuP 2WYPSaFGFbXBYnyv6oo0BcNwoEi7O9G6QSUQvdMKpidv2eVeT+245DNysYjbg9p8nQQo BXurdBENm4TF4lsULnXG2BVDa/uMqxuEb7fr9VWq2wYA4Fumt8U0KHgigGVg6dm5GqM3 pNHAscMRQXKH2caQtoEtd3Cdl3OjsI4UHQSX0q6u3F+E9HPtqmAK3dohOv4MVfE3Siql pDtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682651895; x=1685243895; 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=aDCuPvcaDi9+iw8/KxLgNKP2gNwI8pEaXx9HTEyfXDQ=; b=ez1JCfFTCfxfwwl3vfWz9jpwFFqybD7yhXXiv6ewyL6BAhzDAPIQHXswjccDkx4qEJ mGtiYwq1z9zi3VftqeE0QOT7GoXzkQS5OYPPuHJIidX1hr7+Vcj9nu37UGwtU5cMeWFm RAvHi1QwxbYv+YganywLs5UJ69qaS+dyhmKnarvBpnIuWsFUXD5DzdkkbeEgC9Cq6rau 1G7yHv31k0Ryn8BOLGpvsgXhryWxTgzNscGazMK9dkSzovTqa0MMgGZ0L+pAYraFx9kW 8iUOTF4vXOLJGcnUgCVudyKSZbjLr4iYFXxY7ms+xd9vpOvZKm0gjymcG/jZjpu39rBC 42Uw== X-Gm-Message-State: AC+VfDznebF4ImXebXeTrnPpThkHNTrZ3TA5C2TM8TpQlD1SJ+Cch7NR I+EbyPF6uhFc9kiSLzdckvkK533qOG9e82ViEbVGCw== X-Received: by 2002:adf:f5c2:0:b0:2c9:e585:84b0 with SMTP id k2-20020adff5c2000000b002c9e58584b0mr2751464wrp.1.1682651894858; Thu, 27 Apr 2023 20:18:14 -0700 (PDT) MIME-Version: 1.0 References: <20230426034001.16-1-cuiyunhui@bytedance.com> In-Reply-To: From: =?UTF-8?B?6L+Q6L6J5bSU?= Date: Fri, 28 Apr 2023 11:17:56 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI To: Ard Biesheuvel Cc: Mark Rutland , ron minnich , Lorenzo Pieralisi , rafael@kernel.org, lenb@kernel.org, jdelvare@suse.com, 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 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=unavailable 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, Mark, On Thu, Apr 27, 2023 at 8:52=E2=80=AFPM Ard Biesheuvel wr= ote: > and the only combination we do not support is ACPI without EFI, as > ACPI on arm64 depends on the EFI memory map. > > What this patch seems to be proposing is a combination of all of > these, i.e., doing a pseudo-EFI direct kernel boot where the EFI > dependencies of ACPI are being fulfilled by ad-hoc descriptions passed > in via DT. > > I am concerned that this will result in a maintenance burden for Linux > with very little gain, so I feel we should not go down this road. Judging from the current kernel, getting acpi smbios, memmap tables is not just a way to have EFI, right? smbios:SMBIOS_ENTRY_POINT_SCAN_START acpi:CONFIG_ACPI_LEGACY_TABLES_LOOKUP memmap: e820 Our current situation is that coreboot does not support EFI, but supports f= dt, but we need to support ACPI, and riscv does not have a reserved address segment like x86 that can be used, so our current solution is to pass acpi and other tables through fdt. Based on this, do you have a better suggestion ? Thanks=EF=BC=8C Yunhui