From: Yao Zi <me@ziyao.cc>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
"rom.wang" <r4o5m6e8o@163.com>
Cc: linux-kernel@vger.kernel.org, Yufeng Wang <wangyufeng@kylinos.cn>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Conor Dooley <conor.dooley@microchip.com>,
Ryan Roberts <ryan.roberts@arm.com>,
Sean Chang <seanwascoding@gmail.com>,
Anshuman Khandual <anshuman.khandual@arm.com>,
linux-riscv@lists.infradead.org
Subject: Re: [PATCH] riscv: acpi: update FADT revision check to 6.6
Date: Thu, 5 Mar 2026 14:19:37 +0000 [thread overview]
Message-ID: <aamQ-Xdfuh6PramC@pie> (raw)
In-Reply-To: <f4ba06cb-a0d8-423c-b1bc-0257625eea00@canonical.com>
On Thu, Mar 05, 2026 at 02:00:50PM +0100, Heinrich Schuchardt wrote:
> On 3/5/26 10:14, rom.wang wrote:
> > From: Yufeng Wang <wangyufeng@kylinos.cn>
> >
> > ACPI 6.6 is required for RISC-V as it introduces RISC-V specific
> > tables such as RHCT (RISC-V Hart Capabilities Table) and
> > RIMT (RISC-V I/O Mapping Table).
> >
> > Update the FADT revision check from 6.5 to 6.6 and remove
> > the TODO comment since ACPI 6.6 has been officially released.
>
> If I understand the change correctly:
>
> After the patch QEMU v10.0.0 will stop to boot Linux via ACPI.
> QEMU v10.1.0 will be supported as it indicates revision 6.6.
> See function build_fadt_rev6() in qemu/hw/riscv/virt-acpi-build.c.
I don't think so, this condition only decides whether an error is
printed as firmware bug when the kernel encountering pre-6.6 FADTs,
and the rest boot process should remain untouched. So it in fact breaks
nothing.
> For Ubuntu this is not an issue as it is on QEMU 10.1 on recent releases
> (https://launchpad.net/ubuntu/+source/qemu).
> Fedora 43 also has QEMU 10.1
> (https://packages.fedoraproject.org/pkgs/qemu/qemu/).
> Suse Tumbleweed has 10.2.1 (https://software.opensuse.org/package/qemu).
>
> Stable Debian Trixie using 10.0 will be impacted
> (https://packages.debian.org/trixie/qemu-system-misc). Debian Testing has
> 10.2.
>
> Acked-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
>
> >
> > Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
> > ---
> > arch/riscv/kernel/acpi.c | 10 +++++-----
> > 1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/arch/riscv/kernel/acpi.c b/arch/riscv/kernel/acpi.c
> > index 71698ee11621..ff681db9f4f1 100644
> > --- a/arch/riscv/kernel/acpi.c
> > +++ b/arch/riscv/kernel/acpi.c
> > @@ -85,12 +85,12 @@ static int __init acpi_fadt_sanity_check(void)
> > * The revision in the table header is the FADT's Major revision. The
> > * FADT also has a minor revision, which is stored in the FADT itself.
> > *
> > - * TODO: Currently, we check for 6.5 as the minimum version to check
> > - * for HW_REDUCED flag. However, once RISC-V updates are released in
> > - * the ACPI spec, we need to update this check for exact minor revision
> > + * ACPI 6.6 is required for RISC-V as it introduces RISC-V specific
> > + * tables such as RHCT (RISC-V Hart Capabilities Table) and RIMT
> > + * (RISC-V I/O Mapping Table).
> > */
> > - if (table->revision < 6 || (table->revision == 6 && fadt->minor_revision < 5))
> > - pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 6.5+\n",
> > + if (table->revision < 6 || (table->revision == 6 && fadt->minor_revision < 6))
> > + pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 6.6+\n",
> > table->revision, fadt->minor_revision);
Here pr_err() is the only statement enclosed by the if.
> > if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) {
Reviewed-by: Yao Zi <me@ziyao.cc>
Regards,
Yao Zi
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Yao Zi <me@ziyao.cc>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
"rom.wang" <r4o5m6e8o@163.com>
Cc: linux-kernel@vger.kernel.org, Yufeng Wang <wangyufeng@kylinos.cn>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Conor Dooley <conor.dooley@microchip.com>,
Ryan Roberts <ryan.roberts@arm.com>,
Sean Chang <seanwascoding@gmail.com>,
Anshuman Khandual <anshuman.khandual@arm.com>,
linux-riscv@lists.infradead.org
Subject: Re: [PATCH] riscv: acpi: update FADT revision check to 6.6
Date: Thu, 5 Mar 2026 14:19:37 +0000 [thread overview]
Message-ID: <aamQ-Xdfuh6PramC@pie> (raw)
In-Reply-To: <f4ba06cb-a0d8-423c-b1bc-0257625eea00@canonical.com>
On Thu, Mar 05, 2026 at 02:00:50PM +0100, Heinrich Schuchardt wrote:
> On 3/5/26 10:14, rom.wang wrote:
> > From: Yufeng Wang <wangyufeng@kylinos.cn>
> >
> > ACPI 6.6 is required for RISC-V as it introduces RISC-V specific
> > tables such as RHCT (RISC-V Hart Capabilities Table) and
> > RIMT (RISC-V I/O Mapping Table).
> >
> > Update the FADT revision check from 6.5 to 6.6 and remove
> > the TODO comment since ACPI 6.6 has been officially released.
>
> If I understand the change correctly:
>
> After the patch QEMU v10.0.0 will stop to boot Linux via ACPI.
> QEMU v10.1.0 will be supported as it indicates revision 6.6.
> See function build_fadt_rev6() in qemu/hw/riscv/virt-acpi-build.c.
I don't think so, this condition only decides whether an error is
printed as firmware bug when the kernel encountering pre-6.6 FADTs,
and the rest boot process should remain untouched. So it in fact breaks
nothing.
> For Ubuntu this is not an issue as it is on QEMU 10.1 on recent releases
> (https://launchpad.net/ubuntu/+source/qemu).
> Fedora 43 also has QEMU 10.1
> (https://packages.fedoraproject.org/pkgs/qemu/qemu/).
> Suse Tumbleweed has 10.2.1 (https://software.opensuse.org/package/qemu).
>
> Stable Debian Trixie using 10.0 will be impacted
> (https://packages.debian.org/trixie/qemu-system-misc). Debian Testing has
> 10.2.
>
> Acked-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
>
> >
> > Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
> > ---
> > arch/riscv/kernel/acpi.c | 10 +++++-----
> > 1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/arch/riscv/kernel/acpi.c b/arch/riscv/kernel/acpi.c
> > index 71698ee11621..ff681db9f4f1 100644
> > --- a/arch/riscv/kernel/acpi.c
> > +++ b/arch/riscv/kernel/acpi.c
> > @@ -85,12 +85,12 @@ static int __init acpi_fadt_sanity_check(void)
> > * The revision in the table header is the FADT's Major revision. The
> > * FADT also has a minor revision, which is stored in the FADT itself.
> > *
> > - * TODO: Currently, we check for 6.5 as the minimum version to check
> > - * for HW_REDUCED flag. However, once RISC-V updates are released in
> > - * the ACPI spec, we need to update this check for exact minor revision
> > + * ACPI 6.6 is required for RISC-V as it introduces RISC-V specific
> > + * tables such as RHCT (RISC-V Hart Capabilities Table) and RIMT
> > + * (RISC-V I/O Mapping Table).
> > */
> > - if (table->revision < 6 || (table->revision == 6 && fadt->minor_revision < 5))
> > - pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 6.5+\n",
> > + if (table->revision < 6 || (table->revision == 6 && fadt->minor_revision < 6))
> > + pr_err(FW_BUG "Unsupported FADT revision %d.%d, should be 6.6+\n",
> > table->revision, fadt->minor_revision);
Here pr_err() is the only statement enclosed by the if.
> > if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) {
Reviewed-by: Yao Zi <me@ziyao.cc>
Regards,
Yao Zi
next prev parent reply other threads:[~2026-03-05 14:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 9:14 [PATCH] riscv: acpi: update FADT revision check to 6.6 rom.wang
2026-03-05 9:14 ` rom.wang
2026-03-05 13:00 ` Heinrich Schuchardt
2026-03-05 13:00 ` Heinrich Schuchardt
2026-03-05 14:19 ` Yao Zi [this message]
2026-03-05 14:19 ` Yao Zi
2026-03-11 8:45 ` Sunil V L
2026-03-11 8:45 ` Sunil V L
2026-03-23 23:42 ` Paul Walmsley
2026-03-23 23:42 ` Paul Walmsley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aamQ-Xdfuh6PramC@pie \
--to=me@ziyao.cc \
--cc=alex@ghiti.fr \
--cc=anshuman.khandual@arm.com \
--cc=aou@eecs.berkeley.edu \
--cc=conor.dooley@microchip.com \
--cc=heinrich.schuchardt@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=r4o5m6e8o@163.com \
--cc=ryan.roberts@arm.com \
--cc=seanwascoding@gmail.com \
--cc=wangyufeng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.