]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: acpi: update FADT revision check to 6.6
authorYufeng Wang <wangyufeng@kylinos.cn>
Sat, 4 Apr 2026 01:28:47 +0000 (19:28 -0600)
committerPaul Walmsley <pjw@kernel.org>
Sun, 5 Apr 2026 00:42:44 +0000 (18:42 -0600)
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.

Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn>
Reviewed-by: Sunil V L <sunilvl@oss.qualcomm.com>
Acked-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Yao Zi <me@ziyao.cc>
Link: https://patch.msgid.link/20260305091433.83983-1-r4o5m6e8o@163.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/kernel/acpi.c

index 26c018ebce03c57fe0a114d8a529d411b2ea5b3f..25da437f9ca9deb5c6604b7b148c5a48ff7eea51 100644 (file)
@@ -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);
 
        if (!(fadt->flags & ACPI_FADT_HW_REDUCED)) {