[PATCH v3 0/4] cmd: acpi: correct handling of DSDT and FACS

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Dec 16 09:11:56 CET 2023


Fields X_FIRMWARE and X_DSDT in the FADT table must be 64bit.
Fix the definition in our include.

The 64bit fields X_FIRMWARE and X_DSDT take precedence over the respective
32bit fields. Consider this in the 'acpi list' and 'acpi dump' commands.
The fields only exist for FADT table revision 3 and above.

Don't fill unused fields FIRMWAE and DSDT.

Write an error if the hardware reduce flag is not set for non-x86 systems.

v3:
	fix subject lines of patches 1 and 4
	use map_to_sysmem for pointer to address conversion
v2:
	check FADT table revision
	correct dumping DSDT and FACS

Heinrich Schuchardt (4):
  acpi: use 64-bit addresses in FADT table
  cmd: acpi: fix listing DSDT and FACS
  cmd: acpi: check HW reduced flag in acpi list
  acpi: support 64bit in acpi_find_table for DSDT and FACS

 arch/x86/cpu/baytrail/acpi.c |  9 +++------
 arch/x86/cpu/quark/acpi.c    |  9 +++------
 arch/x86/cpu/tangier/acpi.c  |  9 +++------
 arch/x86/lib/acpi_table.c    |  9 ++-------
 cmd/acpi.c                   | 12 ++++++++++--
 include/acpi/acpi_table.h    |  6 ++----
 lib/acpi/acpi.c              | 29 ++++++++++++++++++++++++-----
 7 files changed, 47 insertions(+), 36 deletions(-)

-- 
2.40.1



More information about the U-Boot mailing list