U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] cmd: acpi: correct handling of DSDT and FACS
@ 2023-12-15 18:26 Heinrich Schuchardt
  2023-12-15 18:26 ` [PATCH v2 1/4] acpi: fix FADT table Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2023-12-15 18:26 UTC (permalink / raw)
  To: Simon Glass; +Cc: Bin Meng, Andy Shevchenko, u-boot, Heinrich Schuchardt

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.

v2:
	check FADT table revision
	correct dumping DSDT and FACS

Heinrich Schuchardt (4):
  acpi: fix FADT table
  cmd: acpi: fix listing DSDT and FACS
  cmd: acpi: check HW reduced flag in acpi list
  aci: fix acpi_find_table() for DSDT and FACS

 arch/x86/cpu/baytrail/acpi.c |  8 ++------
 arch/x86/cpu/quark/acpi.c    |  8 ++------
 arch/x86/cpu/tangier/acpi.c  |  8 ++------
 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, 44 insertions(+), 36 deletions(-)

-- 
2.40.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-16 18:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15 18:26 [PATCH v2 0/4] cmd: acpi: correct handling of DSDT and FACS Heinrich Schuchardt
2023-12-15 18:26 ` [PATCH v2 1/4] acpi: fix FADT table Heinrich Schuchardt
2023-12-15 18:44   ` Andy Shevchenko
2023-12-15 18:26 ` [PATCH v2 2/4] cmd: acpi: fix listing DSDT and FACS Heinrich Schuchardt
2023-12-15 18:26 ` [PATCH v2 3/4] cmd: acpi: check HW reduced flag in acpi list Heinrich Schuchardt
2023-12-16 18:46   ` Simon Glass
2023-12-15 18:26 ` [PATCH v2 4/4] aci: fix acpi_find_table() for DSDT and FACS Heinrich Schuchardt
2023-12-16 18:46   ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox