Commit Graph

82 Commits

Author SHA1 Message Date
maxv 0e3f83ef93 Dump TPM2. 2019-06-22 12:39:40 +00:00
dogcow 8ffd671a61 acpica 20190405 changed some internal macros; update code to match 2019-04-29 02:49:35 +00:00
msaitoh 800ead4e1b Add missing newline. 2019-02-09 16:00:41 +00:00
mrg fbffadb9f8 - add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily
2019-02-03 03:19:25 +00:00
msaitoh 9836c9649c Fix acpi_print_string(). Treat NUL termination correctly to not to print
NUL character. For example, this change prints an OEMID "41 4d 44 00 41 4d"
with "AMD". Tested by Patrick Welche.
2018-12-30 05:05:21 +00:00
msaitoh c0f969c5d5 Decode IO Remapping Table. 2018-12-02 10:51:07 +00:00
maya 0b54191a1c & promotes to int already, so clang warns about the hh modifier.
(and we use -Werror)

ok xtos
2018-11-11 00:24:01 +00:00
msaitoh 755dd63262 Decode Boot Graghics Resource Table (BGRT). 2018-11-05 07:39:57 +00:00
msaitoh 055f8b85fb Decode CSRT (Core System Resources Table). 2018-11-01 03:08:46 +00:00
msaitoh 43a714dc69 Add GTDT and PPTT. 2018-10-19 05:04:45 +00:00
msaitoh c26b2779fe Fix output of Cache type in PPTT. 2018-10-18 05:20:05 +00:00
msaitoh bf819d34f8 Don't print X_PM_TMR_BLK if the address value is 0. 2018-10-18 05:04:44 +00:00
msaitoh 27cdf6cf05 Don't print PM_TMR_BLK if the value is 0 (see also acpi_timer.c rev. 1.23). 2018-10-18 04:52:00 +00:00
msaitoh aba8816bd6 Decode Generic Timer Description Table(GTDT) and Processor Properties Topology
Table(PPTT). Cosmetic changes and fixes might be required. Testesd by jmcneill.
2018-10-18 04:29:44 +00:00
msaitoh b04bf7f2c3 Print SPCR's Interface Type and ARMH GIC Interrupt Type. 2018-10-18 04:25:34 +00:00
jmcneill 43db5d20d4 FACS is optional if the HW_REDUCED_ACPI flag is set in the FADT. 2018-10-16 21:44:37 +00:00
jmcneill d25cdfbd09 Add acpidump, amldb, and iasl to aarch64 build. 2018-10-14 13:36:32 +00:00
jmcneill 8ebf8cb05c getopt returns int, not char 2018-10-14 12:43:58 +00:00
msaitoh 8b136ef70d Remove extra newline in SPMI table. 2018-10-05 05:09:31 +00:00
msaitoh 5073389c63 - Decode DMAR's ANDD (ACPI Name Space).
- Add X2APIC_MODE flag of DMAR. Note that Intel's VT-d's document says the
  flag's name is DMA_CTRL_PLATFORM_OPT_IN but actbl1.h says it's
  DMAR_X2APIC_MODE.
2018-10-03 09:52:59 +00:00
msaitoh 3de33cabd4 Add ACPI LPIT (Low Power Idle Table) from FreeBSD r336185. 2018-10-03 09:46:11 +00:00
msaitoh 761e1e94b4 Print ACPI_HEST_GHES_ASSIST flag (ACPI 6.2). 2017-09-28 06:55:08 +00:00
msaitoh 0fd02e45f9 Cosmetic change (tab and newline). 2017-09-27 08:14:18 +00:00
msaitoh 597a86a670 - Print SAPIC EID of Processor Local APIC/SAPIC Affinity.
- Print GIC Interrupt Translation Service(ITS) Affinity (ACPI 6.2)
- KNF
- Whilte space cleanup.
2017-09-27 05:43:55 +00:00
msaitoh 50d91653ef Don't define GAS adddess ID constants in acpidump.h and use actypes.h's
definitions. No functional change.
2017-09-07 04:40:56 +00:00
msaitoh 0f0f0fe40a - Space, tab and newline change for consistency output.
- Print a type number for unknown HEST sub entry ID.
2017-09-04 08:12:29 +00:00
msaitoh 084106f3ab - Calculate offset of a sub header correctly in acpi_handle_hest() to print
all of sub entries in HEST correctly.
- Print a SpaceID number for unknown ID in acpi_print_gas().
- Use PRINTFLAG() in acpi_print_hest_notify().
- Use %u instead of %d for unsgined values in acpi_print_hest_generic().
2017-09-04 08:08:41 +00:00
msaitoh 8dabdd9fc2 Fix calculation the offset of the Action Table in WDAT to print each
entries correctly.
2017-09-04 07:59:15 +00:00
msaitoh 5d527485aa Decode the following entries:
- DBG2 (Debug Port Table 2)
 - SPMI (Server Platform Management Interface Table)
 - WDDT (Watchdog Timer Description Table)
 - UEFI (UEFI, not fully decoded yet)
2017-09-01 18:35:50 +00:00
msaitoh ff98ea4622 - Add "Performance Server" and "Tablet" for Preferred_PM_Profile.
- Don't print FADT_RESET_REG if FADT version is 1.
- Print FADT ArmBootFlags, MinorRevision, SleepControl, SleepStatus and
  HypervisorId.
- Print "{}" even if any flags aren't set.
2017-09-01 05:53:09 +00:00
msaitoh 1c01428a98 Part of FreeBSD r323045:
- Print Valid Field in ACPI_NFIT_CONTROL_REGION with 0x%02x.
 - Fix Flags of ACPI_NFIT_CONTROL_REGION.
2017-08-31 09:27:51 +00:00
msaitoh 792e611dc6 - Decode ACPI_HEST_GENERIC_V2.
- Decode ACPI_MADT_GENERIC_MSI_FRAME.
- Add NMI, CMCI, MCE, GPIO-Signal, ARMv8 SEA, ARMv8 SEI and GSIV
  in acpi_print_hest_notify().
- Add ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS and ACPI_EINJ_GET_EXECUTE_TIMINGS
  in acpi_print_einj_action().
- Add ACPI_ERST_EXECUTE_TIMINGS in acpi_print_erst_action().
- Decode NFIT (NVDIMM Firmware Interface Table) from FreeBSD.
2017-08-31 06:53:58 +00:00
msaitoh 8f0f46f919 Add new function acpi_select_address() derived from acpi_get_fadt_revision().
On some systems, 32bit address is used for (X)Dsdt even if (X)Facs uses 64bit.
Don't assume an address size from FADT revision.
2017-08-21 02:58:49 +00:00
msaitoh 9ffd944419 Check DSDT signature in acpi_handle_fadt() for broken ACPI table. 2017-08-18 09:49:24 +00:00
msaitoh c359a2130c Sync with FreeBSD's r321294:
- Dump TCG ACPI spec table (TCPA) more.
 - Dump DMA Remapping Reporting table (DMAR).
 - Consistently cast ACPICA 64-bit integer types when we print them.
 - Display the 'Flags' field in the HPET Description Table.
 - Do not crash when RSDT/XSDT contains an empty entry.
 - Print 64-bit addresses clearly with leading zeros to avoid confusions.
 - Create temp file safely.
 - Add missing flags into FADT.
 - Print some new ACPI 5.1 MADT entries.
 - Use __arraycount().
 - Warn and exit loop on invalid subtable length.
 - Fix the type used to hold the value returned from getopt. On arm64 char is
   unsigned so will never be -1.
2017-08-04 06:30:36 +00:00
msaitoh 9b32f8487a On UEFI environment, ACPI table is not at low address. Get ACPI root pointer
from hw.acpi.root first. Same as FreeBSD. This change fixes a problem that
acpidump(8) showed "acpidump: Can't find ACPI information".

XXX pullup-8
2017-08-03 05:54:45 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
joerg 5936bc8d10 Drop pointless packed attributes. 2016-10-04 22:22:16 +00:00
christos bdb04d1c84 CID 1354301, 1354302, 1354303: Fix uninitialized variable. 2016-02-27 16:40:22 +00:00
christos 2c345cb425 PR/50741: David Binderman: Fix assignment in assert. 2016-02-01 17:46:22 +00:00
christos ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
wiz c20b084d18 Add -s to getopt(3)-string.
Noted missing by Henning Petersen in PR 50255.

While here, clean up usage.
2015-09-20 17:45:25 +00:00
christos df1774464d Put back a Trusted Computing Platform Alliance table pretty printer. 2015-08-19 07:37:17 +00:00
christos 7e168b655c comment out end comment printing. 2015-08-18 17:49:49 +00:00
christos 8c2dc81004 comment out tcpa printout since it has been split between server and client
struct.
2015-08-18 17:46:09 +00:00
christos 8ee626c9fa improve error messages (remove \n, use __func__, etc) 2015-06-16 23:04:13 +00:00
riastradh c14008e496 Don't choke on an assertion for an RSDT with a null address entry. 2014-03-20 14:39:43 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
christos 0a77b69ab6 fix unused variable warnings. 2013-10-19 17:16:37 +00:00
wiz a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00