diff options
| author | Heinrich Schuchardt <[email protected]> | 2023-12-16 09:11:59 +0100 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2024-01-07 13:49:02 -0700 |
| commit | c95ade8dcd1882d756c43375e91020562bc3886b (patch) | |
| tree | 3bad9ae1e466f675c7727e4ac3862c749c4eb28d /cmd/acpi.c | |
| parent | c5924b1cd3a6eb980cea59e5f663bb614686b55d (diff) | |
cmd: acpi: check HW reduced flag in acpi list
On non x86 platforms the hardware reduce flag must be set in the FADT
table. Write an error message if the flag is missing.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Rebased on -next to use nomap, add hyphens:
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd/acpi.c')
| -rw-r--r-- | cmd/acpi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/acpi.c b/cmd/acpi.c index 1eca7fe7734..65caaa5c98e 100644 --- a/cmd/acpi.c +++ b/cmd/acpi.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> #include <display_options.h> +#include <log.h> #include <mapmem.h> #include <acpi/acpi_table.h> #include <asm/acpi_table.h> @@ -57,6 +58,9 @@ static void list_fadt(struct acpi_fadt *fadt) dump_hdr(nomap_sysmem(fadt->x_dsdt, 0)); else if (fadt->dsdt) dump_hdr(nomap_sysmem(fadt->dsdt, 0)); + if (!IS_ENABLED(CONFIG_X86) && + !(fadt->flags & ACPI_FADT_HW_REDUCED_ACPI)) + log_err("FADT not ACPI-hardware-reduced-compliant\n"); if (fadt->header.revision >= 3 && fadt->x_firmware_ctrl) dump_hdr(nomap_sysmem(fadt->x_firmware_ctrl, 0)); else if (fadt->firmware_ctrl) |
