Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14620050rwd; Sun, 25 Jun 2023 00:52:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WVE28Jhjg2aK0VZ3dM6z94JO4MkCqO9Kq3NfSuQhEcP2Sv+Xly4+e5ITFbUOeZfXXpapl X-Received: by 2002:a92:d590:0:b0:33c:5182:6d04 with SMTP id a16-20020a92d590000000b0033c51826d04mr27007548iln.7.1687679567092; Sun, 25 Jun 2023 00:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687679567; cv=none; d=google.com; s=arc-20160816; b=OoRKVp0mc7KyUhWQZqFKqGnBz1Z157mY0vkaoLfzFHdH+XU7p7kDshOUvOYrYeCPBH Ia6NtkpPqBoEgy5/0SWagNT0GISCSOyEgZ8lknwSpMF0b2ljmXhKdHy84OgReuiOIICp Pkzxe0vZ//EdNgq1BVQWm254rz6ggTvEhLex7AjCTDCnUG3bSyh3Vg15Etmlj4f8HexO gVhCx3wPmNAenz8yAs2kM55BVZaBXP9ufF9scpKvEuRVdqkkq45ezIibke8aKZvQ/wRo sL8MePzj3s07aWCzZuv62aXtGV/XnOYLDs4TCiHegiCKzdDFasAq4ryA/E9zQ7CRl7XM kXyA== 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=nMoaaCNx3twG1ycxl/WesfFQysfrMoD1rhufovtzPuY=; fh=qdqbdVuGVV0nh6piCIPZO+4VgDqK4I2oLWQkpgciyDE=; b=oIrbhf9vTKm2HCTFzHWU2sskjs2RiqbO0/65fCZ0p8Y8wV6mVGwGgQtUPQTIFE388j VmBZwe9/+b5F5KkeQnBc8MoIaPrD2quSmFijxB065WaNm29RHOOwBudo3UkziUYe6ist xJpPjKIVkK6dh7qlMjOACXvPcpbW9J1VTf6Ln+k7kTlCQtEM1p0TMHFaLPSiyzwMos5r R6Uc05DgnY4HMSwr+C538BGqSRp2Mr+XP98Esj+b2uIzKaQ4SvzQ3FxMrqrApDYCBvyG Z0IhHAKbOe7E3kggr3j7Tm3zuGScNb3js3riW85V7mGt48hzPUwCXkPhZl0FnYwnSga8 AkCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=WKO0z8TA; 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 bk13-20020a056a02028d00b0054fdce77666si2938066pgb.630.2023.06.25.00.52.33; Sun, 25 Jun 2023 00:52:47 -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=WKO0z8TA; 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 S230086AbjFYHdS (ORCPT + 99 others); Sun, 25 Jun 2023 03:33:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjFYHdR (ORCPT ); Sun, 25 Jun 2023 03:33:17 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2861B8 for ; Sun, 25 Jun 2023 00:33:15 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-307d20548adso1866751f8f.0 for ; Sun, 25 Jun 2023 00:33:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1687678394; x=1690270394; 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=nMoaaCNx3twG1ycxl/WesfFQysfrMoD1rhufovtzPuY=; b=WKO0z8TAF54B8Al8xnQcCe2yDCh/qZgFmcO0iS+D2LusLapd1YNCVnHuHqrdegAZbC 5/cZxh7fa5PH1qtVKaG1d+XgBH7RCc8uhAp7XJZnkwSECjtSHLA6Fu1D42DRrTIActu7 7p2Wg0RtrBEIvAIY0LA5rc9THNirqMF2qxZn3pfshsVwZqO6RUUToCzXvmBP9Hvvy/TV tzHSaql39LseaPK8tCB21srI32X548Wq1e/2bCOHz/MI2wxnGl0U0gITXIGuFLraCWqe 38MGjOywXh2cgaXGAIx35w4EEqZFLoGGdrYvsDFQ/HBNUE1JkxwY453XM3jY5R1Za2// dZjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687678394; x=1690270394; 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=nMoaaCNx3twG1ycxl/WesfFQysfrMoD1rhufovtzPuY=; b=frY8HX+bmAPxWMuZRU9Syw27RJMze8PQbL0H+iApZgQO6w9DLXbQhzK2+LIBkyLfJ9 bF1TeG+6dfwqXhO0K6t3cZirZAmjrhNP/5SItsgAYP4GZxDfL7km08NHlGNpJXbPoZj9 kZWvd+g5IedxWIxLvcEc/6vWzCc8QnCkw+8WzkKMHkT84RHEjODtKCJGHWK3AaP3Ru51 apBWyriHj/2Ca/Dyxm393Hni+QY0bgN5k0EHKaY4NiRrOaddrLLfXRx58eM/PbkGBhRo 05XkDG5ZTrJ0hZjHptyDhgFOsITy213z3jN51JD1bmXOJxPRAhCSt5aJ7ZsvB4zLmhGm qm+w== X-Gm-Message-State: AC+VfDw6Xw0e2hpDoUPOs+UVoKGwWTcFWkBMMIETzQtSWFYqaxe28lS+ SP89Q15WMVukksoQ3l/ZAzVHkAy0Iq532e4X3Ecz5g== X-Received: by 2002:adf:d092:0:b0:307:7f38:37f with SMTP id y18-20020adfd092000000b003077f38037fmr16714130wrh.66.1687678394167; Sun, 25 Jun 2023 00:33:14 -0700 (PDT) MIME-Version: 1.0 References: <20230426034001.16-1-cuiyunhui@bytedance.com> In-Reply-To: From: =?UTF-8?B?6L+Q6L6J5bSU?= Date: Sun, 25 Jun 2023 15:33:03 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI To: Ard Biesheuvel Cc: ron minnich , Mark Rutland , 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" 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 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 Sat, Jun 24, 2023 at 8:52=E2=80=AFPM Ard Biesheuvel wr= ote: > > How do you intend to provide the ACPI core with the memory attribute > information that it needs to access SystemMemory OpRegions? Regarding memory segments and attributes, our solution does not need to build a memmap table in coreboot like EFI to connect to linux ACPI core. Because the memory segment and attributes have been passed through the "memory" node and "reserved-memory" node attributes of DTS. For Linux, no matter what kind of memory attributes of the firmware, it is ultimately connected to the memblock module. So the memory attributes you consider can be done through the existing DTS (like Ron said before, Chrombook does everything through DTS). So can we come to a consensus? Then start reviewing the code? Thanks, Yunhui