diff options
| -rw-r--r-- | tools/power/acpi/Makefile | 4 | ||||
| -rw-r--r-- | tools/power/acpi/acpidump.8 | 59 |
2 files changed, 63 insertions, 0 deletions
diff --git a/tools/power/acpi/Makefile b/tools/power/acpi/Makefile index dad79a69b679..6b9cf7a987c7 100644 --- a/tools/power/acpi/Makefile +++ b/tools/power/acpi/Makefile | |||
| @@ -12,3 +12,7 @@ CLEANFILES= $(PROG) | |||
| 12 | clean : | 12 | clean : |
| 13 | rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS)) *~ | 13 | rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS)) *~ |
| 14 | 14 | ||
| 15 | install : | ||
| 16 | install acpidump /usr/bin/acpidump | ||
| 17 | install acpidump.8 /usr/share/man/man8 | ||
| 18 | |||
diff --git a/tools/power/acpi/acpidump.8 b/tools/power/acpi/acpidump.8 new file mode 100644 index 000000000000..adfa99166e5e --- /dev/null +++ b/tools/power/acpi/acpidump.8 | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | .TH ACPIDUMP 8 | ||
| 2 | .SH NAME | ||
| 3 | acpidump \- Dump system's ACPI tables to an ASCII file. | ||
| 4 | .SH SYNOPSIS | ||
| 5 | .ft B | ||
| 6 | .B acpidump > acpidump.out | ||
| 7 | .SH DESCRIPTION | ||
| 8 | \fBacpidump \fP dumps the systems ACPI tables to an ASCII file | ||
| 9 | appropriate for attaching to a bug report. | ||
| 10 | |||
| 11 | Subsequently, they can be processed by utilities in the ACPICA package. | ||
| 12 | .SS Options | ||
| 13 | no options worth worrying about. | ||
| 14 | .PP | ||
| 15 | .SH EXAMPLE | ||
| 16 | |||
| 17 | .nf | ||
| 18 | # acpidump > acpidump.out | ||
| 19 | |||
| 20 | $ acpixtract -a acpidump.out | ||
| 21 | Acpi table [DSDT] - 15974 bytes written to DSDT.dat | ||
| 22 | Acpi table [FACS] - 64 bytes written to FACS.dat | ||
| 23 | Acpi table [FACP] - 116 bytes written to FACP.dat | ||
| 24 | Acpi table [APIC] - 120 bytes written to APIC.dat | ||
| 25 | Acpi table [MCFG] - 60 bytes written to MCFG.dat | ||
| 26 | Acpi table [SSDT] - 444 bytes written to SSDT1.dat | ||
| 27 | Acpi table [SSDT] - 439 bytes written to SSDT2.dat | ||
| 28 | Acpi table [SSDT] - 439 bytes written to SSDT3.dat | ||
| 29 | Acpi table [SSDT] - 439 bytes written to SSDT4.dat | ||
| 30 | Acpi table [SSDT] - 439 bytes written to SSDT5.dat | ||
| 31 | Acpi table [RSDT] - 76 bytes written to RSDT.dat | ||
| 32 | Acpi table [RSDP] - 20 bytes written to RSDP.dat | ||
| 33 | |||
| 34 | $ iasl -d *.dat | ||
| 35 | ... | ||
| 36 | .fi | ||
| 37 | creates *.dsl, a human readable form which can be edited | ||
| 38 | and compiled using iasl. | ||
| 39 | |||
| 40 | |||
| 41 | .SH NOTES | ||
| 42 | |||
| 43 | .B "acpidump " | ||
| 44 | must be run as root. | ||
| 45 | |||
| 46 | .SH REFERENCES | ||
| 47 | ACPICA: https://acpica.org/ | ||
| 48 | |||
| 49 | .SH FILES | ||
| 50 | .ta | ||
| 51 | .nf | ||
| 52 | /dev/mem | ||
| 53 | /sys/firmware/acpi/tables/dynamic/* | ||
| 54 | .fi | ||
| 55 | |||
| 56 | .PP | ||
| 57 | .SH AUTHOR | ||
| 58 | .nf | ||
| 59 | Written by Len Brown <len.brown@intel.com> | ||
