.\" ACPI (ACPI Package) .\" .\" Copyright (c) 1999 Doug Rabson .\" Copyright (c) 2000 Mitsuru IWASAKI .\" Copyright (c) 2000 Yasuo YOKOYAMA .\" Copyright (c) 2000 Hiroki Sato .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .Dd October 5, 2024 .Dt ACPIDUMP 8 .Os .Sh NAME .Nm acpidump .Nd dump ACPI tables and ASL .Sh SYNOPSIS .Nm .Op Fl d .Op Fl f Ar dsdt_input .Op Fl h .Op Fl o Ar dsdt_output .Op Fl t .Op Fl T Ar table_name .Op Fl v .Sh DESCRIPTION The .Nm utility analyzes ACPI tables in physical memory and can dump them to a file. In addition, .Nm can call .Xr iasl 8 to disassemble AML (ACPI Machine Language) found in these tables and dump them as ASL (ACPI Source Language) to stdout. .Pp ACPI tables have an essential data block (the DSDT, Differentiated System Description Table) that includes information used on the kernel side such as detailed information about PnP hardware, procedures for controlling power management support, and so on. The .Nm utility can extract the DSDT data block from physical memory and store it into an output file and optionally also disassemble it. If any Secondary System Description Table (SSDT) entries exist, they will also be included in the output file and disassembly. .Pp When .Nm is invoked without the .Fl f option, it will read ACPI tables from physical memory via .Pa /dev/mem . First it searches for the RSDP (Root System Description Pointer), which has the signature .Qq RSD PTR\ \& , and then gets the RSDT (Root System Description Table), which includes a list of pointers to physical memory addresses for other tables. The RSDT itself and all other tables linked from RSDT are generically called SDTs (System Description Tables) and their header has a common format which consists of items such as Signature, Length, Revision, Checksum, OEMID, OEM Table ID, OEM Revision, Creator ID and Creator Revision. .Pp When invoked with the .Fl t flag, the .Nm utility dumps contents of all the ACPI tables, except the DSDT and SSDT. The following SDTs are reported in detail, while the remainder will only report the common header information: .Pp .Bl -tag -offset indent -width 12345 -compact .It BERT Boot Error Record Table Reports any previous boot errors. .It DMAR DMA Remapping Table Contains information about the DMA remapping necessary for the system for I/O virtualization on Intel CPUS. .It DSDT Differentiated System Description Table Contains the main AML for the system. .It ECDT Embedded Controller Boot Resources Table Contains information about accessing the embedded controller prior to the OS decoding the DSDT for all its details. .It EINJ Error Injection Table Use to inject hardware errors to the error reporting mechanisms. .It ERST Error Record Serialization Table Information to retrieve and manage errors reported from the hardware. .It FACS Firmware ACPI Control Structure Information for the OS to interact with the firmware for things like suspend / resume and prevent mutual access to resources shared between the OS and the firmware. .It FACP Fixed ACPI Description Table (FADT) Information related to power management, and other CPU related data. .It HEST Hardware Error Source Table Describes the possible sources of hardware errors to the OS. .It HPET High Precision Event Timer Table Describes the high precision timers in the system. .It IVRS I/O Virtualization Reporting Structure Information for hypvervisors to use to share I/O resources on AMD processors. .It LPIT Low Power Idle Table Power management information for reducing power usage of the system. .It MADT Multiple APIC Description Table Describes all the Advanced Programmable Interrupt Controllers and Intel Streamlined Advanced Programmable Interrupt Controller present in the system. .It MCFG PCI Express Memory-mapped Configuration PCI config space base address register. .It NFIT NVDIMM Firmware Interface Table NVDIMM information in the system. .It RSD PTR Pointer to the RSDT. .It RSDT Root System Description Table An array of physical pointers to other system description tables, the FACP (Fixed ACPI Description Table). .It SLIT System Locality Distance Information Table Provides information about the cost of communicating between different parts of the system (NUMA). .It SPCR Serial Port Console Redirection Contains informatiom about any serial port that the firmware used as a reporting console. .It SRAT System Resource Affinity Table Defines the domains of locality in the system for processors, memory and generic initiators (eg PCIe root complexes). .It TCPA Trusted Computing Platform Alliance Information about the TPM elements of the system. .It TPM2 Trusted Platform Module 2 Additional information about newer TPM hardware. .It WDDT Watchdog Timer Description Table Information about how to manage watchdog timers in the system. .El .Pp The FACP defines static system information about power management support (ACPI Hardware Register Implementation) such as interrupt mode (INT_MODEL), SCI interrupt number, SMI command port (SMI_CMD) and the location of ACPI registers. The FACP also has a pointer to a physical memory address for the DSDT. While the other tables are fixed format, the DSDT consists of free-formatted AML data. .Sh OPTIONS The following options are supported by .Nm : .Bl -tag -width indent .It Fl d Concatenate the DSDT and the SSDT's into single image and disassemble the image into ASL using .Xr iasl 8 and print the results to stdout. .It Fl t Dump the contents of the various fixed tables listed above. .It Fl T ar table_name Dump the contents of the specific table. All ACPI tables are exactly 4 characters long. .It Fl h Displays usage and exit. .It Fl s Disassemble each of the DSDT and the SSDT's into ASL using .Xr iasl 8 and print the results to stdout. This will avoid .Xr iasl 8 error on disassembling concatenated image. If both .Fl d and .Fl s are specified, the last option is effective. .It Fl v Enable verbose messages. .It Fl f Ar dsdt_input Load the DSDT from the specified file instead of physical memory. Since only the DSDT is stored in the file, the .Fl t flag may not be used with this option. .It Fl o Ar dsdt_output Store the DSDT data block from physical memory into the specified file. .El .Sh FILES .Bl -tag -width /dev/mem .It Pa /dev/mem .El .Sh EXAMPLES If a developer requests a copy of your ASL, please use the following command to dump all tables and compress the result. .Bd -literal -offset indent # acpidump -dt | gzip -c9 > my_computer.asl.gz .Ed .Pp This example dumps the DSDT from physical memory to foo.dsdt. It also prints the contents of various system tables and disassembles the AML contained in the DSDT to stdout, redirecting the output to foo.asl. .Bd -literal -offset indent # acpidump -t -d -o foo.dsdt > foo.asl .Ed .Pp This example reads a DSDT file and disassembles it to stdout. Verbose messages are enabled. .Bd -literal -offset indent # acpidump -v -d -f foo.dsdt .Ed .Sh SEE ALSO .Xr acpi 4 , .Xr mem 4 , .Xr acpiconf 8 , .Xr acpidb 8 , .Xr iasl 8 .Sh HISTORY The .Nm utility first appeared in .Fx 5.0 and was rewritten to use .Xr iasl 8 for .Fx 5.2 . .Sh AUTHORS .An Doug Rabson Aq Mt dfr@FreeBSD.org .An Mitsuru IWASAKI Aq Mt iwasaki@FreeBSD.org .An Yasuo YOKOYAMA Aq Mt yokoyama@jp.FreeBSD.org .An Nate Lawson Aq Mt njl@FreeBSD.org .Pp .An -nosplit Some contributions made by .An Chitoshi Ohsawa Aq Mt ohsawa@catv1.ccn-net.ne.jp , .An Takayasu IWANASHI Aq Mt takayasu@wendy.a.perfect-liberty.or.jp , .An Yoshihiko SARUMARU Aq Mt mistral@imasy.or.jp , .An Hiroki Sato Aq Mt hrs@FreeBSD.org , .An Michael Lucas Aq Mt mwlucas@blackhelicopters.org and .An Michael Smith Aq Mt msmith@FreeBSD.org . .Sh BUGS The current implementation does not dump the BOOT structure or other miscellaneous tables.