Message ID | 20230705114251.661-5-cuiyunhui@bytedance.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1817540vqx; Wed, 5 Jul 2023 05:07:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHnsXvJYNFz5UzMqt4KrNQGsbyY802XqX0HVo1D/3/70MZr3CDzylsV+YDMfRriDJ8hGzqo X-Received: by 2002:a05:6a20:4327:b0:12e:6e0f:535 with SMTP id h39-20020a056a20432700b0012e6e0f0535mr10257563pzk.34.1688558833228; Wed, 05 Jul 2023 05:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688558833; cv=none; d=google.com; s=arc-20160816; b=zw08hakzBzkFwYNb+8y13LatJ/rf4fTdxE16sajKlxatcOet3kWvjqP7xOSZG09WaS wENP98XAvtimKOKu/kg/viStdaCqCebnoqQYnUtTAXJ9tH8ViDvNnvoeP/+qRe+M0pn9 iiIL7IMjKS49rip8/PdU7ZCk1zb37rafxw/I3DS+mcaW4ZqxC4fM4ZAMeH3Qa7y8xfCv NJ0YYQ/kSPR/SjUmCbdbCS7JxjgiLwpbtvOG9+e7maSfjXMHW7ouy9wGRFlxp+omPxG8 7/P/uTB+JwsWnn26ue1LwbHOgWAONQArtyQcSMBM7zCi53bXUit+ypcxyxfQAFDYU8hH xpzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=v+ITQvowAXOXD8H4U5Ak65JYD6vo7/xikUkbFThVisc=; fh=6MypNsR2IyghVjP0g0LAprYETjg4GXMEDvyosK7gBgs=; b=RJmVEz62buWOVBWO7r/Ji1ziR+EwE1kJW6qqCGuSx2jSJ1OuiXGYmO5wqJmifL4gkm zSJllqEuJ6rCGdWdjRX960Cgmnf0nhjx09oZsZV6koF6PpTIZ2moQQfrB+ByYg4jebWI Lo3opbJxSPNllNQANHYahR37c5iykOlZbcbqSG1fDEEfUt9ejn4fYnvYe8zR9o47ns0z 7rTzoqerKVSxVb5XtNzvuNrnx10X43W3wnhsSkNj7PsIL+WrOdSsLU9PBwLB/BOgdi/h ZyRb/c+vviYTh4VOYS57expZyVC5vY56D1UcWSSwM8GQS8qz9qgtgGc7lS0qipPr0ddL 2axw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=JdOIUPCc; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a63e113000000b00553ced07d15si23693227pgh.368.2023.07.05.05.06.57; Wed, 05 Jul 2023 05:07:13 -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=JdOIUPCc; 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 S231493AbjGELpt (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 07:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231488AbjGELps (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 07:45:48 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D482E1BC3 for <linux-kernel@vger.kernel.org>; Wed, 5 Jul 2023 04:45:07 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-263121cd04eso2969444a91.2 for <linux-kernel@vger.kernel.org>; Wed, 05 Jul 2023 04:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1688557507; x=1691149507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=v+ITQvowAXOXD8H4U5Ak65JYD6vo7/xikUkbFThVisc=; b=JdOIUPCcVgRbkHL6lKC2twEROgaAL4yJ8ZwTGhCaGWbZQF9aFGaRYNPGYzOGyghzhg +xgjWXfn01h1SKYk1tCnUwym7zJigY1FB2L5nLJ9K9xF+V96OcBaG8t1Nvd3B2sJD/Ls 4hF63PIb9gGwLm7I9MhvBmuNYQeSd2x4nd+O5gtyCppqbUmkWKDhM+rfZ0oSgKLAnmyh ef/1usAQUA9CcwFdOCMOZiXTJMrJ22ZEPa8whSjBMypJAPO7J2gk5zs4iFCdj7s8Fcrk ie3LhugAEg6iQhA7aaj/0X0A/wWygp1ho0cDLjVJrYds9JfqZ7MvJZbTR5YNypqp+lHX hrow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688557507; x=1691149507; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v+ITQvowAXOXD8H4U5Ak65JYD6vo7/xikUkbFThVisc=; b=F5ihyu/b0AJ7qhDa9e53sHnJwTGAtuJxiJEDxjbzZKh3azlLt0Q4605bTxs019pjVV BHG20rUjkHG0CkSyyuFkHY560+ngRJTp+o4dMHeoRweAty2lOVPU/rIblEE4xpRJzGGu hF7gEWiRCkr13OYH7fsWAaWFccPA4vNaev1JTvLU5lhy6PKtsPS/Lb6/eyu/IpLQ3vol AawwTsFWwPwoVYqGQ0cMWbFfdSOukJu8jOEHXnuA95RWpY2GwbxsD6ChL4Objk80yXrw Eg+xuinWu5ImA9uyMzDCLBCi0JH04ZXfUsa8pI0DeNRF1e4NiM8c6KA/hWfomywgvZLE Crkw== X-Gm-Message-State: ABy/qLadAND+okTOFOdlqzcV3nYdJwuvTFsHFK5aj33Q+qY2Zh56+Vrs kNlsQ4bf9YWSp3T6lmz30med5QGOYm5H05dhKb2bjA== X-Received: by 2002:a17:90b:5109:b0:263:5c78:4b63 with SMTP id sc9-20020a17090b510900b002635c784b63mr12763480pjb.45.1688557506871; Wed, 05 Jul 2023 04:45:06 -0700 (PDT) Received: from PF2E59YH-BKX.inc.bytedance.com ([61.213.176.5]) by smtp.gmail.com with ESMTPSA id 3-20020a17090a194300b00263f6687690sm1177900pjh.18.2023.07.05.04.45.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 04:45:06 -0700 (PDT) From: Yunhui Cui <cuiyunhui@bytedance.com> To: conor@kernel.org, sunilvl@ventanamicro.com, ardb@kernel.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, rminnich@gmail.com, mark.rutland@arm.com, lpieralisi@kernel.org, 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, cuiyunhui@bytedance.com Subject: [PATCH v3 4/4] dt-bindings: firmware: Document ffitbl binding Date: Wed, 5 Jul 2023 19:42:51 +0800 Message-Id: <20230705114251.661-5-cuiyunhui@bytedance.com> X-Mailer: git-send-email 2.37.3.windows.1 In-Reply-To: <20230705114251.661-1-cuiyunhui@bytedance.com> References: <20230705114251.661-1-cuiyunhui@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770582267482963147?= X-GMAIL-MSGID: =?utf-8?q?1770582267482963147?= |
Series |
Obtain SMBIOS and ACPI entry from FFI
|
|
Commit Message
yunhui cui
July 5, 2023, 11:42 a.m. UTC
Add the description for ffitbl subnode.
Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
---
.../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 28 insertions(+)
create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt
Comments
Hey, On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: > Add the description for ffitbl subnode. > > Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> > --- > .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 28 insertions(+) > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > > diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt > new file mode 100644 > index 000000000000..c42368626199 > --- /dev/null > +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt Firstly, new dt-bindings need to be done in yaml, not in text form. Secondly, you didn't re-run get_maintainer.pl after adding this binding, so you have not CCed any of the other dt-binding maintainers nor the devicetree mailing list. > @@ -0,0 +1,27 @@ > +FFI(FDT FIRMWARE INTERFACE) driver > + > +Required properties: > + - entry : acpi or smbios root pointer, u64 > + - reg : acpi or smbios version, u32 Please go look at any other dt-binding (or the example schema) as to how these properties should be used. A "reg" certainly should not be being used to store the revision... Cheers, Conor. > + > +Some bootloaders, such as Coreboot do not support EFI, > +only devicetree and some arches do not have a reserved > +address segment. Add "ffitbl" subnode to obtain ACPI RSDP > +and SMBIOS entry. > +This feature is known as FDT Firmware Interface (FFI). > + > +Example: > + ffitbl { > + > + smbios { > + entry = ""; > + reg = < 0x03 >; > + > + } > + acpi { > + entry = ""; > + reg = < 0x06 >; > + > + } > + } > + > diff --git a/MAINTAINERS b/MAINTAINERS > index 9b886ef36587..008257e55062 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -7874,6 +7874,7 @@ F: include/linux/efi*.h > FDT FIRMWARE INTERFACE (FFI) > M: Yunhui Cui cuiyunhui@bytedance.com > S: Maintained > +F: Documentation/devicetree/bindings/firmware/ffitbl.txt > F: drivers/firmware/ffi.c > F: include/linux/ffi.h > > -- > 2.20.1 >
Hi Conor, Added dts Maintainers, On Wed, Jul 5, 2023 at 11:07 PM Conor Dooley <conor@kernel.org> wrote: > > Hey, > > On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: > > Add the description for ffitbl subnode. > > > > Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> > > --- > > .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ > > MAINTAINERS | 1 + > > 2 files changed, 28 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > > > > diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt > > new file mode 100644 > > index 000000000000..c42368626199 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt > > Firstly, new dt-bindings need to be done in yaml, not in text form. > Secondly, you didn't re-run get_maintainer.pl after adding this binding, > so you have not CCed any of the other dt-binding maintainers nor the > devicetree mailing list. Re-run get_maintainer.pl and added maintainers into the maillist. emm.. There is some *txt in Documentation/devicetree/bindings/firmware/, isn't it? > > > @@ -0,0 +1,27 @@ > > > +FFI(FDT FIRMWARE INTERFACE) driver > > + > > +Required properties: > > + - entry : acpi or smbios root pointer, u64 > > + - reg : acpi or smbios version, u32 > > Please go look at any other dt-binding (or the example schema) as to how > these properties should be used. A "reg" certainly should not be being > used to store the revision... Okay, If so,I'll add a property "version" into the dts instead of "reg", just like, WDYT? ffitbl { smbios { entry = ""; version = < 0x02 >; } acpi { entry = ""; version = < 0x06 >; } } > > Cheers, > Conor. > > > + > > +Some bootloaders, such as Coreboot do not support EFI, > > +only devicetree and some arches do not have a reserved > > +address segment. Add "ffitbl" subnode to obtain ACPI RSDP > > +and SMBIOS entry. > > +This feature is known as FDT Firmware Interface (FFI). > > + > > +Example: > > + ffitbl { > > + > > + smbios { > > + entry = ""; > > + reg = < 0x03 >; > > + > > + } > > + acpi { > > + entry = ""; > > + reg = < 0x06 >; > > + > > + } > > + } > > + > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 9b886ef36587..008257e55062 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -7874,6 +7874,7 @@ F: include/linux/efi*.h > > FDT FIRMWARE INTERFACE (FFI) > > M: Yunhui Cui cuiyunhui@bytedance.com > > S: Maintained > > +F: Documentation/devicetree/bindings/firmware/ffitbl.txt > > F: drivers/firmware/ffi.c > > F: include/linux/ffi.h > > > > -- > > 2.20.1 > > Thanks, Yunhui
On 06/07/2023 05:43, 运辉崔 wrote: > Hi Conor, > > Added dts Maintainers, > > On Wed, Jul 5, 2023 at 11:07 PM Conor Dooley <conor@kernel.org> wrote: >> >> Hey, >> >> On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: >>> Add the description for ffitbl subnode. >>> >>> Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> >>> --- >>> .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ >>> MAINTAINERS | 1 + >>> 2 files changed, 28 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt >>> >>> diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt >>> new file mode 100644 >>> index 000000000000..c42368626199 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt >> >> Firstly, new dt-bindings need to be done in yaml, not in text form. >> Secondly, you didn't re-run get_maintainer.pl after adding this binding, >> so you have not CCed any of the other dt-binding maintainers nor the >> devicetree mailing list. > > Re-run get_maintainer.pl and added maintainers into the maillist. This does not work like this. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. You missed at least DT list (maybe more), so this won't be tested by our tools. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested. Please kindly resend and include all necessary To/Cc entries. > emm.. There is some *txt in > Documentation/devicetree/bindings/firmware/, isn't it? And what about it? Do you claim they were added recently? Best regards, Krzysztof
Hi Krzysztof, On Thu, Jul 6, 2023 at 2:01 PM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 06/07/2023 05:43, 运辉崔 wrote: > > Hi Conor, > > > > Added dts Maintainers, > > > > On Wed, Jul 5, 2023 at 11:07 PM Conor Dooley <conor@kernel.org> wrote: > >> > >> Hey, > >> > >> On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: > >>> Add the description for ffitbl subnode. > >>> > >>> Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> > >>> --- > >>> .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ > >>> MAINTAINERS | 1 + > >>> 2 files changed, 28 insertions(+) > >>> create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > >>> > >>> diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt > >>> new file mode 100644 > >>> index 000000000000..c42368626199 > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt > >> > >> Firstly, new dt-bindings need to be done in yaml, not in text form. > >> Secondly, you didn't re-run get_maintainer.pl after adding this binding, > >> so you have not CCed any of the other dt-binding maintainers nor the > >> devicetree mailing list. > > > > Re-run get_maintainer.pl and added maintainers into the maillist. > > > This does not work like this. > > Please use scripts/get_maintainers.pl to get a list of necessary people > and lists to CC. It might happen, that command when run on an older > kernel, gives you outdated entries. Therefore please be sure you base > your patches on recent Linux kernel. > > You missed at least DT list (maybe more), so this won't be tested by our > tools. Performing review on untested code might be a waste of time, thus > I will skip this patch entirely till you follow the process allowing the > patch to be tested. > > Please kindly resend and include all necessary To/Cc entries. This set of patches is applied on the tag next-20230706, and to generate the mail list by scripts/get_maintainers.pl on the tag ./scripts/get_maintainer.pl ../riscv/linux/v3-0004-dt-bindings-firmware-Document-ffitbl-binding.patch Yunhui Cui cuiyunhui@bytedance.com (maintainer:FDT FIRMWARE INTERFACE (FFI)) Rob Herring <robh+dt@kernel.org> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Conor Dooley <conor+dt@kernel.org> (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) linux-kernel@vger.kernel.org (open list) What am I missing ? > > emm.. There is some *txt in > > Documentation/devicetree/bindings/firmware/, isn't it? > > And what about it? Do you claim they were added recently? > > Best regards, > Krzysztof > Thanks, Yunhui
On 06/07/2023 08:24, 运辉崔 wrote: > Hi Krzysztof, > > On Thu, Jul 6, 2023 at 2:01 PM Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> On 06/07/2023 05:43, 运辉崔 wrote: >>> Hi Conor, >>> >>> Added dts Maintainers, >>> >>> On Wed, Jul 5, 2023 at 11:07 PM Conor Dooley <conor@kernel.org> wrote: >>>> >>>> Hey, >>>> >>>> On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: >>>>> Add the description for ffitbl subnode. >>>>> >>>>> Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> >>>>> --- >>>>> .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ >>>>> MAINTAINERS | 1 + >>>>> 2 files changed, 28 insertions(+) >>>>> create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt >>>>> new file mode 100644 >>>>> index 000000000000..c42368626199 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt >>>> >>>> Firstly, new dt-bindings need to be done in yaml, not in text form. >>>> Secondly, you didn't re-run get_maintainer.pl after adding this binding, >>>> so you have not CCed any of the other dt-binding maintainers nor the >>>> devicetree mailing list. >>> >>> Re-run get_maintainer.pl and added maintainers into the maillist. >> >> >> This does not work like this. >> >> Please use scripts/get_maintainers.pl to get a list of necessary people >> and lists to CC. It might happen, that command when run on an older >> kernel, gives you outdated entries. Therefore please be sure you base >> your patches on recent Linux kernel. >> >> You missed at least DT list (maybe more), so this won't be tested by our >> tools. Performing review on untested code might be a waste of time, thus >> I will skip this patch entirely till you follow the process allowing the >> patch to be tested. >> >> Please kindly resend and include all necessary To/Cc entries. > > This set of patches is applied on the tag next-20230706, and to > generate the mail list by scripts/get_maintainers.pl on the tag > > ./scripts/get_maintainer.pl > ../riscv/linux/v3-0004-dt-bindings-firmware-Document-ffitbl-binding.patch > Yunhui Cui cuiyunhui@bytedance.com (maintainer:FDT FIRMWARE INTERFACE (FFI)) > Rob Herring <robh+dt@kernel.org> (maintainer:OPEN FIRMWARE AND > FLATTENED DEVICE TREE BINDINGS) > Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> > (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) > Conor Dooley <conor+dt@kernel.org> (maintainer:OPEN FIRMWARE AND > FLATTENED DEVICE TREE BINDINGS) > devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED > DEVICE TREE BINDINGS) > linux-kernel@vger.kernel.org (open list) > > What am I missing ? I did not receive the original patch. Neither did Patchwork. You cannot just reply to some comment and hope it will fix something. We don't have this patch simply. Best regards, Krzysztof
On Thu, Jul 06, 2023 at 11:43:55AM +0800, 运辉崔 wrote: > On Wed, Jul 5, 2023 at 11:07 PM Conor Dooley <conor@kernel.org> wrote: > > On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: > > > Add the description for ffitbl subnode. > > > > > > Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> > > > --- > > > .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ > > > MAINTAINERS | 1 + > > > 2 files changed, 28 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > > > > > > diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt > > > new file mode 100644 > > > index 000000000000..c42368626199 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt > > > > Firstly, new dt-bindings need to be done in yaml, not in text form. > > Secondly, you didn't re-run get_maintainer.pl after adding this binding, > > so you have not CCed any of the other dt-binding maintainers nor the > > devicetree mailing list. > > Re-run get_maintainer.pl and added maintainers into the maillist. > emm.. There is some *txt in > Documentation/devicetree/bindings/firmware/, isn't it? There might be, but that's not an excuse for adding _new_ ones, sorry. > > > +FFI(FDT FIRMWARE INTERFACE) driver > > > + > > > +Required properties: > > > + - entry : acpi or smbios root pointer, u64 > > > + - reg : acpi or smbios version, u32 > > > > Please go look at any other dt-binding (or the example schema) as to how > > these properties should be used. A "reg" certainly should not be being > > used to store the revision... > > Okay, If so,I'll add a property "version" into the dts instead of > "reg", just like, WDYT? > ffitbl { Firstly, I'd much rather you spelt this out, like "ffi-table". > smbios { > entry = ""; I still don't understand why "entry", which is an address, is being represented by an empty string. I also don't really get why you have not used "reg" to describe its start address and size. > version = < 0x02 >; Probably missing a vendor prefix, and the spaces are unusual, but better than it was, yes. > } > acpi { > entry = ""; > version = < 0x06 >; > } > } Thanks, Conor.
Hi Krzysztof, On Thu, Jul 6, 2023 at 2:41 PM Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 06/07/2023 08:24, 运辉崔 wrote: > > Hi Krzysztof, > > > > On Thu, Jul 6, 2023 at 2:01 PM Krzysztof Kozlowski > > <krzysztof.kozlowski@linaro.org> wrote: > >> > >> On 06/07/2023 05:43, 运辉崔 wrote: > >>> Hi Conor, > >>> > >>> Added dts Maintainers, > >>> > >>> On Wed, Jul 5, 2023 at 11:07 PM Conor Dooley <conor@kernel.org> wrote: > >>>> > >>>> Hey, > >>>> > >>>> On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: > >>>>> Add the description for ffitbl subnode. > >>>>> > >>>>> Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> > >>>>> --- > >>>>> .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ > >>>>> MAINTAINERS | 1 + > >>>>> 2 files changed, 28 insertions(+) > >>>>> create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > >>>>> > >>>>> diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt > >>>>> new file mode 100644 > >>>>> index 000000000000..c42368626199 > >>>>> --- /dev/null > >>>>> +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt > >>>> > >>>> Firstly, new dt-bindings need to be done in yaml, not in text form. > >>>> Secondly, you didn't re-run get_maintainer.pl after adding this binding, > >>>> so you have not CCed any of the other dt-binding maintainers nor the > >>>> devicetree mailing list. > >>> > >>> Re-run get_maintainer.pl and added maintainers into the maillist. > >> > >> > >> This does not work like this. > >> > >> Please use scripts/get_maintainers.pl to get a list of necessary people > >> and lists to CC. It might happen, that command when run on an older > >> kernel, gives you outdated entries. Therefore please be sure you base > >> your patches on recent Linux kernel. > >> > >> You missed at least DT list (maybe more), so this won't be tested by our > >> tools. Performing review on untested code might be a waste of time, thus > >> I will skip this patch entirely till you follow the process allowing the > >> patch to be tested. > >> > >> Please kindly resend and include all necessary To/Cc entries. > > > > This set of patches is applied on the tag next-20230706, and to > > generate the mail list by scripts/get_maintainers.pl on the tag > > > > ./scripts/get_maintainer.pl > > ../riscv/linux/v3-0004-dt-bindings-firmware-Document-ffitbl-binding.patch > > Yunhui Cui cuiyunhui@bytedance.com (maintainer:FDT FIRMWARE INTERFACE (FFI)) > > Rob Herring <robh+dt@kernel.org> (maintainer:OPEN FIRMWARE AND > > FLATTENED DEVICE TREE BINDINGS) > > Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> > > (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) > > Conor Dooley <conor+dt@kernel.org> (maintainer:OPEN FIRMWARE AND > > FLATTENED DEVICE TREE BINDINGS) > > devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED > > DEVICE TREE BINDINGS) > > linux-kernel@vger.kernel.org (open list) > > > > What am I missing ? > > I did not receive the original patch. Neither did Patchwork. You cannot > just reply to some comment and hope it will fix something. We don't have > this patch simply. Oh, I see, you only received the middle mail, and did not receive the patch. Okay, I'll post it after the next version is updated. > > Best regards, > Krzysztof > Thanks, Yunhui
Hi Conor, On Thu, Jul 6, 2023 at 2:45 PM Conor Dooley <conor.dooley@microchip.com> wrote: > > On Thu, Jul 06, 2023 at 11:43:55AM +0800, 运辉崔 wrote: > > On Wed, Jul 5, 2023 at 11:07 PM Conor Dooley <conor@kernel.org> wrote: > > > On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: > > > > Add the description for ffitbl subnode. > > > > > > > > Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> > > > > --- > > > > .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ > > > > MAINTAINERS | 1 + > > > > 2 files changed, 28 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > > > > > > > > diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt > > > > new file mode 100644 > > > > index 000000000000..c42368626199 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt > > > > > > Firstly, new dt-bindings need to be done in yaml, not in text form. > > > Secondly, you didn't re-run get_maintainer.pl after adding this binding, > > > so you have not CCed any of the other dt-binding maintainers nor the > > > devicetree mailing list. > > > > Re-run get_maintainer.pl and added maintainers into the maillist. > > emm.. There is some *txt in > > Documentation/devicetree/bindings/firmware/, isn't it? > > There might be, but that's not an excuse for adding _new_ ones, sorry. Okay, I'll update it on v4. > > > > +FFI(FDT FIRMWARE INTERFACE) driver > > > > + > > > > +Required properties: > > > > + - entry : acpi or smbios root pointer, u64 > > > > + - reg : acpi or smbios version, u32 > > > > > > Please go look at any other dt-binding (or the example schema) as to how > > > these properties should be used. A "reg" certainly should not be being > > > used to store the revision... > > > > Okay, If so,I'll add a property "version" into the dts instead of > > "reg", just like, WDYT? > > ffitbl { > > Firstly, I'd much rather you spelt this out, like "ffi-table". > > > smbios { > > entry = ""; > > I still don't understand why "entry", which is an address, is being > represented by an empty string. > I also don't really get why you have not used "reg" to describe its > start address and size. > > > version = < 0x02 >; > > Probably missing a vendor prefix, and the spaces are unusual, but better > than it was, yes. Based on your review, I plan to modify it as follows: ffi-table { #address-cells = <2>; #size-cells = <0>; smbios@entry1 { compatible = "smbios"; reg = <entry1>; version = <2>; }; smbios@entry2 { compatible = "smbios"; reg = <entry2>; version = <3>; }; acpi@entry { compatible = "acpi"; reg = <entry>; version = <6>; }; } The reason why #size-cells is 0 is because only one item is needed, #address-cells = <2>; because two u32 are needed to express the 64-bit address. The memory for the SMBIOS table itself will be preserved in "reserved memory" , so we don't have to worry about this piece of memory getting corrupted. ACPI as well. WDYT? > > } > > acpi { > > entry = ""; > > version = < 0x06 >; > > } > > } > > Thanks, > Conor. Thanks, Yunhui
Hey, On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: > Add the description for ffitbl subnode. > > Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> > --- > .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 28 insertions(+) > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > > diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt > new file mode 100644 > index 000000000000..c42368626199 > --- /dev/null > +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt > @@ -0,0 +1,27 @@ > +FFI(FDT FIRMWARE INTERFACE) driver > + > +Required properties: > + - entry : acpi or smbios root pointer, u64 > + - reg : acpi or smbios version, u32 > + > +Some bootloaders, such as Coreboot do not support EFI, > +only devicetree and some arches do not have a reserved > +address segment. Add "ffitbl" subnode to obtain ACPI RSDP > +and SMBIOS entry. Since the conversation on this stuff all seems to be going absolutely nowhere, the ACPI portion of this is intended for use on RISC-V in violation of the RISC-V ACPI specs. It also goes against the requirements of the platform spec. Quoting from [1]: | > Just so we're all on the same page, I just now asked Mark Himelstein | > of RISC-V International if there is anything in RISC-V standards that | > requires UEFI, and the answer is a solid "no." | | Huh? Firstly, running off to invoke RVI is not productive - they don't | maintain the various operating system kernels etc. | Secondly, that does not seem to be true. The platform spec mandates UEFI | for the OS-A server platform, alongside ACPI: | https://github.com/riscv/riscv-platform-specs/blob/main/riscv-platform-spec.adoc#32-boot-process | and the OS-A embedded platform needs to comply with EBBR & use DT: | https://github.com/riscv/riscv-platform-specs/blob/main/riscv-platform-spec.adoc#32-boot-process | | EBBR does say that systems must not provide both ACPI and DT to the OS | loader, but I am far from an expert on these kind of things & am not | sure where something like this where the DT "contains" ACPI would stand. | | The RISC-V ACPI spec also says "UEFI firmware is mandatory to support | ACPI": | https://github.com/riscv-non-isa/riscv-acpi/blob/master/riscv-acpi-guidance.adoc NAKed-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor. [1] - https://lore.kernel.org/linux-riscv/20230707-attach-conjuror-306d967347ce@wendy/
Hi Conor, On Sat, Jul 8, 2023 at 12:53 AM 葛士建 <geshijian@bytedance.com> wrote: > > > > > On Sat, Jul 8, 2023 at 12:16 AM Conor Dooley <conor@kernel.org> wrote: >> >> Hey, >> >> On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: >> > Add the description for ffitbl subnode. >> > >> > Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> >> > --- >> > .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ >> > MAINTAINERS | 1 + >> > 2 files changed, 28 insertions(+) >> > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt >> > >> > diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt >> > new file mode 100644 >> > index 000000000000..c42368626199 >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt >> > @@ -0,0 +1,27 @@ >> > +FFI(FDT FIRMWARE INTERFACE) driver >> > + >> > +Required properties: >> > + - entry : acpi or smbios root pointer, u64 >> > + - reg : acpi or smbios version, u32 >> > + >> > +Some bootloaders, such as Coreboot do not support EFI, >> > +only devicetree and some arches do not have a reserved >> > +address segment. Add "ffitbl" subnode to obtain ACPI RSDP >> > +and SMBIOS entry. >> >> Since the conversation on this stuff all seems to be going absolutely >> nowhere, the ACPI portion of this is intended for use on RISC-V in >> violation of the RISC-V ACPI specs. It also goes against the >> requirements of the platform spec. Quoting from [1]: >> >> | > Just so we're all on the same page, I just now asked Mark Himelstein >> | > of RISC-V International if there is anything in RISC-V standards that >> | > requires UEFI, and the answer is a solid "no." >> | >> | Huh? Firstly, running off to invoke RVI is not productive - they don't >> | maintain the various operating system kernels etc. >> | Secondly, that does not seem to be true. The platform spec mandates UEFI >> | for the OS-A server platform, alongside ACPI: >> | https://github.com/riscv/riscv-platform-specs/blob/main/riscv-platform-spec.adoc#32-boot-process >> | and the OS-A embedded platform needs to comply with EBBR & use DT: >> | https://github.com/riscv/riscv-platform-specs/blob/main/riscv-platform-spec.adoc#32-boot-process >> | >> | EBBR does say that systems must not provide both ACPI and DT to the OS >> | loader, but I am far from an expert on these kind of things & am not >> | sure where something like this where the DT "contains" ACPI would stand. >> | >> | The RISC-V ACPI spec also says "UEFI firmware is mandatory to support >> | ACPI": >> | https://github.com/riscv-non-isa/riscv-acpi/blob/master/riscv-acpi-guidance.adoc > > UEFI firmware is mandatory to support ACPI and coreboot is an option to support ACPI as well. i think it works well for both, I don't think UEFI and ACPI need to be binding together, each UEFI and ACPI also works well with other solutions. Thanks for shijian(Nill)'s suggestions. Hi Conor, Thank you very much for your valuable comments on this set of patch codes, which are very helpful. Judging from the current specifications, maybe yes, you can NACK, but it's better not to rush to conclusions. The so-called specifications represent the ideas of FFI opponents. What we have to do is to discuss with them and get an effective consensus, so as to achieve the purpose of updating the specification. >> >> >> >> NAKed-by: Conor Dooley <conor.dooley@microchip.com> >> >> Cheers, >> Conor. >> >> [1] - https://lore.kernel.org/linux-riscv/20230707-attach-conjuror-306d967347ce@wendy/ Thanks, Yunhui
On 8 July 2023 04:04:05 IST, "运辉崔" <cuiyunhui@bytedance.com> wrote: >Hi Conor, > >On Sat, Jul 8, 2023 at 12:53 AM 葛士建 <geshijian@bytedance.com> wrote: >> >> >> >> >> On Sat, Jul 8, 2023 at 12:16 AM Conor Dooley <conor@kernel.org> wrote: >>> >>> Hey, >>> >>> On Wed, Jul 05, 2023 at 07:42:51PM +0800, Yunhui Cui wrote: >>> > Add the description for ffitbl subnode. >>> > >>> > Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com> >>> > --- >>> > .../devicetree/bindings/firmware/ffitbl.txt | 27 +++++++++++++++++++ >>> > MAINTAINERS | 1 + >>> > 2 files changed, 28 insertions(+) >>> > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt >>> > >>> > diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt >>> > new file mode 100644 >>> > index 000000000000..c42368626199 >>> > --- /dev/null >>> > +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt >>> > @@ -0,0 +1,27 @@ >>> > +FFI(FDT FIRMWARE INTERFACE) driver >>> > + >>> > +Required properties: >>> > + - entry : acpi or smbios root pointer, u64 >>> > + - reg : acpi or smbios version, u32 >>> > + >>> > +Some bootloaders, such as Coreboot do not support EFI, >>> > +only devicetree and some arches do not have a reserved >>> > +address segment. Add "ffitbl" subnode to obtain ACPI RSDP >>> > +and SMBIOS entry. >>> >>> Since the conversation on this stuff all seems to be going absolutely >>> nowhere, the ACPI portion of this is intended for use on RISC-V in >>> violation of the RISC-V ACPI specs. It also goes against the >>> requirements of the platform spec. Quoting from [1]: >>> >>> | > Just so we're all on the same page, I just now asked Mark Himelstein >>> | > of RISC-V International if there is anything in RISC-V standards that >>> | > requires UEFI, and the answer is a solid "no." >>> | >>> | Huh? Firstly, running off to invoke RVI is not productive - they don't >>> | maintain the various operating system kernels etc. >>> | Secondly, that does not seem to be true. The platform spec mandates UEFI >>> | for the OS-A server platform, alongside ACPI: >>> | https://github.com/riscv/riscv-platform-specs/blob/main/riscv-platform-spec.adoc#32-boot-process >>> | and the OS-A embedded platform needs to comply with EBBR & use DT: >>> | https://github.com/riscv/riscv-platform-specs/blob/main/riscv-platform-spec.adoc#32-boot-process >>> | >>> | EBBR does say that systems must not provide both ACPI and DT to the OS >>> | loader, but I am far from an expert on these kind of things & am not >>> | sure where something like this where the DT "contains" ACPI would stand. >>> | >>> | The RISC-V ACPI spec also says "UEFI firmware is mandatory to support >>> | ACPI": >>> | https://github.com/riscv-non-isa/riscv-acpi/blob/master/riscv-acpi-guidance.adoc >> >> UEFI firmware is mandatory to support ACPI and coreboot is an option to support ACPI as well. i think it works well for both, I don't think UEFI and ACPI need to be binding together, each UEFI and ACPI also works well with other solutions. > >Thanks for shijian(Nill)'s suggestions. > >Hi Conor, >Thank you very much for your valuable comments on this set of patch >codes, which are very helpful. > >Judging from the current specifications, maybe yes, you can NACK, but >it's better not to rush to conclusions. Naks are not permanent, I can remove it in the future if the specs change. >The so-called specifications represent the ideas of FFI opponents. "So-called"? They _are_ the specs. >What we have to do is to discuss with them and get an effective >consensus, so as to achieve the purpose of updating the specification. Yes, but that needs to be done on tech-brs, not lkml. Thanks, Conor. > >>> >>> >>> >>> NAKed-by: Conor Dooley <conor.dooley@microchip.com> >>> >>> Cheers, >>> Conor. >>> >>> [1] - https://lore.kernel.org/linux-riscv/20230707-attach-conjuror-306d967347ce@wendy/ > >Thanks, >Yunhui
diff --git a/Documentation/devicetree/bindings/firmware/ffitbl.txt b/Documentation/devicetree/bindings/firmware/ffitbl.txt new file mode 100644 index 000000000000..c42368626199 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/ffitbl.txt @@ -0,0 +1,27 @@ +FFI(FDT FIRMWARE INTERFACE) driver + +Required properties: + - entry : acpi or smbios root pointer, u64 + - reg : acpi or smbios version, u32 + +Some bootloaders, such as Coreboot do not support EFI, +only devicetree and some arches do not have a reserved +address segment. Add "ffitbl" subnode to obtain ACPI RSDP +and SMBIOS entry. +This feature is known as FDT Firmware Interface (FFI). + +Example: + ffitbl { + + smbios { + entry = ""; + reg = < 0x03 >; + + } + acpi { + entry = ""; + reg = < 0x06 >; + + } + } + diff --git a/MAINTAINERS b/MAINTAINERS index 9b886ef36587..008257e55062 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7874,6 +7874,7 @@ F: include/linux/efi*.h FDT FIRMWARE INTERFACE (FFI) M: Yunhui Cui cuiyunhui@bytedance.com S: Maintained +F: Documentation/devicetree/bindings/firmware/ffitbl.txt F: drivers/firmware/ffi.c F: include/linux/ffi.h