Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9005756rwd; Wed, 21 Jun 2023 01:31:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WMtd7MIJ44QHLCgrcs0jQYcV5/5wt3dFMk90XVHAoz3ui53gArIm8G2agUmZVgNxxAZEL X-Received: by 2002:a92:c802:0:b0:33b:4d0c:e947 with SMTP id v2-20020a92c802000000b0033b4d0ce947mr13564440iln.0.1687336315124; Wed, 21 Jun 2023 01:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687336315; cv=none; d=google.com; s=arc-20160816; b=x7uoNlyiAMpnEqk+FmInSsb0XPb0Z+eOT+0LKIIYYD9euXqDbpPwWC2zjdaVXnjO/j f82Vmcj59NjLHyGJ2i+foKLQlrSzSWkAzybznHSeJi9vI/nQD2ESGQYrmjFTlBH0JJ7S n7ZQ2XUi9eO3QcjAuOea4UL5F0VFb+lJ6MfLiGmbEWD/y6O1TZ1QYTT4orqW7r9SVYyH 5Lq5i/bsgywnSx88uewuSDmWDn7FKSXJZR3dsadpf1sA3dOheCdXCkjhaeMWyGym+bI5 WbIY84MFB1V0tZcrHh2JCI7BmqYcytNwT+N5kYvthUCcsi0XXwqXS/535Czt1SuW4Jv2 P6Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Bdr99ZnsFuaWd7+2tODjIdBaqRk40Wcx2mkyWMKgAl8=; b=myt2/CaXJobKdVMCqq40mmb/nfZCbJMjTDw18/H0kYAV5cLc9iWKkTxyy8OIYZPFC2 bYmPmn/p4bcQ62VpcshvhMS5ezoy6Zm//A+ova9BnISHAYheLXvUgJ4UgHZrEWjV36V8 fRtviJBO/64ufi9dhkykaNjhcJouB7YMdV/3+rayGIzyTLf26TubFNR/rzC+MVlRWogx MLwvpPwr1Ua63ibJg8WxPOB0nRU57eCUgrDq8VxoPbrIhFvJNCdIrx5bGXoVPVwltks0 mtVaQMCt2/j2ofXqP+jqC5fnZoTrSCyNskap528ubgazlReA4mzDdnQdaMJ54HhssVAn yUaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=lFls4G02; 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 190-20020a6300c7000000b00553b54585e9si2275076pga.696.2023.06.21.01.31.40; Wed, 21 Jun 2023 01:31:55 -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=lFls4G02; 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 S229990AbjFUIEc (ORCPT + 99 others); Wed, 21 Jun 2023 04:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjFUIEa (ORCPT ); Wed, 21 Jun 2023 04:04:30 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14557FE for ; Wed, 21 Jun 2023 01:04:29 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f8f3786f20so66057555e9.2 for ; Wed, 21 Jun 2023 01:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1687334667; x=1689926667; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Bdr99ZnsFuaWd7+2tODjIdBaqRk40Wcx2mkyWMKgAl8=; b=lFls4G02TYGejcUGf7F2yKuKiyQwm27IZuxaz7ZicOiWbynZJ6m8AknpkLLU8fsxVN UFw6M408EmOALQQy3AxLMbgC5k695jz6oQz43eDNvkqg7v+wHHF7ZJyMrPC26sFbVV3i zv2gAmHagzux42h5Nhh/OYbvsQr3BNOI/eVgE/44pMs5ZWM3fnDUoUjrmWVEBeOuWVLE 7JOlsXCv7JWgaBTeGNmukewQHRsVfkX1AOuu7MNeDx2uMOi+S33HLzsYpGN5dgxuYNVC or6qB9a2VI+sLmCxPycuQgSmE/i2/qMrOa7ilqnBYYWrcJlUqBajh18WU8fTmJbGu68s 4iig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687334667; x=1689926667; h=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=Bdr99ZnsFuaWd7+2tODjIdBaqRk40Wcx2mkyWMKgAl8=; b=eMhw10khAlJ8bLXGKpBUwTCuALAOhdmMMe3tKYqXTIVnDdcIFq8nRjHyxlg0aYHfo6 PS0yuGHrXUONKsnIMwGUbxz6W8HhdKMETo9jWoR1dmIi1pSLx3k4LHIDt4ei2g79n7FS H7ZGDJBAfxKrOlb7DfEaF+YHoI91qz6UKAMI4kxAANK8N8aoLL8/rbvivDUUH/Og8YOS N10DEsstKpkcPzlqpIVRj+AITDWZSC3fNBw8/JC3Vdzp9hfAonNnx50fMdN0LOMy3na6 1sxDXYElb0eO8JoR+rQyYb6FtUt8fjQ1Zt/jBCBnSvHLrJf+9blTHnxkpFJ8AvlUUVT/ kSMQ== X-Gm-Message-State: AC+VfDx1hLzT3gHWX/u6imSR+xDmw/m5cMi9l47jEYe6tRHqkFFjmR4b XJmp4zZjjCs0IxzcDyM72F939tczJGByzYChbAZIoFlKJ4dxIic/nng= X-Received: by 2002:a7b:ca4e:0:b0:3f9:c00:51d3 with SMTP id m14-20020a7bca4e000000b003f90c0051d3mr9855397wml.13.1687334667559; Wed, 21 Jun 2023 01:04:27 -0700 (PDT) MIME-Version: 1.0 References: <20230426034001.16-1-cuiyunhui@bytedance.com> In-Reply-To: From: =?UTF-8?B?6L+Q6L6J5bSU?= Date: Wed, 21 Jun 2023 16:04:15 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI To: ron minnich Cc: Mark Rutland , Ard Biesheuvel , 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, geshijian@bytedance.com, weidong.wd@bytedance.com Content-Type: text/plain; charset="UTF-8" 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 Thanks for Ron's suggestions. Hi Ard, Mark, > > Is there some feeling here that it would be ok to restrict this discussion to risc-v, and not bring in ARM considerations. WDYT? > Hi Ard, Mark, Now the coreboot we are using does not support EFI and only supports one interface DTB. It seems that we have to pass the firmware information through DTB. From another point of view, ACPI and SMBIOS are common modules of the kernel, not only EFI, but also other interfaces can also be connected to this module, such as 0xF0000 for SMBIOS, CONFIG_ACPI_LEGACY_TABLES_LOOKUP for ACPI, this patch is also. We just use the DTB channel to add a few nodes to complete the transfer of firmware information, which does not interfere with DTS itself. We think it is unnecessary to add an ACPI-supporting framework under the fdt framework we discussed before. We only need one set of ACPI framework, but one more set will cause unnecessary trouble. So, let's move on to this patch, shall we? Thanks, Yunhui