summaryrefslogtreecommitdiff
path: root/src/Kconfig
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-06-07 10:45:59 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-06-14 19:27:19 +0000
commit0ad766c0d5b814d29866311278e7427d44925198 (patch)
tree1933d123657a20d175d18eb6802ac66fe1483bdd /src/Kconfig
parent6656f3151fee53b0f4ed552065aff9b0fddd68bc (diff)
acpi: Add a debug option to print out tables in ACPICA compatible hex
Sometimes systems don't boot to the OS due to wrong ACPI tables. Printing the tables in an ACPICA compatible format makes analysis of ACPI tables easier. The ACPICA format (acpidump, acpixtract) is the following: " FACS @ 0x0000000000000000 0000: 46 41 43 53 40 00 00 00 E8 24 00 00 00 00 00 00 FACS@....$...... 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0020: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ " To achieve analyze ACPI tables capture the coreboot log between "Printing ACPI in ACPICA compatible table" and "Done printing ACPI in ACPICA compatible table". Remove the prefix "[SPEW ] " and then call 'acpixtract -a dump' to extract all the tables. Then use 'iasl -d' on the .dat files to decompile the tables. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I7b5d879014563f7a2e1f70c45cf871ba72f142dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/75677 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Kconfig b/src/Kconfig
index f8d7f769bc..8e72f2deb5 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -1294,6 +1294,19 @@ config EM100
mainboard code supports this. On supported Intel platforms this works
by changing the settings in the descriptor.bin file.
+config DEBUG_ACPICA_COMPATIBLE
+ bool "Print out ACPI tables in ACPICA compatible format"
+ depends on HAVE_ACPI_TABLES
+ help
+ Select this to print out ACPI tables in an ACPICA compatible
+ format. Set the console loglevel to verbosity 'SPEW'.
+ To analyze ACPI tables capture the coreboot log between
+ "Printing ACPI in ACPICA compatible table" and "Done printing
+ ACPI in ACPICA compatible table".
+ Remove the prefix "[SPEW ] " and then issue 'acpixtract -a dump'
+ to extract all the tables. Then use 'iasl -d' on the .dat files
+ to decompile the tables.
+
endmenu
###############################################################################