mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
tests/acpi: update golden master DSDT binary table blobs for q35
In the previously applied commit ("piix4: don't reserve hw resources when hotplug is off globally"), we make changes to the ACPI DSDT tables such that some ACPI code are not generated when bsel is absent. Since as of this point in time, in q35 machines, we do not use bsel for pci buses, we need to update the DSDT table blobs. This patch updates the DSDT golden master tables for q35 machines. At the same time, we clear bios-tables-test-allowed-diff.h for future changes which update tables. Following is a typical diff between the q35 acpi DSDT table blobs: @@ -1,30 +1,30 @@ /* * Intel ACPI Component Architecture * AML/ASL+ Disassembler version 20180105 (64-bit version) * Copyright (c) 2000 - 2018 Intel Corporation * * Disassembling to symbolic ASL+ operators * - * Disassembly of tests/data/acpi/q35/DSDT, Tue Sep 15 18:52:47 2020 + * Disassembly of /tmp/aml-3O0DR0, Tue Sep 15 18:52:47 2020 * * Original Table Header: * Signature "DSDT" - * Length 0x00001DFE (7678) + * Length 0x00001DF6 (7670) * Revision 0x01 **** 32-bit table (V1), no 64-bit math support - * Checksum 0xAC + * Checksum 0x17 * OEM ID "BOCHS " * OEM Table ID "BXPCDSDT" * OEM Revision 0x00000001 (1) * Compiler ID "BXPC" * Compiler Version 0x00000001 (1) */ DefinitionBlock ("", "DSDT", 1, "BOCHS ", "BXPCDSDT", 0x00000001) { Scope (\) { OperationRegion (DBG, SystemIO, 0x0402, One) Field (DBG, ByteAcc, NoLock, Preserve) { DBGB, 8 } @@ -3113,24 +3113,20 @@ Name (_ADR, 0x00010000) // _ADR: Address Method (_S1D, 0, NotSerialized) // _S1D: S1 Device State { Return (Zero) } Method (_S2D, 0, NotSerialized) // _S2D: S2 Device State { Return (Zero) } Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State { Return (Zero) } } - - Method (PCNT, 0, NotSerialized) - { - } } } } Signed-off-by: Ani Sinha <ani@anisinha.ca> Acked-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <20200918084111.15339-12-ani@anisinha.ca> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
df4008c9c5
commit
0ed93f4c05
BIN
tests/.vhost-user-test.c.swo
Normal file
BIN
tests/.vhost-user-test.c.swo
Normal file
Binary file not shown.
1012
tests/Makefile.include.orig
Normal file
1012
tests/Makefile.include.orig
Normal file
File diff suppressed because it is too large
Load diff
569
tests/Makefile.orig
Normal file
569
tests/Makefile.orig
Normal file
|
@ -0,0 +1,569 @@
|
|||
export SRC_PATH
|
||||
|
||||
qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py
|
||||
|
||||
# Get the list of all supported sysemu targets
|
||||
SYSEMU_TARGET_LIST := $(subst -softmmu.mak,,$(notdir \
|
||||
$(wildcard $(SRC_PATH)/default-configs/*-softmmu.mak)))
|
||||
|
||||
check-unit-y = tests/check-qdict$(EXESUF)
|
||||
gcov-files-check-qdict-y = qobject/qdict.c
|
||||
check-unit-y += tests/check-qfloat$(EXESUF)
|
||||
gcov-files-check-qfloat-y = qobject/qfloat.c
|
||||
check-unit-y += tests/check-qint$(EXESUF)
|
||||
gcov-files-check-qint-y = qobject/qint.c
|
||||
check-unit-y += tests/check-qstring$(EXESUF)
|
||||
gcov-files-check-qstring-y = qobject/qstring.c
|
||||
check-unit-y += tests/check-qlist$(EXESUF)
|
||||
gcov-files-check-qlist-y = qobject/qlist.c
|
||||
check-unit-y += tests/check-qjson$(EXESUF)
|
||||
gcov-files-check-qjson-y = qobject/qjson.c
|
||||
check-unit-y += tests/test-qmp-output-visitor$(EXESUF)
|
||||
gcov-files-test-qmp-output-visitor-y = qapi/qmp-output-visitor.c
|
||||
check-unit-y += tests/test-qmp-input-visitor$(EXESUF)
|
||||
gcov-files-test-qmp-input-visitor-y = qapi/qmp-input-visitor.c
|
||||
check-unit-y += tests/test-qmp-input-strict$(EXESUF)
|
||||
check-unit-y += tests/test-qmp-commands$(EXESUF)
|
||||
gcov-files-test-qmp-commands-y = qapi/qmp-dispatch.c
|
||||
check-unit-y += tests/test-string-input-visitor$(EXESUF)
|
||||
gcov-files-test-string-input-visitor-y = qapi/string-input-visitor.c
|
||||
check-unit-y += tests/test-string-output-visitor$(EXESUF)
|
||||
gcov-files-test-string-output-visitor-y = qapi/string-output-visitor.c
|
||||
check-unit-y += tests/test-qmp-event$(EXESUF)
|
||||
gcov-files-test-qmp-event-y += qapi/qmp-event.c
|
||||
check-unit-y += tests/test-opts-visitor$(EXESUF)
|
||||
gcov-files-test-opts-visitor-y = qapi/opts-visitor.c
|
||||
check-unit-y += tests/test-coroutine$(EXESUF)
|
||||
gcov-files-test-coroutine-y = coroutine-$(CONFIG_COROUTINE_BACKEND).c
|
||||
check-unit-y += tests/test-visitor-serialization$(EXESUF)
|
||||
check-unit-y += tests/test-iov$(EXESUF)
|
||||
gcov-files-test-iov-y = util/iov.c
|
||||
check-unit-y += tests/test-aio$(EXESUF)
|
||||
check-unit-$(CONFIG_POSIX) += tests/test-rfifolock$(EXESUF)
|
||||
check-unit-y += tests/test-throttle$(EXESUF)
|
||||
gcov-files-test-aio-$(CONFIG_WIN32) = aio-win32.c
|
||||
gcov-files-test-aio-$(CONFIG_POSIX) = aio-posix.c
|
||||
check-unit-y += tests/test-thread-pool$(EXESUF)
|
||||
gcov-files-test-thread-pool-y = thread-pool.c
|
||||
gcov-files-test-hbitmap-y = util/hbitmap.c
|
||||
check-unit-y += tests/test-hbitmap$(EXESUF)
|
||||
check-unit-y += tests/test-x86-cpuid$(EXESUF)
|
||||
# all code tested by test-x86-cpuid is inside topology.h
|
||||
gcov-files-test-x86-cpuid-y =
|
||||
ifeq ($(CONFIG_SOFTMMU),y)
|
||||
check-unit-y += tests/test-xbzrle$(EXESUF)
|
||||
gcov-files-test-xbzrle-y = migration/xbzrle.c
|
||||
check-unit-$(CONFIG_POSIX) += tests/test-vmstate$(EXESUF)
|
||||
endif
|
||||
check-unit-y += tests/test-cutils$(EXESUF)
|
||||
gcov-files-test-cutils-y += util/cutils.c
|
||||
check-unit-y += tests/test-mul64$(EXESUF)
|
||||
gcov-files-test-mul64-y = util/host-utils.c
|
||||
check-unit-y += tests/test-int128$(EXESUF)
|
||||
# all code tested by test-int128 is inside int128.h
|
||||
gcov-files-test-int128-y =
|
||||
check-unit-y += tests/rcutorture$(EXESUF)
|
||||
gcov-files-rcutorture-y = util/rcu.c
|
||||
check-unit-y += tests/test-rcu-list$(EXESUF)
|
||||
gcov-files-test-rcu-list-y = util/rcu.c
|
||||
check-unit-y += tests/test-bitops$(EXESUF)
|
||||
check-unit-$(CONFIG_HAS_GLIB_SUBPROCESS_TESTS) += tests/test-qdev-global-props$(EXESUF)
|
||||
check-unit-y += tests/check-qom-interface$(EXESUF)
|
||||
gcov-files-check-qom-interface-y = qom/object.c
|
||||
check-unit-y += tests/check-qom-proplist$(EXESUF)
|
||||
gcov-files-check-qom-proplist-y = qom/object.c
|
||||
check-unit-y += tests/test-qemu-opts$(EXESUF)
|
||||
gcov-files-test-qemu-opts-y = qom/test-qemu-opts.c
|
||||
check-unit-y += tests/test-write-threshold$(EXESUF)
|
||||
gcov-files-test-write-threshold-y = block/write-threshold.c
|
||||
check-unit-$(CONFIG_GNUTLS_HASH) += tests/test-crypto-hash$(EXESUF)
|
||||
check-unit-y += tests/test-crypto-cipher$(EXESUF)
|
||||
check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlscredsx509$(EXESUF)
|
||||
check-unit-$(CONFIG_GNUTLS) += tests/test-crypto-tlssession$(EXESUF)
|
||||
|
||||
check-block-$(CONFIG_POSIX) += tests/qemu-iotests-quick.sh
|
||||
|
||||
# All QTests for now are POSIX-only, but the dependencies are
|
||||
# really in libqtest, not in the testcases themselves.
|
||||
|
||||
gcov-files-ipack-y += hw/ipack/ipack.c
|
||||
check-qtest-ipack-y += tests/ipoctal232-test$(EXESUF)
|
||||
gcov-files-ipack-y += hw/char/ipoctal232.c
|
||||
|
||||
check-qtest-virtioserial-y += tests/virtio-console-test$(EXESUF)
|
||||
gcov-files-virtioserial-y += hw/char/virtio-console.c
|
||||
|
||||
gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio.c
|
||||
check-qtest-virtio-y += tests/virtio-net-test$(EXESUF)
|
||||
gcov-files-virtio-y += i386-softmmu/hw/net/virtio-net.c
|
||||
check-qtest-virtio-y += tests/virtio-balloon-test$(EXESUF)
|
||||
gcov-files-virtio-y += i386-softmmu/hw/virtio/virtio-balloon.c
|
||||
check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF)
|
||||
gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c
|
||||
check-qtest-virtio-y += tests/virtio-rng-test$(EXESUF)
|
||||
gcov-files-virtio-y += hw/virtio/virtio-rng.c
|
||||
check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF)
|
||||
gcov-files-virtio-y += i386-softmmu/hw/scsi/virtio-scsi.c
|
||||
ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
|
||||
check-qtest-virtio-y += tests/virtio-9p-test$(EXESUF)
|
||||
gcov-files-virtio-y += hw/9pfs/virtio-9p.c
|
||||
gcov-files-virtio-y += i386-softmmu/hw/9pfs/virtio-9p-device.c
|
||||
endif
|
||||
check-qtest-virtio-y += tests/virtio-serial-test$(EXESUF)
|
||||
gcov-files-virtio-y += i386-softmmu/hw/char/virtio-serial-bus.c
|
||||
check-qtest-virtio-y += $(check-qtest-virtioserial-y)
|
||||
gcov-files-virtio-y += $(gcov-files-virtioserial-y)
|
||||
|
||||
check-qtest-pci-y += tests/e1000-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/net/e1000.c
|
||||
check-qtest-pci-y += tests/rtl8139-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/net/rtl8139.c
|
||||
check-qtest-pci-y += tests/pcnet-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/net/pcnet.c
|
||||
gcov-files-pci-y += hw/net/pcnet-pci.c
|
||||
check-qtest-pci-y += tests/eepro100-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/net/eepro100.c
|
||||
check-qtest-pci-y += tests/ne2000-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/net/ne2000.c
|
||||
check-qtest-pci-y += tests/nvme-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/block/nvme.c
|
||||
check-qtest-pci-y += tests/ac97-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/audio/ac97.c
|
||||
check-qtest-pci-y += tests/es1370-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/audio/es1370.c
|
||||
check-qtest-pci-y += $(check-qtest-virtio-y)
|
||||
gcov-files-pci-y += $(gcov-files-virtio-y) hw/virtio/virtio-pci.c
|
||||
check-qtest-pci-y += tests/tpci200-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/ipack/tpci200.c
|
||||
check-qtest-pci-y += $(check-qtest-ipack-y)
|
||||
gcov-files-pci-y += $(gcov-files-ipack-y)
|
||||
check-qtest-pci-y += tests/display-vga-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/display/vga.c
|
||||
gcov-files-pci-y += hw/display/cirrus_vga.c
|
||||
gcov-files-pci-y += hw/display/vga-pci.c
|
||||
gcov-files-pci-y += hw/display/virtio-gpu.c
|
||||
gcov-files-pci-y += hw/display/virtio-gpu-pci.c
|
||||
gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c
|
||||
check-qtest-pci-y += tests/intel-hda-test$(EXESUF)
|
||||
gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c
|
||||
|
||||
check-qtest-i386-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/fdc-test$(EXESUF)
|
||||
gcov-files-i386-y = hw/block/fdc.c
|
||||
check-qtest-i386-y += tests/ide-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/ahci-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/hd-geo-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/block/hd-geometry.c
|
||||
check-qtest-i386-y += tests/boot-order-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/bios-tables-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/rtc-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/i440fx-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/fw_cfg-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/drive_del-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/wdt_ib700-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/tco-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
|
||||
check-qtest-i386-y += $(check-qtest-pci-y)
|
||||
gcov-files-i386-y += $(gcov-files-pci-y)
|
||||
check-qtest-i386-y += tests/vmxnet3-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/net/vmxnet3.c
|
||||
gcov-files-i386-y += hw/net/vmxnet_rx_pkt.c
|
||||
gcov-files-i386-y += hw/net/vmxnet_tx_pkt.c
|
||||
check-qtest-i386-y += tests/pvpanic-test$(EXESUF)
|
||||
gcov-files-i386-y += i386-softmmu/hw/misc/pvpanic.c
|
||||
check-qtest-i386-y += tests/i82801b11-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/pci-bridge/i82801b11.c
|
||||
check-qtest-i386-y += tests/ioh3420-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/pci-bridge/ioh3420.c
|
||||
check-qtest-i386-y += tests/usb-hcd-ohci-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/usb/hcd-ohci.c
|
||||
check-qtest-i386-y += tests/usb-hcd-uhci-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/usb/hcd-uhci.c
|
||||
check-qtest-i386-y += tests/usb-hcd-ehci-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/usb/hcd-ehci.c
|
||||
gcov-files-i386-y += hw/usb/dev-hid.c
|
||||
gcov-files-i386-y += hw/usb/dev-storage.c
|
||||
check-qtest-i386-y += tests/usb-hcd-xhci-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/usb/hcd-xhci.c
|
||||
check-qtest-i386-y += tests/pc-cpu-test$(EXESUF)
|
||||
check-qtest-i386-y += tests/q35-test$(EXESUF)
|
||||
gcov-files-i386-y += hw/pci-host/q35.c
|
||||
ifeq ($(CONFIG_VHOST_NET),y)
|
||||
check-qtest-i386-$(CONFIG_LINUX) += tests/vhost-user-test$(EXESUF)
|
||||
endif
|
||||
check-qtest-x86_64-y = $(check-qtest-i386-y)
|
||||
gcov-files-i386-y += i386-softmmu/hw/timer/mc146818rtc.c
|
||||
gcov-files-x86_64-y = $(subst i386-softmmu/,x86_64-softmmu/,$(gcov-files-i386-y))
|
||||
check-qtest-mips-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-mips64-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-mips64el-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-ppc-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-ppc64-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-sh4-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-sh4eb-y = tests/endianness-test$(EXESUF)
|
||||
check-qtest-sparc64-y = tests/endianness-test$(EXESUF)
|
||||
#check-qtest-sparc-y = tests/m48t59-test$(EXESUF)
|
||||
#check-qtest-sparc64-y += tests/m48t59-test$(EXESUF)
|
||||
gcov-files-sparc-y += hw/timer/m48t59.c
|
||||
gcov-files-sparc64-y += hw/timer/m48t59.c
|
||||
check-qtest-arm-y = tests/tmp105-test$(EXESUF)
|
||||
check-qtest-arm-y = tests/ds1338-test$(EXESUF)
|
||||
gcov-files-arm-y += hw/misc/tmp105.c
|
||||
check-qtest-arm-y += tests/virtio-blk-test$(EXESUF)
|
||||
gcov-files-arm-y += arm-softmmu/hw/block/virtio-blk.c
|
||||
check-qtest-ppc-y += tests/boot-order-test$(EXESUF)
|
||||
check-qtest-ppc64-y += tests/boot-order-test$(EXESUF)
|
||||
check-qtest-ppc64-y += tests/spapr-phb-test$(EXESUF)
|
||||
gcov-files-ppc64-y += ppc64-softmmu/hw/ppc/spapr_pci.c
|
||||
check-qtest-microblazeel-y = $(check-qtest-microblaze-y)
|
||||
check-qtest-xtensaeb-y = $(check-qtest-xtensa-y)
|
||||
|
||||
# qom-test works for all sysemu architectures:
|
||||
$(foreach target,$(SYSEMU_TARGET_LIST), \
|
||||
$(if $(findstring tests/qom-test$(EXESUF), $(check-qtest-$(target)-y)),, \
|
||||
$(eval check-qtest-$(target)-y += tests/qom-test$(EXESUF))))
|
||||
|
||||
check-qapi-schema-y := $(addprefix tests/qapi-schema/, \
|
||||
comments.json empty.json enum-empty.json enum-missing-data.json \
|
||||
enum-wrong-data.json enum-int-member.json enum-dict-member.json \
|
||||
enum-clash-member.json enum-max-member.json enum-union-clash.json \
|
||||
enum-bad-name.json enum-bad-prefix.json \
|
||||
funny-char.json indented-expr.json \
|
||||
missing-type.json bad-ident.json ident-with-escape.json \
|
||||
escape-outside-string.json unknown-escape.json \
|
||||
escape-too-short.json escape-too-big.json unicode-str.json \
|
||||
double-type.json bad-base.json bad-type-bool.json bad-type-int.json \
|
||||
bad-type-dict.json double-data.json unknown-expr-key.json \
|
||||
redefined-type.json redefined-command.json redefined-builtin.json \
|
||||
redefined-event.json command-int.json bad-data.json event-max.json \
|
||||
type-bypass-bad-gen.json \
|
||||
args-invalid.json \
|
||||
args-array-empty.json args-array-unknown.json args-int.json \
|
||||
args-unknown.json args-member-unknown.json args-member-array.json \
|
||||
args-member-array-bad.json args-alternate.json args-union.json \
|
||||
args-any.json \
|
||||
returns-array-bad.json returns-int.json returns-dict.json \
|
||||
returns-unknown.json returns-alternate.json returns-whitelist.json \
|
||||
missing-colon.json missing-comma-list.json missing-comma-object.json \
|
||||
struct-data-invalid.json struct-member-invalid.json \
|
||||
nested-struct-data.json non-objects.json \
|
||||
qapi-schema-test.json quoted-structural-chars.json \
|
||||
leading-comma-list.json leading-comma-object.json \
|
||||
trailing-comma-list.json trailing-comma-object.json \
|
||||
unclosed-list.json unclosed-object.json unclosed-string.json \
|
||||
duplicate-key.json union-invalid-base.json union-bad-branch.json \
|
||||
union-optional-branch.json union-unknown.json union-max.json \
|
||||
flat-union-optional-discriminator.json flat-union-no-base.json \
|
||||
flat-union-invalid-discriminator.json flat-union-inline.json \
|
||||
flat-union-invalid-branch-key.json flat-union-reverse-define.json \
|
||||
flat-union-string-discriminator.json union-base-no-discriminator.json \
|
||||
flat-union-bad-discriminator.json flat-union-bad-base.json \
|
||||
flat-union-base-any.json \
|
||||
flat-union-array-branch.json flat-union-int-branch.json \
|
||||
flat-union-base-union.json flat-union-branch-clash.json \
|
||||
alternate-nested.json alternate-unknown.json alternate-clash.json \
|
||||
alternate-good.json alternate-base.json alternate-array.json \
|
||||
alternate-conflict-string.json alternate-conflict-dict.json \
|
||||
include-simple.json include-relpath.json include-format-err.json \
|
||||
include-non-file.json include-no-file.json include-before-err.json \
|
||||
include-nested-err.json include-self-cycle.json include-cycle.json \
|
||||
include-repetition.json event-nest-struct.json event-case.json \
|
||||
struct-base-clash.json struct-base-clash-deep.json )
|
||||
|
||||
GENERATED_HEADERS += tests/test-qapi-types.h tests/test-qapi-visit.h \
|
||||
tests/test-qmp-commands.h tests/test-qapi-event.h \
|
||||
tests/test-qmp-introspect.h
|
||||
|
||||
test-obj-y = tests/check-qint.o tests/check-qstring.o tests/check-qdict.o \
|
||||
tests/check-qlist.o tests/check-qfloat.o tests/check-qjson.o \
|
||||
tests/test-coroutine.o tests/test-string-output-visitor.o \
|
||||
tests/test-string-input-visitor.o tests/test-qmp-output-visitor.o \
|
||||
tests/test-qmp-input-visitor.o tests/test-qmp-input-strict.o \
|
||||
tests/test-qmp-commands.o tests/test-visitor-serialization.o \
|
||||
tests/test-x86-cpuid.o tests/test-mul64.o tests/test-int128.o \
|
||||
tests/test-opts-visitor.o tests/test-qmp-event.o \
|
||||
tests/rcutorture.o tests/test-rcu-list.o
|
||||
|
||||
$(test-obj-y): QEMU_INCLUDES += -Itests
|
||||
QEMU_CFLAGS += -I$(SRC_PATH)/tests
|
||||
|
||||
|
||||
# Deps that are common to various different sets of tests below
|
||||
test-util-obj-y = libqemuutil.a libqemustub.a
|
||||
test-qom-obj-y = $(qom-obj-y) $(test-util-obj-y)
|
||||
test-qapi-obj-y = tests/test-qapi-visit.o tests/test-qapi-types.o \
|
||||
tests/test-qapi-event.o tests/test-qmp-introspect.o \
|
||||
$(test-qom-obj-y)
|
||||
test-crypto-obj-y = $(crypto-obj-y) $(test-qom-obj-y)
|
||||
test-block-obj-y = $(block-obj-y) $(test-crypto-obj-y)
|
||||
|
||||
tests/check-qint$(EXESUF): tests/check-qint.o $(test-util-obj-y)
|
||||
tests/check-qstring$(EXESUF): tests/check-qstring.o $(test-util-obj-y)
|
||||
tests/check-qdict$(EXESUF): tests/check-qdict.o $(test-util-obj-y)
|
||||
tests/check-qlist$(EXESUF): tests/check-qlist.o $(test-util-obj-y)
|
||||
tests/check-qfloat$(EXESUF): tests/check-qfloat.o $(test-util-obj-y)
|
||||
tests/check-qjson$(EXESUF): tests/check-qjson.o $(test-util-obj-y)
|
||||
tests/check-qom-interface$(EXESUF): tests/check-qom-interface.o $(test-qom-obj-y)
|
||||
tests/check-qom-proplist$(EXESUF): tests/check-qom-proplist.o $(test-qom-obj-y)
|
||||
tests/test-coroutine$(EXESUF): tests/test-coroutine.o $(test-block-obj-y)
|
||||
tests/test-aio$(EXESUF): tests/test-aio.o $(test-block-obj-y)
|
||||
tests/test-rfifolock$(EXESUF): tests/test-rfifolock.o $(test-util-obj-y)
|
||||
tests/test-throttle$(EXESUF): tests/test-throttle.o $(test-block-obj-y)
|
||||
tests/test-thread-pool$(EXESUF): tests/test-thread-pool.o $(test-block-obj-y)
|
||||
tests/test-iov$(EXESUF): tests/test-iov.o $(test-util-obj-y)
|
||||
tests/test-hbitmap$(EXESUF): tests/test-hbitmap.o $(test-util-obj-y)
|
||||
tests/test-x86-cpuid$(EXESUF): tests/test-x86-cpuid.o
|
||||
tests/test-xbzrle$(EXESUF): tests/test-xbzrle.o migration/xbzrle.o page_cache.o $(test-util-obj-y)
|
||||
tests/test-cutils$(EXESUF): tests/test-cutils.o util/cutils.o
|
||||
tests/test-int128$(EXESUF): tests/test-int128.o
|
||||
tests/rcutorture$(EXESUF): tests/rcutorture.o $(test-util-obj-y)
|
||||
tests/test-rcu-list$(EXESUF): tests/test-rcu-list.o $(test-util-obj-y)
|
||||
|
||||
tests/test-qdev-global-props$(EXESUF): tests/test-qdev-global-props.o \
|
||||
hw/core/qdev.o hw/core/qdev-properties.o hw/core/hotplug.o\
|
||||
hw/core/irq.o \
|
||||
hw/core/fw-path-provider.o \
|
||||
$(test-qapi-obj-y)
|
||||
tests/test-vmstate$(EXESUF): tests/test-vmstate.o \
|
||||
migration/vmstate.o migration/qemu-file.o migration/qemu-file-buf.o \
|
||||
migration/qemu-file-unix.o qjson.o \
|
||||
$(test-qom-obj-y)
|
||||
|
||||
tests/test-qapi-types.c tests/test-qapi-types.h :\
|
||||
$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
|
||||
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \
|
||||
$(gen-out-type) -o tests -p "test-" $<, \
|
||||
" GEN $@")
|
||||
tests/test-qapi-visit.c tests/test-qapi-visit.h :\
|
||||
$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py)
|
||||
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py \
|
||||
$(gen-out-type) -o tests -p "test-" $<, \
|
||||
" GEN $@")
|
||||
tests/test-qmp-commands.h tests/test-qmp-marshal.c :\
|
||||
$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
|
||||
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py \
|
||||
$(gen-out-type) -o tests -p "test-" $<, \
|
||||
" GEN $@")
|
||||
tests/test-qapi-event.c tests/test-qapi-event.h :\
|
||||
$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-event.py $(qapi-py)
|
||||
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-event.py \
|
||||
$(gen-out-type) -o tests -p "test-" $<, \
|
||||
" GEN $@")
|
||||
tests/test-qmp-introspect.c tests/test-qmp-introspect.h :\
|
||||
$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-introspect.py $(qapi-py)
|
||||
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-introspect.py \
|
||||
$(gen-out-type) -o tests -p "test-" $<, \
|
||||
" GEN $@")
|
||||
|
||||
tests/test-string-output-visitor$(EXESUF): tests/test-string-output-visitor.o $(test-qapi-obj-y)
|
||||
tests/test-string-input-visitor$(EXESUF): tests/test-string-input-visitor.o $(test-qapi-obj-y)
|
||||
tests/test-qmp-event$(EXESUF): tests/test-qmp-event.o $(test-qapi-obj-y)
|
||||
tests/test-qmp-output-visitor$(EXESUF): tests/test-qmp-output-visitor.o $(test-qapi-obj-y)
|
||||
tests/test-qmp-input-visitor$(EXESUF): tests/test-qmp-input-visitor.o $(test-qapi-obj-y)
|
||||
tests/test-qmp-input-strict$(EXESUF): tests/test-qmp-input-strict.o $(test-qapi-obj-y)
|
||||
tests/test-qmp-commands$(EXESUF): tests/test-qmp-commands.o tests/test-qmp-marshal.o $(test-qapi-obj-y)
|
||||
tests/test-visitor-serialization$(EXESUF): tests/test-visitor-serialization.o $(test-qapi-obj-y)
|
||||
tests/test-opts-visitor$(EXESUF): tests/test-opts-visitor.o $(test-qapi-obj-y)
|
||||
|
||||
tests/test-mul64$(EXESUF): tests/test-mul64.o $(test-util-obj-y)
|
||||
tests/test-bitops$(EXESUF): tests/test-bitops.o $(test-util-obj-y)
|
||||
tests/test-crypto-hash$(EXESUF): tests/test-crypto-hash.o $(test-crypto-obj-y)
|
||||
tests/test-crypto-cipher$(EXESUF): tests/test-crypto-cipher.o $(test-crypto-obj-y)
|
||||
tests/test-crypto-tlscredsx509$(EXESUF): tests/test-crypto-tlscredsx509.o \
|
||||
tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o $(test-crypto-obj-y)
|
||||
tests/test-crypto-tlssession$(EXESUF): tests/test-crypto-tlssession.o \
|
||||
tests/crypto-tls-x509-helpers.o tests/pkix_asn1_tab.o $(test-crypto-obj-y)
|
||||
|
||||
libqos-obj-y = tests/libqos/pci.o tests/libqos/fw_cfg.o tests/libqos/malloc.o
|
||||
libqos-obj-y += tests/libqos/i2c.o tests/libqos/libqos.o
|
||||
libqos-pc-obj-y = $(libqos-obj-y) tests/libqos/pci-pc.o
|
||||
libqos-pc-obj-y += tests/libqos/malloc-pc.o tests/libqos/libqos-pc.o
|
||||
libqos-pc-obj-y += tests/libqos/ahci.o
|
||||
libqos-omap-obj-y = $(libqos-obj-y) tests/libqos/i2c-omap.o
|
||||
libqos-imx-obj-y = $(libqos-obj-y) tests/libqos/i2c-imx.o
|
||||
libqos-usb-obj-y = $(libqos-pc-obj-y) tests/libqos/usb.o
|
||||
libqos-virtio-obj-y = $(libqos-pc-obj-y) tests/libqos/virtio.o tests/libqos/virtio-pci.o tests/libqos/virtio-mmio.o tests/libqos/malloc-generic.o
|
||||
|
||||
tests/rtc-test$(EXESUF): tests/rtc-test.o
|
||||
tests/m48t59-test$(EXESUF): tests/m48t59-test.o
|
||||
tests/endianness-test$(EXESUF): tests/endianness-test.o
|
||||
tests/spapr-phb-test$(EXESUF): tests/spapr-phb-test.o $(libqos-obj-y)
|
||||
tests/fdc-test$(EXESUF): tests/fdc-test.o
|
||||
tests/ide-test$(EXESUF): tests/ide-test.o $(libqos-pc-obj-y)
|
||||
tests/ahci-test$(EXESUF): tests/ahci-test.o $(libqos-pc-obj-y)
|
||||
tests/hd-geo-test$(EXESUF): tests/hd-geo-test.o
|
||||
tests/boot-order-test$(EXESUF): tests/boot-order-test.o $(libqos-obj-y)
|
||||
tests/bios-tables-test$(EXESUF): tests/bios-tables-test.o $(libqos-obj-y)
|
||||
tests/tmp105-test$(EXESUF): tests/tmp105-test.o $(libqos-omap-obj-y)
|
||||
tests/ds1338-test$(EXESUF): tests/ds1338-test.o $(libqos-imx-obj-y)
|
||||
tests/i440fx-test$(EXESUF): tests/i440fx-test.o $(libqos-pc-obj-y)
|
||||
tests/q35-test$(EXESUF): tests/q35-test.o $(libqos-pc-obj-y)
|
||||
tests/fw_cfg-test$(EXESUF): tests/fw_cfg-test.o $(libqos-pc-obj-y)
|
||||
tests/e1000-test$(EXESUF): tests/e1000-test.o
|
||||
tests/rtl8139-test$(EXESUF): tests/rtl8139-test.o $(libqos-pc-obj-y)
|
||||
tests/pcnet-test$(EXESUF): tests/pcnet-test.o
|
||||
tests/eepro100-test$(EXESUF): tests/eepro100-test.o
|
||||
tests/vmxnet3-test$(EXESUF): tests/vmxnet3-test.o
|
||||
tests/ne2000-test$(EXESUF): tests/ne2000-test.o
|
||||
tests/wdt_ib700-test$(EXESUF): tests/wdt_ib700-test.o
|
||||
tests/tco-test$(EXESUF): tests/tco-test.o $(libqos-pc-obj-y)
|
||||
tests/virtio-balloon-test$(EXESUF): tests/virtio-balloon-test.o
|
||||
tests/virtio-blk-test$(EXESUF): tests/virtio-blk-test.o $(libqos-virtio-obj-y)
|
||||
tests/virtio-net-test$(EXESUF): tests/virtio-net-test.o $(libqos-pc-obj-y) $(libqos-virtio-obj-y)
|
||||
tests/virtio-rng-test$(EXESUF): tests/virtio-rng-test.o $(libqos-pc-obj-y)
|
||||
tests/virtio-scsi-test$(EXESUF): tests/virtio-scsi-test.o $(libqos-virtio-obj-y)
|
||||
tests/virtio-9p-test$(EXESUF): tests/virtio-9p-test.o
|
||||
tests/virtio-serial-test$(EXESUF): tests/virtio-serial-test.o
|
||||
tests/virtio-console-test$(EXESUF): tests/virtio-console-test.o
|
||||
tests/tpci200-test$(EXESUF): tests/tpci200-test.o
|
||||
tests/display-vga-test$(EXESUF): tests/display-vga-test.o
|
||||
tests/ipoctal232-test$(EXESUF): tests/ipoctal232-test.o
|
||||
tests/qom-test$(EXESUF): tests/qom-test.o
|
||||
tests/drive_del-test$(EXESUF): tests/drive_del-test.o $(libqos-pc-obj-y)
|
||||
tests/qdev-monitor-test$(EXESUF): tests/qdev-monitor-test.o $(libqos-pc-obj-y)
|
||||
tests/nvme-test$(EXESUF): tests/nvme-test.o
|
||||
tests/pvpanic-test$(EXESUF): tests/pvpanic-test.o
|
||||
tests/i82801b11-test$(EXESUF): tests/i82801b11-test.o
|
||||
tests/ac97-test$(EXESUF): tests/ac97-test.o
|
||||
tests/es1370-test$(EXESUF): tests/es1370-test.o
|
||||
tests/intel-hda-test$(EXESUF): tests/intel-hda-test.o
|
||||
tests/ioh3420-test$(EXESUF): tests/ioh3420-test.o
|
||||
tests/usb-hcd-ohci-test$(EXESUF): tests/usb-hcd-ohci-test.o $(libqos-usb-obj-y)
|
||||
tests/usb-hcd-uhci-test$(EXESUF): tests/usb-hcd-uhci-test.o $(libqos-usb-obj-y)
|
||||
tests/usb-hcd-ehci-test$(EXESUF): tests/usb-hcd-ehci-test.o $(libqos-usb-obj-y)
|
||||
tests/usb-hcd-xhci-test$(EXESUF): tests/usb-hcd-xhci-test.o $(libqos-usb-obj-y)
|
||||
tests/pc-cpu-test$(EXESUF): tests/pc-cpu-test.o
|
||||
tests/vhost-user-test$(EXESUF): tests/vhost-user-test.o qemu-char.o qemu-timer.o $(qtest-obj-y)
|
||||
tests/qemu-iotests/socket_scm_helper$(EXESUF): tests/qemu-iotests/socket_scm_helper.o
|
||||
tests/test-qemu-opts$(EXESUF): tests/test-qemu-opts.o $(test-util-obj-y)
|
||||
tests/test-write-threshold$(EXESUF): tests/test-write-threshold.o $(test-block-obj-y)
|
||||
|
||||
ifeq ($(CONFIG_POSIX),y)
|
||||
LIBS += -lutil
|
||||
endif
|
||||
LIBS += $(TEST_LIBS)
|
||||
CFLAGS += $(TEST_CFLAGS)
|
||||
|
||||
# QTest rules
|
||||
|
||||
TARGETS=$(patsubst %-softmmu,%, $(filter %-softmmu,$(TARGET_DIRS)))
|
||||
ifeq ($(CONFIG_POSIX),y)
|
||||
QTEST_TARGETS=$(foreach TARGET,$(TARGETS), $(if $(check-qtest-$(TARGET)-y), $(TARGET),))
|
||||
check-qtest-y=$(foreach TARGET,$(TARGETS), $(check-qtest-$(TARGET)-y))
|
||||
endif
|
||||
|
||||
qtest-obj-y = tests/libqtest.o $(test-util-obj-y)
|
||||
$(check-qtest-y): $(qtest-obj-y)
|
||||
|
||||
.PHONY: check-help
|
||||
check-help:
|
||||
@echo "Regression testing targets:"
|
||||
@echo
|
||||
@echo " make check Run all tests"
|
||||
@echo " make check-qtest-TARGET Run qtest tests for given target"
|
||||
@echo " make check-qtest Run qtest tests"
|
||||
@echo " make check-unit Run qobject tests"
|
||||
@echo " make check-qapi-schema Run QAPI schema tests"
|
||||
@echo " make check-block Run block tests"
|
||||
@echo " make check-report.html Generates an HTML test report"
|
||||
@echo " make check-clean Clean the tests"
|
||||
@echo
|
||||
@echo "Please note that HTML reports do not regenerate if the unit tests"
|
||||
@echo "has not changed."
|
||||
@echo
|
||||
@echo "The variable SPEED can be set to control the gtester speed setting."
|
||||
@echo "Default options are -k and (for make V=1) --verbose; they can be"
|
||||
@echo "changed with variable GTESTER_OPTIONS."
|
||||
|
||||
SPEED = quick
|
||||
GTESTER_OPTIONS = -k $(if $(V),--verbose,-q)
|
||||
GCOV_OPTIONS = -n $(if $(V),-f,)
|
||||
|
||||
# gtester tests, possibly with verbose output
|
||||
|
||||
.PHONY: $(patsubst %, check-qtest-%, $(QTEST_TARGETS))
|
||||
$(patsubst %, check-qtest-%, $(QTEST_TARGETS)): check-qtest-%: $(check-qtest-y)
|
||||
$(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,)
|
||||
$(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \
|
||||
QTEST_QEMU_IMG=qemu-img$(EXESUF) \
|
||||
MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \
|
||||
gtester $(GTESTER_OPTIONS) -m=$(SPEED) $(check-qtest-$*-y),"GTESTER $@")
|
||||
$(if $(CONFIG_GCOV),@for f in $(gcov-files-$*-y); do \
|
||||
echo Gcov report for $$f:;\
|
||||
$(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \
|
||||
done,)
|
||||
|
||||
.PHONY: $(patsubst %, check-%, $(check-unit-y))
|
||||
$(patsubst %, check-%, $(check-unit-y)): check-%: %
|
||||
$(if $(CONFIG_GCOV),@rm -f *.gcda */*.gcda */*/*.gcda */*/*/*.gcda,)
|
||||
$(call quiet-command, \
|
||||
MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$((RANDOM % 255 + 1))} \
|
||||
gtester $(GTESTER_OPTIONS) -m=$(SPEED) $*,"GTESTER $*")
|
||||
$(if $(CONFIG_GCOV),@for f in $(gcov-files-$(subst tests/,,$*)-y); do \
|
||||
echo Gcov report for $$f:;\
|
||||
$(GCOV) $(GCOV_OPTIONS) $$f -o `dirname $$f`; \
|
||||
done,)
|
||||
|
||||
# gtester tests with XML output
|
||||
|
||||
$(patsubst %, check-report-qtest-%.xml, $(QTEST_TARGETS)): check-report-qtest-%.xml: $(check-qtest-y)
|
||||
$(call quiet-command,QTEST_QEMU_BINARY=$*-softmmu/qemu-system-$* \
|
||||
QTEST_QEMU_IMG=qemu-img$(EXESUF) \
|
||||
gtester -q $(GTESTER_OPTIONS) -o $@ -m=$(SPEED) $(check-qtest-$*-y),"GTESTER $@")
|
||||
|
||||
check-report-unit.xml: $(check-unit-y)
|
||||
$(call quiet-command,gtester -q $(GTESTER_OPTIONS) -o $@ -m=$(SPEED) $^, "GTESTER $@")
|
||||
|
||||
# Reports and overall runs
|
||||
|
||||
check-report.xml: $(patsubst %,check-report-qtest-%.xml, $(QTEST_TARGETS)) check-report-unit.xml
|
||||
$(call quiet-command,$(SRC_PATH)/scripts/gtester-cat $^ > $@, " GEN $@")
|
||||
|
||||
check-report.html: check-report.xml
|
||||
$(call quiet-command,gtester-report $< > $@, " GEN $@")
|
||||
|
||||
|
||||
# Other tests
|
||||
|
||||
QEMU_IOTESTS_HELPERS-$(CONFIG_LINUX) = tests/qemu-iotests/socket_scm_helper$(EXESUF)
|
||||
|
||||
.PHONY: check-tests/qemu-iotests-quick.sh
|
||||
check-tests/qemu-iotests-quick.sh: tests/qemu-iotests-quick.sh qemu-img$(EXESUF) qemu-io$(EXESUF) $(QEMU_IOTESTS_HELPERS-y)
|
||||
$<
|
||||
|
||||
.PHONY: check-tests/test-qapi.py
|
||||
check-tests/test-qapi.py: tests/test-qapi.py
|
||||
|
||||
.PHONY: $(patsubst %, check-%, $(check-qapi-schema-y))
|
||||
$(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json
|
||||
$(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts \
|
||||
$(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py \
|
||||
$^ >$*.test.out 2>$*.test.err; \
|
||||
echo $$? >$*.test.exit, \
|
||||
" TEST $*.out")
|
||||
@diff -q $(SRC_PATH)/$*.out $*.test.out
|
||||
@# Sanitize error messages (make them independent of build directory)
|
||||
@perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -q $(SRC_PATH)/$*.err -
|
||||
@diff -q $(SRC_PATH)/$*.exit $*.test.exit
|
||||
|
||||
# Consolidated targets
|
||||
|
||||
.PHONY: check-qapi-schema check-qtest check-unit check check-clean
|
||||
check-qapi-schema: $(patsubst %,check-%, $(check-qapi-schema-y))
|
||||
check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGETS))
|
||||
check-unit: $(patsubst %,check-%, $(check-unit-y))
|
||||
check-block: $(patsubst %,check-%, $(check-block-y))
|
||||
check: check-qapi-schema check-unit check-qtest
|
||||
check-clean:
|
||||
$(MAKE) -C tests/tcg clean
|
||||
rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y)
|
||||
rm -rf $(sort $(foreach target,$(SYSEMU_TARGET_LIST), $(check-qtest-$(target)-y)))
|
||||
|
||||
clean: check-clean
|
||||
|
||||
# Build the help program automatically
|
||||
|
||||
all: $(QEMU_IOTESTS_HELPERS-y)
|
||||
|
||||
-include $(wildcard tests/*.d)
|
||||
-include $(wildcard tests/libqos/*.d)
|
925
tests/bios-tables-test.c.orig
Normal file
925
tests/bios-tables-test.c.orig
Normal file
|
@ -0,0 +1,925 @@
|
|||
/*
|
||||
* Boot order test cases.
|
||||
*
|
||||
* Copyright (c) 2013 Red Hat Inc.
|
||||
*
|
||||
* Authors:
|
||||
* Michael S. Tsirkin <mst@redhat.com>,
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include <glib/gstdio.h>
|
||||
#include "qemu-common.h"
|
||||
#include "hw/firmware/smbios.h"
|
||||
#include "qemu/bitmap.h"
|
||||
#include "acpi-utils.h"
|
||||
#include "boot-sector.h"
|
||||
|
||||
#define MACHINE_PC "pc"
|
||||
#define MACHINE_Q35 "q35"
|
||||
|
||||
#define ACPI_REBUILD_EXPECTED_AML "TEST_ACPI_REBUILD_AML"
|
||||
|
||||
typedef struct {
|
||||
const char *machine;
|
||||
const char *variant;
|
||||
uint32_t rsdp_addr;
|
||||
uint8_t rsdp_table[36 /* ACPI 2.0+ RSDP size */];
|
||||
AcpiRsdtDescriptorRev1 rsdt_table;
|
||||
uint32_t dsdt_addr;
|
||||
uint32_t facs_addr;
|
||||
AcpiFacsDescriptorRev1 facs_table;
|
||||
uint32_t *rsdt_tables_addr;
|
||||
int rsdt_tables_nr;
|
||||
GArray *tables;
|
||||
uint32_t smbios_ep_addr;
|
||||
struct smbios_21_entry_point smbios_ep_table;
|
||||
uint8_t *required_struct_types;
|
||||
int required_struct_types_len;
|
||||
QTestState *qts;
|
||||
} test_data;
|
||||
|
||||
static char disk[] = "tests/acpi-test-disk-XXXXXX";
|
||||
static const char *data_dir = "tests/data/acpi";
|
||||
#ifdef CONFIG_IASL
|
||||
static const char *iasl = stringify(CONFIG_IASL);
|
||||
#else
|
||||
static const char *iasl;
|
||||
#endif
|
||||
|
||||
static void free_test_data(test_data *data)
|
||||
{
|
||||
AcpiSdtTable *temp;
|
||||
int i;
|
||||
|
||||
g_free(data->rsdt_tables_addr);
|
||||
|
||||
for (i = 0; i < data->tables->len; ++i) {
|
||||
temp = &g_array_index(data->tables, AcpiSdtTable, i);
|
||||
g_free(temp->aml);
|
||||
if (temp->aml_file &&
|
||||
!temp->tmp_files_retain &&
|
||||
g_strstr_len(temp->aml_file, -1, "aml-")) {
|
||||
unlink(temp->aml_file);
|
||||
}
|
||||
g_free(temp->aml_file);
|
||||
g_free(temp->asl);
|
||||
if (temp->asl_file &&
|
||||
!temp->tmp_files_retain) {
|
||||
unlink(temp->asl_file);
|
||||
}
|
||||
g_free(temp->asl_file);
|
||||
}
|
||||
|
||||
g_array_free(data->tables, true);
|
||||
}
|
||||
|
||||
static void test_acpi_rsdp_address(test_data *data)
|
||||
{
|
||||
uint32_t off = acpi_find_rsdp_address(data->qts);
|
||||
g_assert_cmphex(off, <, 0x100000);
|
||||
data->rsdp_addr = off;
|
||||
}
|
||||
|
||||
static void test_acpi_rsdp_table(test_data *data)
|
||||
{
|
||||
uint8_t *rsdp_table = data->rsdp_table, revision;
|
||||
uint32_t addr = data->rsdp_addr;
|
||||
|
||||
acpi_parse_rsdp_table(data->qts, addr, rsdp_table);
|
||||
revision = rsdp_table[15 /* Revision offset */];
|
||||
|
||||
switch (revision) {
|
||||
case 0: /* ACPI 1.0 RSDP */
|
||||
/* With rev 1, checksum is only for the first 20 bytes */
|
||||
g_assert(!acpi_calc_checksum(rsdp_table, 20));
|
||||
break;
|
||||
case 2: /* ACPI 2.0+ RSDP */
|
||||
/* With revision 2, we have 2 checksums */
|
||||
g_assert(!acpi_calc_checksum(rsdp_table, 20));
|
||||
g_assert(!acpi_calc_checksum(rsdp_table, 36));
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached();
|
||||
}
|
||||
}
|
||||
|
||||
static void test_acpi_rsdt_table(test_data *data)
|
||||
{
|
||||
AcpiRsdtDescriptorRev1 *rsdt_table = &data->rsdt_table;
|
||||
uint32_t addr = acpi_get_rsdt_address(data->rsdp_table);
|
||||
uint32_t *tables;
|
||||
int tables_nr;
|
||||
uint8_t checksum;
|
||||
uint32_t rsdt_table_length;
|
||||
|
||||
/* read the header */
|
||||
ACPI_READ_TABLE_HEADER(data->qts, rsdt_table, addr);
|
||||
ACPI_ASSERT_CMP(rsdt_table->signature, "RSDT");
|
||||
|
||||
rsdt_table_length = le32_to_cpu(rsdt_table->length);
|
||||
|
||||
/* compute the table entries in rsdt */
|
||||
tables_nr = (rsdt_table_length - sizeof(AcpiRsdtDescriptorRev1)) /
|
||||
sizeof(uint32_t);
|
||||
g_assert(tables_nr > 0);
|
||||
|
||||
/* get the addresses of the tables pointed by rsdt */
|
||||
tables = g_new0(uint32_t, tables_nr);
|
||||
ACPI_READ_ARRAY_PTR(data->qts, tables, tables_nr, addr);
|
||||
|
||||
checksum = acpi_calc_checksum((uint8_t *)rsdt_table, rsdt_table_length) +
|
||||
acpi_calc_checksum((uint8_t *)tables,
|
||||
tables_nr * sizeof(uint32_t));
|
||||
g_assert(!checksum);
|
||||
|
||||
/* SSDT tables after FADT */
|
||||
data->rsdt_tables_addr = tables;
|
||||
data->rsdt_tables_nr = tables_nr;
|
||||
}
|
||||
|
||||
static void fadt_fetch_facs_and_dsdt_ptrs(test_data *data)
|
||||
{
|
||||
uint32_t addr;
|
||||
AcpiTableHeader hdr;
|
||||
|
||||
/* FADT table comes first */
|
||||
addr = le32_to_cpu(data->rsdt_tables_addr[0]);
|
||||
ACPI_READ_TABLE_HEADER(data->qts, &hdr, addr);
|
||||
ACPI_ASSERT_CMP(hdr.signature, "FACP");
|
||||
|
||||
ACPI_READ_FIELD(data->qts, data->facs_addr, addr);
|
||||
ACPI_READ_FIELD(data->qts, data->dsdt_addr, addr);
|
||||
}
|
||||
|
||||
static void sanitize_fadt_ptrs(test_data *data)
|
||||
{
|
||||
/* fixup pointers in FADT */
|
||||
int i;
|
||||
|
||||
for (i = 0; i < data->tables->len; i++) {
|
||||
AcpiSdtTable *sdt = &g_array_index(data->tables, AcpiSdtTable, i);
|
||||
|
||||
if (memcmp(&sdt->header.signature, "FACP", 4)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* check original FADT checksum before sanitizing table */
|
||||
g_assert(!(uint8_t)(
|
||||
acpi_calc_checksum((uint8_t *)sdt, sizeof(AcpiTableHeader)) +
|
||||
acpi_calc_checksum((uint8_t *)sdt->aml, sdt->aml_len)
|
||||
));
|
||||
|
||||
/* sdt->aml field offset := spec offset - header size */
|
||||
memset(sdt->aml + 0, 0, 4); /* sanitize FIRMWARE_CTRL(36) ptr */
|
||||
memset(sdt->aml + 4, 0, 4); /* sanitize DSDT(40) ptr */
|
||||
if (sdt->header.revision >= 3) {
|
||||
memset(sdt->aml + 96, 0, 8); /* sanitize X_FIRMWARE_CTRL(132) ptr */
|
||||
memset(sdt->aml + 104, 0, 8); /* sanitize X_DSDT(140) ptr */
|
||||
}
|
||||
|
||||
/* update checksum */
|
||||
sdt->header.checksum = 0;
|
||||
sdt->header.checksum -=
|
||||
acpi_calc_checksum((uint8_t *)sdt, sizeof(AcpiTableHeader)) +
|
||||
acpi_calc_checksum((uint8_t *)sdt->aml, sdt->aml_len);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void test_acpi_facs_table(test_data *data)
|
||||
{
|
||||
AcpiFacsDescriptorRev1 *facs_table = &data->facs_table;
|
||||
uint32_t addr = le32_to_cpu(data->facs_addr);
|
||||
|
||||
ACPI_READ_FIELD(data->qts, facs_table->signature, addr);
|
||||
ACPI_READ_FIELD(data->qts, facs_table->length, addr);
|
||||
ACPI_READ_FIELD(data->qts, facs_table->hardware_signature, addr);
|
||||
ACPI_READ_FIELD(data->qts, facs_table->firmware_waking_vector, addr);
|
||||
ACPI_READ_FIELD(data->qts, facs_table->global_lock, addr);
|
||||
ACPI_READ_FIELD(data->qts, facs_table->flags, addr);
|
||||
ACPI_READ_ARRAY(data->qts, facs_table->resverved3, addr);
|
||||
|
||||
ACPI_ASSERT_CMP(facs_table->signature, "FACS");
|
||||
}
|
||||
|
||||
/** fetch_table
|
||||
* load ACPI table at @addr into table descriptor @sdt_table
|
||||
* and check that header checksum matches actual one.
|
||||
*/
|
||||
static void fetch_table(QTestState *qts, AcpiSdtTable *sdt_table, uint32_t addr)
|
||||
{
|
||||
uint8_t checksum;
|
||||
|
||||
memset(sdt_table, 0, sizeof(*sdt_table));
|
||||
ACPI_READ_TABLE_HEADER(qts, &sdt_table->header, addr);
|
||||
|
||||
sdt_table->aml_len = le32_to_cpu(sdt_table->header.length)
|
||||
- sizeof(AcpiTableHeader);
|
||||
sdt_table->aml = g_malloc0(sdt_table->aml_len);
|
||||
ACPI_READ_ARRAY_PTR(qts, sdt_table->aml, sdt_table->aml_len, addr);
|
||||
|
||||
checksum = acpi_calc_checksum((uint8_t *)sdt_table,
|
||||
sizeof(AcpiTableHeader)) +
|
||||
acpi_calc_checksum((uint8_t *)sdt_table->aml,
|
||||
sdt_table->aml_len);
|
||||
g_assert(!checksum);
|
||||
}
|
||||
|
||||
static void test_acpi_dsdt_table(test_data *data)
|
||||
{
|
||||
AcpiSdtTable dsdt_table;
|
||||
uint32_t addr = le32_to_cpu(data->dsdt_addr);
|
||||
|
||||
fetch_table(data->qts, &dsdt_table, addr);
|
||||
ACPI_ASSERT_CMP(dsdt_table.header.signature, "DSDT");
|
||||
|
||||
/* Since DSDT isn't in RSDT, add DSDT to ASL test tables list manually */
|
||||
g_array_append_val(data->tables, dsdt_table);
|
||||
}
|
||||
|
||||
/* Load all tables and add to test list directly RSDT referenced tables */
|
||||
static void fetch_rsdt_referenced_tables(test_data *data)
|
||||
{
|
||||
int tables_nr = data->rsdt_tables_nr;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < tables_nr; i++) {
|
||||
AcpiSdtTable ssdt_table;
|
||||
uint32_t addr;
|
||||
|
||||
addr = le32_to_cpu(data->rsdt_tables_addr[i]);
|
||||
fetch_table(data->qts, &ssdt_table, addr);
|
||||
|
||||
/* Add table to ASL test tables list */
|
||||
g_array_append_val(data->tables, ssdt_table);
|
||||
}
|
||||
}
|
||||
|
||||
static void dump_aml_files(test_data *data, bool rebuild)
|
||||
{
|
||||
AcpiSdtTable *sdt;
|
||||
GError *error = NULL;
|
||||
gchar *aml_file = NULL;
|
||||
gint fd;
|
||||
ssize_t ret;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < data->tables->len; ++i) {
|
||||
const char *ext = data->variant ? data->variant : "";
|
||||
sdt = &g_array_index(data->tables, AcpiSdtTable, i);
|
||||
g_assert(sdt->aml);
|
||||
|
||||
if (rebuild) {
|
||||
aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir, data->machine,
|
||||
(gchar *)&sdt->header.signature, ext);
|
||||
fd = g_open(aml_file, O_WRONLY|O_TRUNC|O_CREAT,
|
||||
S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH);
|
||||
} else {
|
||||
fd = g_file_open_tmp("aml-XXXXXX", &sdt->aml_file, &error);
|
||||
g_assert_no_error(error);
|
||||
}
|
||||
g_assert(fd >= 0);
|
||||
|
||||
ret = qemu_write_full(fd, sdt, sizeof(AcpiTableHeader));
|
||||
g_assert(ret == sizeof(AcpiTableHeader));
|
||||
ret = qemu_write_full(fd, sdt->aml, sdt->aml_len);
|
||||
g_assert(ret == sdt->aml_len);
|
||||
|
||||
close(fd);
|
||||
|
||||
g_free(aml_file);
|
||||
}
|
||||
}
|
||||
|
||||
static bool compare_signature(AcpiSdtTable *sdt, const char *signature)
|
||||
{
|
||||
return !memcmp(&sdt->header.signature, signature, 4);
|
||||
}
|
||||
|
||||
static bool load_asl(GArray *sdts, AcpiSdtTable *sdt)
|
||||
{
|
||||
AcpiSdtTable *temp;
|
||||
GError *error = NULL;
|
||||
GString *command_line = g_string_new(iasl);
|
||||
gint fd;
|
||||
gchar *out, *out_err;
|
||||
gboolean ret;
|
||||
int i;
|
||||
|
||||
fd = g_file_open_tmp("asl-XXXXXX.dsl", &sdt->asl_file, &error);
|
||||
g_assert_no_error(error);
|
||||
close(fd);
|
||||
|
||||
/* build command line */
|
||||
g_string_append_printf(command_line, " -p %s ", sdt->asl_file);
|
||||
if (compare_signature(sdt, "DSDT") ||
|
||||
compare_signature(sdt, "SSDT")) {
|
||||
for (i = 0; i < sdts->len; ++i) {
|
||||
temp = &g_array_index(sdts, AcpiSdtTable, i);
|
||||
if (compare_signature(temp, "DSDT") ||
|
||||
compare_signature(temp, "SSDT")) {
|
||||
g_string_append_printf(command_line, "-e %s ", temp->aml_file);
|
||||
}
|
||||
}
|
||||
}
|
||||
g_string_append_printf(command_line, "-d %s", sdt->aml_file);
|
||||
|
||||
/* pass 'out' and 'out_err' in order to be redirected */
|
||||
ret = g_spawn_command_line_sync(command_line->str, &out, &out_err, NULL, &error);
|
||||
g_assert_no_error(error);
|
||||
if (ret) {
|
||||
ret = g_file_get_contents(sdt->asl_file, &sdt->asl,
|
||||
&sdt->asl_len, &error);
|
||||
g_assert(ret);
|
||||
g_assert_no_error(error);
|
||||
ret = (sdt->asl_len > 0);
|
||||
}
|
||||
|
||||
g_free(out);
|
||||
g_free(out_err);
|
||||
g_string_free(command_line, true);
|
||||
|
||||
return !ret;
|
||||
}
|
||||
|
||||
#define COMMENT_END "*/"
|
||||
#define DEF_BLOCK "DefinitionBlock ("
|
||||
#define BLOCK_NAME_END ","
|
||||
|
||||
static GString *normalize_asl(gchar *asl_code)
|
||||
{
|
||||
GString *asl = g_string_new(asl_code);
|
||||
gchar *comment, *block_name;
|
||||
|
||||
/* strip comments (different generation days) */
|
||||
comment = g_strstr_len(asl->str, asl->len, COMMENT_END);
|
||||
if (comment) {
|
||||
comment += strlen(COMMENT_END);
|
||||
while (*comment == '\n') {
|
||||
comment++;
|
||||
}
|
||||
asl = g_string_erase(asl, 0, comment - asl->str);
|
||||
}
|
||||
|
||||
/* strip def block name (it has file path in it) */
|
||||
if (g_str_has_prefix(asl->str, DEF_BLOCK)) {
|
||||
block_name = g_strstr_len(asl->str, asl->len, BLOCK_NAME_END);
|
||||
g_assert(block_name);
|
||||
asl = g_string_erase(asl, 0,
|
||||
block_name + sizeof(BLOCK_NAME_END) - asl->str);
|
||||
}
|
||||
|
||||
return asl;
|
||||
}
|
||||
|
||||
static GArray *load_expected_aml(test_data *data)
|
||||
{
|
||||
int i;
|
||||
AcpiSdtTable *sdt;
|
||||
GError *error = NULL;
|
||||
gboolean ret;
|
||||
|
||||
GArray *exp_tables = g_array_new(false, true, sizeof(AcpiSdtTable));
|
||||
if (getenv("V")) {
|
||||
fputc('\n', stderr);
|
||||
}
|
||||
for (i = 0; i < data->tables->len; ++i) {
|
||||
AcpiSdtTable exp_sdt;
|
||||
gchar *aml_file = NULL;
|
||||
const char *ext = data->variant ? data->variant : "";
|
||||
|
||||
sdt = &g_array_index(data->tables, AcpiSdtTable, i);
|
||||
|
||||
memset(&exp_sdt, 0, sizeof(exp_sdt));
|
||||
exp_sdt.header.signature = sdt->header.signature;
|
||||
|
||||
try_again:
|
||||
aml_file = g_strdup_printf("%s/%s/%.4s%s", data_dir, data->machine,
|
||||
(gchar *)&sdt->header.signature, ext);
|
||||
if (getenv("V")) {
|
||||
fprintf(stderr, "Looking for expected file '%s'\n", aml_file);
|
||||
}
|
||||
if (g_file_test(aml_file, G_FILE_TEST_EXISTS)) {
|
||||
exp_sdt.aml_file = aml_file;
|
||||
} else if (*ext != '\0') {
|
||||
/* try fallback to generic (extension less) expected file */
|
||||
ext = "";
|
||||
g_free(aml_file);
|
||||
goto try_again;
|
||||
}
|
||||
g_assert(exp_sdt.aml_file);
|
||||
if (getenv("V")) {
|
||||
fprintf(stderr, "Using expected file '%s'\n", aml_file);
|
||||
}
|
||||
ret = g_file_get_contents(aml_file, &exp_sdt.aml,
|
||||
&exp_sdt.aml_len, &error);
|
||||
g_assert(ret);
|
||||
g_assert_no_error(error);
|
||||
g_assert(exp_sdt.aml);
|
||||
g_assert(exp_sdt.aml_len);
|
||||
|
||||
g_array_append_val(exp_tables, exp_sdt);
|
||||
}
|
||||
|
||||
return exp_tables;
|
||||
}
|
||||
|
||||
/* test the list of tables in @data->tables against reference tables */
|
||||
static void test_acpi_asl(test_data *data)
|
||||
{
|
||||
int i;
|
||||
AcpiSdtTable *sdt, *exp_sdt;
|
||||
test_data exp_data;
|
||||
gboolean exp_err, err;
|
||||
|
||||
memset(&exp_data, 0, sizeof(exp_data));
|
||||
exp_data.tables = load_expected_aml(data);
|
||||
dump_aml_files(data, false);
|
||||
for (i = 0; i < data->tables->len; ++i) {
|
||||
GString *asl, *exp_asl;
|
||||
|
||||
sdt = &g_array_index(data->tables, AcpiSdtTable, i);
|
||||
exp_sdt = &g_array_index(exp_data.tables, AcpiSdtTable, i);
|
||||
|
||||
err = load_asl(data->tables, sdt);
|
||||
asl = normalize_asl(sdt->asl);
|
||||
|
||||
exp_err = load_asl(exp_data.tables, exp_sdt);
|
||||
exp_asl = normalize_asl(exp_sdt->asl);
|
||||
|
||||
/* TODO: check for warnings */
|
||||
g_assert(!err || exp_err);
|
||||
|
||||
if (g_strcmp0(asl->str, exp_asl->str)) {
|
||||
if (exp_err) {
|
||||
fprintf(stderr,
|
||||
"Warning! iasl couldn't parse the expected aml\n");
|
||||
} else {
|
||||
uint32_t signature = cpu_to_le32(exp_sdt->header.signature);
|
||||
sdt->tmp_files_retain = true;
|
||||
exp_sdt->tmp_files_retain = true;
|
||||
fprintf(stderr,
|
||||
"acpi-test: Warning! %.4s mismatch. "
|
||||
"Actual [asl:%s, aml:%s], Expected [asl:%s, aml:%s].\n",
|
||||
(gchar *)&signature,
|
||||
sdt->asl_file, sdt->aml_file,
|
||||
exp_sdt->asl_file, exp_sdt->aml_file);
|
||||
if (getenv("V")) {
|
||||
const char *diff_cmd = getenv("DIFF");
|
||||
if (diff_cmd) {
|
||||
int ret G_GNUC_UNUSED;
|
||||
char *diff = g_strdup_printf("%s %s %s", diff_cmd,
|
||||
exp_sdt->asl_file, sdt->asl_file);
|
||||
ret = system(diff) ;
|
||||
g_free(diff);
|
||||
} else {
|
||||
fprintf(stderr, "acpi-test: Warning. not showing "
|
||||
"difference since no diff utility is specified. "
|
||||
"Set 'DIFF' environment variable to a preferred "
|
||||
"diff utility and run 'make V=1 check' again to "
|
||||
"see ASL difference.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
g_string_free(asl, true);
|
||||
g_string_free(exp_asl, true);
|
||||
}
|
||||
|
||||
free_test_data(&exp_data);
|
||||
}
|
||||
|
||||
static bool smbios_ep_table_ok(test_data *data)
|
||||
{
|
||||
struct smbios_21_entry_point *ep_table = &data->smbios_ep_table;
|
||||
uint32_t addr = data->smbios_ep_addr;
|
||||
|
||||
ACPI_READ_ARRAY(data->qts, ep_table->anchor_string, addr);
|
||||
if (memcmp(ep_table->anchor_string, "_SM_", 4)) {
|
||||
return false;
|
||||
}
|
||||
ACPI_READ_FIELD(data->qts, ep_table->checksum, addr);
|
||||
ACPI_READ_FIELD(data->qts, ep_table->length, addr);
|
||||
ACPI_READ_FIELD(data->qts, ep_table->smbios_major_version, addr);
|
||||
ACPI_READ_FIELD(data->qts, ep_table->smbios_minor_version, addr);
|
||||
ACPI_READ_FIELD(data->qts, ep_table->max_structure_size, addr);
|
||||
ACPI_READ_FIELD(data->qts, ep_table->entry_point_revision, addr);
|
||||
ACPI_READ_ARRAY(data->qts, ep_table->formatted_area, addr);
|
||||
ACPI_READ_ARRAY(data->qts, ep_table->intermediate_anchor_string, addr);
|
||||
if (memcmp(ep_table->intermediate_anchor_string, "_DMI_", 5)) {
|
||||
return false;
|
||||
}
|
||||
ACPI_READ_FIELD(data->qts, ep_table->intermediate_checksum, addr);
|
||||
ACPI_READ_FIELD(data->qts, ep_table->structure_table_length, addr);
|
||||
if (ep_table->structure_table_length == 0) {
|
||||
return false;
|
||||
}
|
||||
ACPI_READ_FIELD(data->qts, ep_table->structure_table_address, addr);
|
||||
ACPI_READ_FIELD(data->qts, ep_table->number_of_structures, addr);
|
||||
if (ep_table->number_of_structures == 0) {
|
||||
return false;
|
||||
}
|
||||
ACPI_READ_FIELD(data->qts, ep_table->smbios_bcd_revision, addr);
|
||||
if (acpi_calc_checksum((uint8_t *)ep_table, sizeof *ep_table) ||
|
||||
acpi_calc_checksum((uint8_t *)ep_table + 0x10,
|
||||
sizeof *ep_table - 0x10)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void test_smbios_entry_point(test_data *data)
|
||||
{
|
||||
uint32_t off;
|
||||
|
||||
/* find smbios entry point structure */
|
||||
for (off = 0xf0000; off < 0x100000; off += 0x10) {
|
||||
uint8_t sig[] = "_SM_";
|
||||
int i;
|
||||
|
||||
for (i = 0; i < sizeof sig - 1; ++i) {
|
||||
sig[i] = qtest_readb(data->qts, off + i);
|
||||
}
|
||||
|
||||
if (!memcmp(sig, "_SM_", sizeof sig)) {
|
||||
/* signature match, but is this a valid entry point? */
|
||||
data->smbios_ep_addr = off;
|
||||
if (smbios_ep_table_ok(data)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
g_assert_cmphex(off, <, 0x100000);
|
||||
}
|
||||
|
||||
static inline bool smbios_single_instance(uint8_t type)
|
||||
{
|
||||
switch (type) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
case 16:
|
||||
case 32:
|
||||
case 127:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static void test_smbios_structs(test_data *data)
|
||||
{
|
||||
DECLARE_BITMAP(struct_bitmap, SMBIOS_MAX_TYPE+1) = { 0 };
|
||||
struct smbios_21_entry_point *ep_table = &data->smbios_ep_table;
|
||||
uint32_t addr = le32_to_cpu(ep_table->structure_table_address);
|
||||
int i, len, max_len = 0;
|
||||
uint8_t type, prv, crt;
|
||||
|
||||
/* walk the smbios tables */
|
||||
for (i = 0; i < le16_to_cpu(ep_table->number_of_structures); i++) {
|
||||
|
||||
/* grab type and formatted area length from struct header */
|
||||
type = qtest_readb(data->qts, addr);
|
||||
g_assert_cmpuint(type, <=, SMBIOS_MAX_TYPE);
|
||||
len = qtest_readb(data->qts, addr + 1);
|
||||
|
||||
/* single-instance structs must not have been encountered before */
|
||||
if (smbios_single_instance(type)) {
|
||||
g_assert(!test_bit(type, struct_bitmap));
|
||||
}
|
||||
set_bit(type, struct_bitmap);
|
||||
|
||||
/* seek to end of unformatted string area of this struct ("\0\0") */
|
||||
prv = crt = 1;
|
||||
while (prv || crt) {
|
||||
prv = crt;
|
||||
crt = qtest_readb(data->qts, addr + len);
|
||||
len++;
|
||||
}
|
||||
|
||||
/* keep track of max. struct size */
|
||||
if (max_len < len) {
|
||||
max_len = len;
|
||||
g_assert_cmpuint(max_len, <=, ep_table->max_structure_size);
|
||||
}
|
||||
|
||||
/* start of next structure */
|
||||
addr += len;
|
||||
}
|
||||
|
||||
/* total table length and max struct size must match entry point values */
|
||||
g_assert_cmpuint(le16_to_cpu(ep_table->structure_table_length), ==,
|
||||
addr - le32_to_cpu(ep_table->structure_table_address));
|
||||
g_assert_cmpuint(le16_to_cpu(ep_table->max_structure_size), ==, max_len);
|
||||
|
||||
/* required struct types must all be present */
|
||||
for (i = 0; i < data->required_struct_types_len; i++) {
|
||||
g_assert(test_bit(data->required_struct_types[i], struct_bitmap));
|
||||
}
|
||||
}
|
||||
|
||||
static void test_acpi_one(const char *params, test_data *data)
|
||||
{
|
||||
char *args;
|
||||
|
||||
/* Disable kernel irqchip to be able to override apic irq0. */
|
||||
args = g_strdup_printf("-machine %s,accel=%s,kernel-irqchip=off "
|
||||
"-net none -display none %s "
|
||||
"-drive id=hd0,if=none,file=%s,format=raw "
|
||||
"-device ide-hd,drive=hd0 ",
|
||||
data->machine, "kvm:tcg",
|
||||
params ? params : "", disk);
|
||||
|
||||
data->qts = qtest_init(args);
|
||||
|
||||
boot_sector_test(data->qts);
|
||||
|
||||
data->tables = g_array_new(false, true, sizeof(AcpiSdtTable));
|
||||
test_acpi_rsdp_address(data);
|
||||
test_acpi_rsdp_table(data);
|
||||
test_acpi_rsdt_table(data);
|
||||
fadt_fetch_facs_and_dsdt_ptrs(data);
|
||||
test_acpi_facs_table(data);
|
||||
test_acpi_dsdt_table(data);
|
||||
fetch_rsdt_referenced_tables(data);
|
||||
|
||||
sanitize_fadt_ptrs(data);
|
||||
|
||||
if (iasl) {
|
||||
if (getenv(ACPI_REBUILD_EXPECTED_AML)) {
|
||||
dump_aml_files(data, true);
|
||||
} else {
|
||||
test_acpi_asl(data);
|
||||
}
|
||||
}
|
||||
|
||||
test_smbios_entry_point(data);
|
||||
test_smbios_structs(data);
|
||||
|
||||
assert(!global_qtest);
|
||||
qtest_quit(data->qts);
|
||||
g_free(args);
|
||||
}
|
||||
|
||||
static uint8_t base_required_struct_types[] = {
|
||||
0, 1, 3, 4, 16, 17, 19, 32, 127
|
||||
};
|
||||
|
||||
static void test_acpi_piix4_tcg(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
/* Supplying -machine accel argument overrides the default (qtest).
|
||||
* This is to make guest actually run.
|
||||
*/
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_PC;
|
||||
data.required_struct_types = base_required_struct_types;
|
||||
data.required_struct_types_len = ARRAY_SIZE(base_required_struct_types);
|
||||
test_acpi_one(NULL, &data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_piix4_tcg_bridge(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_PC;
|
||||
data.variant = ".bridge";
|
||||
data.required_struct_types = base_required_struct_types;
|
||||
data.required_struct_types_len = ARRAY_SIZE(base_required_struct_types);
|
||||
test_acpi_one("-device pci-bridge,chassis_nr=1", &data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_q35_tcg(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_Q35;
|
||||
data.required_struct_types = base_required_struct_types;
|
||||
data.required_struct_types_len = ARRAY_SIZE(base_required_struct_types);
|
||||
test_acpi_one(NULL, &data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_q35_tcg_bridge(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_Q35;
|
||||
data.variant = ".bridge";
|
||||
data.required_struct_types = base_required_struct_types;
|
||||
data.required_struct_types_len = ARRAY_SIZE(base_required_struct_types);
|
||||
test_acpi_one("-device pci-bridge,chassis_nr=1",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_q35_tcg_mmio64(void)
|
||||
{
|
||||
test_data data = {
|
||||
.machine = MACHINE_Q35,
|
||||
.variant = ".mmio64",
|
||||
.required_struct_types = base_required_struct_types,
|
||||
.required_struct_types_len = ARRAY_SIZE(base_required_struct_types)
|
||||
};
|
||||
|
||||
test_acpi_one("-m 128M,slots=1,maxmem=2G "
|
||||
"-device pci-testdev,membar=2G",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_piix4_tcg_cphp(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_PC;
|
||||
data.variant = ".cphp";
|
||||
test_acpi_one("-smp 2,cores=3,sockets=2,maxcpus=6"
|
||||
" -numa node -numa node"
|
||||
" -numa dist,src=0,dst=1,val=21",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_q35_tcg_cphp(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_Q35;
|
||||
data.variant = ".cphp";
|
||||
test_acpi_one(" -smp 2,cores=3,sockets=2,maxcpus=6"
|
||||
" -numa node -numa node"
|
||||
" -numa dist,src=0,dst=1,val=21",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static uint8_t ipmi_required_struct_types[] = {
|
||||
0, 1, 3, 4, 16, 17, 19, 32, 38, 127
|
||||
};
|
||||
|
||||
static void test_acpi_q35_tcg_ipmi(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_Q35;
|
||||
data.variant = ".ipmibt";
|
||||
data.required_struct_types = ipmi_required_struct_types;
|
||||
data.required_struct_types_len = ARRAY_SIZE(ipmi_required_struct_types);
|
||||
test_acpi_one("-device ipmi-bmc-sim,id=bmc0"
|
||||
" -device isa-ipmi-bt,bmc=bmc0",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_piix4_tcg_ipmi(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
/* Supplying -machine accel argument overrides the default (qtest).
|
||||
* This is to make guest actually run.
|
||||
*/
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_PC;
|
||||
data.variant = ".ipmikcs";
|
||||
data.required_struct_types = ipmi_required_struct_types;
|
||||
data.required_struct_types_len = ARRAY_SIZE(ipmi_required_struct_types);
|
||||
test_acpi_one("-device ipmi-bmc-sim,id=bmc0"
|
||||
" -device isa-ipmi-kcs,irq=0,bmc=bmc0",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_q35_tcg_memhp(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_Q35;
|
||||
data.variant = ".memhp";
|
||||
test_acpi_one(" -m 128,slots=3,maxmem=1G"
|
||||
" -numa node -numa node"
|
||||
" -numa dist,src=0,dst=1,val=21",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_piix4_tcg_memhp(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_PC;
|
||||
data.variant = ".memhp";
|
||||
test_acpi_one(" -m 128,slots=3,maxmem=1G"
|
||||
" -numa node -numa node"
|
||||
" -numa dist,src=0,dst=1,val=21",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_q35_tcg_numamem(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_Q35;
|
||||
data.variant = ".numamem";
|
||||
test_acpi_one(" -numa node -numa node,mem=128", &data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_piix4_tcg_numamem(void)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = MACHINE_PC;
|
||||
data.variant = ".numamem";
|
||||
test_acpi_one(" -numa node -numa node,mem=128", &data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_tcg_dimm_pxm(const char *machine)
|
||||
{
|
||||
test_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.machine = machine;
|
||||
data.variant = ".dimmpxm";
|
||||
test_acpi_one(" -machine nvdimm=on,nvdimm-persistence=cpu"
|
||||
" -smp 4,sockets=4"
|
||||
" -m 128M,slots=3,maxmem=1G"
|
||||
" -numa node,mem=32M,nodeid=0"
|
||||
" -numa node,mem=32M,nodeid=1"
|
||||
" -numa node,mem=32M,nodeid=2"
|
||||
" -numa node,mem=32M,nodeid=3"
|
||||
" -numa cpu,node-id=0,socket-id=0"
|
||||
" -numa cpu,node-id=1,socket-id=1"
|
||||
" -numa cpu,node-id=2,socket-id=2"
|
||||
" -numa cpu,node-id=3,socket-id=3"
|
||||
" -object memory-backend-ram,id=ram0,size=128M"
|
||||
" -object memory-backend-ram,id=nvm0,size=128M"
|
||||
" -device pc-dimm,id=dimm0,memdev=ram0,node=1"
|
||||
" -device nvdimm,id=dimm1,memdev=nvm0,node=2",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
||||
static void test_acpi_q35_tcg_dimm_pxm(void)
|
||||
{
|
||||
test_acpi_tcg_dimm_pxm(MACHINE_Q35);
|
||||
}
|
||||
|
||||
static void test_acpi_piix4_tcg_dimm_pxm(void)
|
||||
{
|
||||
test_acpi_tcg_dimm_pxm(MACHINE_PC);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
const char *arch = qtest_get_arch();
|
||||
int ret;
|
||||
|
||||
ret = boot_sector_init(disk);
|
||||
if(ret)
|
||||
return ret;
|
||||
|
||||
g_test_init(&argc, &argv, NULL);
|
||||
|
||||
if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
|
||||
qtest_add_func("acpi/piix4", test_acpi_piix4_tcg);
|
||||
qtest_add_func("acpi/piix4/bridge", test_acpi_piix4_tcg_bridge);
|
||||
qtest_add_func("acpi/q35", test_acpi_q35_tcg);
|
||||
qtest_add_func("acpi/q35/bridge", test_acpi_q35_tcg_bridge);
|
||||
qtest_add_func("acpi/q35/mmio64", test_acpi_q35_tcg_mmio64);
|
||||
qtest_add_func("acpi/piix4/ipmi", test_acpi_piix4_tcg_ipmi);
|
||||
qtest_add_func("acpi/q35/ipmi", test_acpi_q35_tcg_ipmi);
|
||||
qtest_add_func("acpi/piix4/cpuhp", test_acpi_piix4_tcg_cphp);
|
||||
qtest_add_func("acpi/q35/cpuhp", test_acpi_q35_tcg_cphp);
|
||||
qtest_add_func("acpi/piix4/memhp", test_acpi_piix4_tcg_memhp);
|
||||
qtest_add_func("acpi/q35/memhp", test_acpi_q35_tcg_memhp);
|
||||
qtest_add_func("acpi/piix4/numamem", test_acpi_piix4_tcg_numamem);
|
||||
qtest_add_func("acpi/q35/numamem", test_acpi_q35_tcg_numamem);
|
||||
qtest_add_func("acpi/piix4/dimmpxm", test_acpi_piix4_tcg_dimm_pxm);
|
||||
qtest_add_func("acpi/q35/dimmpxm", test_acpi_q35_tcg_dimm_pxm);
|
||||
}
|
||||
ret = g_test_run();
|
||||
boot_sector_cleanup(disk);
|
||||
return ret;
|
||||
}
|
0
tests/data/acpi/diff-aml.sh
Normal file
0
tests/data/acpi/diff-aml.sh
Normal file
21
tests/data/acpi/disassemle-aml.py
Normal file
21
tests/data/acpi/disassemle-aml.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import os, re
|
||||
root = "tests/data/acpi"
|
||||
for machine in os.listdir(root):
|
||||
machine_root = os.path.join(root, machine)
|
||||
if not os.path.isdir(machine_root):
|
||||
continue
|
||||
files = os.listdir(machine_root):
|
||||
for file in files:
|
||||
if file.endswith(".dsl"):
|
||||
continue
|
||||
extension_prefix = "^[^.]*\."
|
||||
if re.match(extension_prefix, file):
|
||||
variant = re.sub(extension_prefix, "", file)
|
||||
|
||||
|
||||
for dirpath, dirnames, filenames in os.walk("tests/data/acpi"):
|
||||
for file in files:
|
||||
if file.endswith(".txt"):
|
||||
print(os.path.join(root, file))
|
56
tests/data/acpi/microvm/APIC.dsl
Normal file
56
tests/data/acpi/microvm/APIC.dsl
Normal file
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/microvm/APIC, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000046
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : D7
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 01 [I/O APIC]
|
||||
[035h 0053 1] Length : 0C
|
||||
[036h 0054 1] I/O Apic ID : 00
|
||||
[037h 0055 1] Reserved : 00
|
||||
[038h 0056 4] Address : FEC00000
|
||||
[03Ch 0060 4] Interrupt : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[041h 0065 1] Length : 06
|
||||
[042h 0066 1] Processor ID : FF
|
||||
[043h 0067 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[045h 0069 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 70 (0x46)
|
||||
|
||||
0000: 41 50 49 43 46 00 00 00 01 D7 42 4F 43 48 53 20 // APICF.....BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................
|
||||
0040: 04 06 FF 00 00 01 // ......
|
121
tests/data/acpi/microvm/DSDT.dsl
Normal file
121
tests/data/acpi/microvm/DSDT.dsl
Normal file
|
@ -0,0 +1,121 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembling to symbolic ASL+ operators
|
||||
*
|
||||
* Disassembly of tests/data/acpi/microvm/DSDT, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* Original Table Header:
|
||||
* Signature "DSDT"
|
||||
* Length 0x0000016D (365)
|
||||
* Revision 0x02
|
||||
* Checksum 0x62
|
||||
* OEM ID "BOCHS "
|
||||
* OEM Table ID "BXPCDSDT"
|
||||
* OEM Revision 0x00000001 (1)
|
||||
* Compiler ID "BXPC"
|
||||
* Compiler Version 0x00000001 (1)
|
||||
*/
|
||||
DefinitionBlock ("", "DSDT", 2, "BOCHS ", "BXPCDSDT", 0x00000001)
|
||||
{
|
||||
Scope (_SB)
|
||||
{
|
||||
Device (FWCF)
|
||||
{
|
||||
Name (_HID, "QEMU0002") // _HID: Hardware ID
|
||||
Name (_STA, 0x0B) // _STA: Status
|
||||
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
|
||||
{
|
||||
IO (Decode16,
|
||||
0x0510, // Range Minimum
|
||||
0x0510, // Range Maximum
|
||||
0x01, // Alignment
|
||||
0x0C, // Length
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
Device (COM1)
|
||||
{
|
||||
Name (_HID, EisaId ("PNP0501") /* 16550A-compatible COM Serial Port */) // _HID: Hardware ID
|
||||
Name (_UID, One) // _UID: Unique ID
|
||||
Name (_STA, 0x0F) // _STA: Status
|
||||
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
|
||||
{
|
||||
IO (Decode16,
|
||||
0x03F8, // Range Minimum
|
||||
0x03F8, // Range Maximum
|
||||
0x00, // Alignment
|
||||
0x08, // Length
|
||||
)
|
||||
IRQNoFlags ()
|
||||
{4}
|
||||
})
|
||||
}
|
||||
|
||||
Device (GED)
|
||||
{
|
||||
Name (_HID, "ACPI0013" /* Generic Event Device */) // _HID: Hardware ID
|
||||
Name (_UID, "GED") // _UID: Unique ID
|
||||
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
|
||||
{
|
||||
Interrupt (ResourceConsumer, Edge, ActiveHigh, Exclusive, ,, )
|
||||
{
|
||||
0x00000009,
|
||||
}
|
||||
})
|
||||
OperationRegion (EREG, SystemMemory, 0xFEA00000, 0x04)
|
||||
Field (EREG, DWordAcc, NoLock, WriteAsZeros)
|
||||
{
|
||||
ESEL, 32
|
||||
}
|
||||
|
||||
Method (_EVT, 1, Serialized) // _EVT: Event
|
||||
{
|
||||
Local0 = ESEL /* \_SB_.GED_.ESEL */
|
||||
If (((Local0 & 0x02) == 0x02))
|
||||
{
|
||||
Notify (PWRB, 0x80) // Status Change
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Device (PWRB)
|
||||
{
|
||||
Name (_HID, "PNP0C0C" /* Power Button Device */) // _HID: Hardware ID
|
||||
Name (_UID, Zero) // _UID: Unique ID
|
||||
}
|
||||
|
||||
Device (VR07)
|
||||
{
|
||||
Name (_HID, "LNRO0005") // _HID: Hardware ID
|
||||
Name (_UID, 0x07) // _UID: Unique ID
|
||||
Name (_CCA, One) // _CCA: Cache Coherency Attribute
|
||||
Name (_CRS, ResourceTemplate () // _CRS: Current Resource Settings
|
||||
{
|
||||
Memory32Fixed (ReadWrite,
|
||||
0xFEB00E00, // Address Base
|
||||
0x00000200, // Address Length
|
||||
)
|
||||
Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
|
||||
{
|
||||
0x00000017,
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Scope (\)
|
||||
{
|
||||
Name (_S5, Package (0x04) // _S5_: S5 System State
|
||||
{
|
||||
0x05,
|
||||
Zero,
|
||||
Zero,
|
||||
Zero
|
||||
})
|
||||
}
|
||||
}
|
||||
|
196
tests/data/acpi/microvm/FACP.dsl
Normal file
196
tests/data/acpi/microvm/FACP.dsl
Normal file
|
@ -0,0 +1,196 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/microvm/FACP, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 0000010C
|
||||
[008h 0008 1] Revision : 05
|
||||
[009h 0009 1] Checksum : 7E
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 00
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0000
|
||||
[030h 0048 4] SMI Command Port : 00000000
|
||||
[034h 0052 1] ACPI Enable Value : 00
|
||||
[035h 0053 1] ACPI Disable Value : 00
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000000
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000000
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000000
|
||||
[050h 0080 4] GPE0 Block Address : 00000000
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 00
|
||||
[059h 0089 1] PM1 Control Block Length : 00
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 00
|
||||
[05Ch 0092 1] GPE0 Block Length : 00
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0000
|
||||
[062h 0098 2] C3 Latency : 0000
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 00
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 00100400
|
||||
WBINVD instruction is operational (V1) : 0
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 0
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 0
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 0
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 1
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 0
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 1
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
[074h 0116 12] Reset Register : [Generic Address Structure]
|
||||
[074h 0116 1] Space ID : 00 [SystemMemory]
|
||||
[075h 0117 1] Bit Width : 08
|
||||
[076h 0118 1] Bit Offset : 00
|
||||
[077h 0119 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[078h 0120 8] Address : 00000000FEA00202
|
||||
|
||||
[080h 0128 1] Value to cause reset : 42
|
||||
[081h 0129 2] ARM Flags (decoded below) : 0000
|
||||
PSCI Compliant : 0
|
||||
Must use HVC for PSCI : 0
|
||||
|
||||
[083h 0131 1] FADT Minor Revision : 00
|
||||
[084h 0132 8] FACS Address : 0000000000000000
|
||||
[08Ch 0140 8] DSDT Address : 0000000000000000
|
||||
[094h 0148 12] PM1A Event Block : [Generic Address Structure]
|
||||
[094h 0148 1] Space ID : 00 [SystemMemory]
|
||||
[095h 0149 1] Bit Width : 00
|
||||
[096h 0150 1] Bit Offset : 00
|
||||
[097h 0151 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[098h 0152 8] Address : 0000000000000000
|
||||
|
||||
[0A0h 0160 12] PM1B Event Block : [Generic Address Structure]
|
||||
[0A0h 0160 1] Space ID : 00 [SystemMemory]
|
||||
[0A1h 0161 1] Bit Width : 00
|
||||
[0A2h 0162 1] Bit Offset : 00
|
||||
[0A3h 0163 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0A4h 0164 8] Address : 0000000000000000
|
||||
|
||||
[0ACh 0172 12] PM1A Control Block : [Generic Address Structure]
|
||||
[0ACh 0172 1] Space ID : 00 [SystemMemory]
|
||||
[0ADh 0173 1] Bit Width : 00
|
||||
[0AEh 0174 1] Bit Offset : 00
|
||||
[0AFh 0175 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0B0h 0176 8] Address : 0000000000000000
|
||||
|
||||
[0B8h 0184 12] PM1B Control Block : [Generic Address Structure]
|
||||
[0B8h 0184 1] Space ID : 00 [SystemMemory]
|
||||
[0B9h 0185 1] Bit Width : 00
|
||||
[0BAh 0186 1] Bit Offset : 00
|
||||
[0BBh 0187 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0BCh 0188 8] Address : 0000000000000000
|
||||
|
||||
[0C4h 0196 12] PM2 Control Block : [Generic Address Structure]
|
||||
[0C4h 0196 1] Space ID : 00 [SystemMemory]
|
||||
[0C5h 0197 1] Bit Width : 00
|
||||
[0C6h 0198 1] Bit Offset : 00
|
||||
[0C7h 0199 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0C8h 0200 8] Address : 0000000000000000
|
||||
|
||||
[0D0h 0208 12] PM Timer Block : [Generic Address Structure]
|
||||
[0D0h 0208 1] Space ID : 00 [SystemMemory]
|
||||
[0D1h 0209 1] Bit Width : 00
|
||||
[0D2h 0210 1] Bit Offset : 00
|
||||
[0D3h 0211 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0D4h 0212 8] Address : 0000000000000000
|
||||
|
||||
[0DCh 0220 12] GPE0 Block : [Generic Address Structure]
|
||||
[0DCh 0220 1] Space ID : 00 [SystemMemory]
|
||||
[0DDh 0221 1] Bit Width : 00
|
||||
[0DEh 0222 1] Bit Offset : 00
|
||||
[0DFh 0223 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0E0h 0224 8] Address : 0000000000000000
|
||||
|
||||
[0E8h 0232 12] GPE1 Block : [Generic Address Structure]
|
||||
[0E8h 0232 1] Space ID : 00 [SystemMemory]
|
||||
[0E9h 0233 1] Bit Width : 00
|
||||
[0EAh 0234 1] Bit Offset : 00
|
||||
[0EBh 0235 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0ECh 0236 8] Address : 0000000000000000
|
||||
|
||||
|
||||
[0F4h 0244 12] Sleep Control Register : [Generic Address Structure]
|
||||
[0F4h 0244 1] Space ID : 00 [SystemMemory]
|
||||
[0F5h 0245 1] Bit Width : 08
|
||||
[0F6h 0246 1] Bit Offset : 00
|
||||
[0F7h 0247 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[0F8h 0248 8] Address : 00000000FEA00200
|
||||
|
||||
[100h 0256 12] Sleep Status Register : [Generic Address Structure]
|
||||
[100h 0256 1] Space ID : 00 [SystemMemory]
|
||||
[101h 0257 1] Bit Width : 08
|
||||
[102h 0258 1] Bit Offset : 00
|
||||
[103h 0259 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[104h 0260 8] Address : 00000000FEA00201
|
||||
|
||||
/**** ACPI table terminates in the middle of a data structure! (dump table) */
|
||||
|
||||
Raw Table Data: Length 268 (0x10C)
|
||||
|
||||
0000: 46 41 43 50 0C 01 00 00 05 7E 42 4F 43 48 53 20 // FACP.....~BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
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 // ................
|
||||
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0070: 00 04 10 00 00 08 00 00 02 02 A0 FE 00 00 00 00 // ................
|
||||
0080: 42 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // B...............
|
||||
0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00F0: 00 00 00 00 00 08 00 00 00 02 A0 FE 00 00 00 00 // ................
|
||||
0100: 00 08 00 00 01 02 A0 FE 00 00 00 00 // ............
|
112
tests/data/acpi/pc/APIC.acpihmat.dsl
Normal file
112
tests/data/acpi/pc/APIC.acpihmat.dsl
Normal file
|
@ -0,0 +1,112 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.acpihmat, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000080
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : DA
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[035h 0053 1] Length : 08
|
||||
[036h 0054 1] Processor ID : 01
|
||||
[037h 0055 1] Local Apic ID : 01
|
||||
[038h 0056 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[03Ch 0060 1] Subtable Type : 01 [I/O APIC]
|
||||
[03Dh 0061 1] Length : 0C
|
||||
[03Eh 0062 1] I/O Apic ID : 00
|
||||
[03Fh 0063 1] Reserved : 00
|
||||
[040h 0064 4] Address : FEC00000
|
||||
[044h 0068 4] Interrupt : 00000000
|
||||
|
||||
[048h 0072 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[049h 0073 1] Length : 0A
|
||||
[04Ah 0074 1] Bus : 00
|
||||
[04Bh 0075 1] Source : 00
|
||||
[04Ch 0076 4] Interrupt : 00000002
|
||||
[050h 0080 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[052h 0082 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[053h 0083 1] Length : 0A
|
||||
[054h 0084 1] Bus : 00
|
||||
[055h 0085 1] Source : 05
|
||||
[056h 0086 4] Interrupt : 00000005
|
||||
[05Ah 0090 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[05Ch 0092 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[05Dh 0093 1] Length : 0A
|
||||
[05Eh 0094 1] Bus : 00
|
||||
[05Fh 0095 1] Source : 09
|
||||
[060h 0096 4] Interrupt : 00000009
|
||||
[064h 0100 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[066h 0102 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[067h 0103 1] Length : 0A
|
||||
[068h 0104 1] Bus : 00
|
||||
[069h 0105 1] Source : 0A
|
||||
[06Ah 0106 4] Interrupt : 0000000A
|
||||
[06Eh 0110 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[070h 0112 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[071h 0113 1] Length : 0A
|
||||
[072h 0114 1] Bus : 00
|
||||
[073h 0115 1] Source : 0B
|
||||
[074h 0116 4] Interrupt : 0000000B
|
||||
[078h 0120 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[07Ah 0122 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[07Bh 0123 1] Length : 06
|
||||
[07Ch 0124 1] Processor ID : FF
|
||||
[07Dh 0125 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[07Fh 0127 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 128 (0x80)
|
||||
|
||||
0000: 41 50 49 43 80 00 00 00 01 DA 42 4F 43 48 53 20 // APIC......BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 00 08 01 01 01 00 00 00 01 0C 00 00 // ................
|
||||
0040: 00 00 C0 FE 00 00 00 00 02 0A 00 00 02 00 00 00 // ................
|
||||
0050: 00 00 02 0A 00 05 05 00 00 00 0D 00 02 0A 00 09 // ................
|
||||
0060: 09 00 00 00 0D 00 02 0A 00 0A 0A 00 00 00 0D 00 // ................
|
||||
0070: 02 0A 00 0B 0B 00 00 00 0D 00 04 06 FF 00 00 01 // ................
|
BIN
tests/data/acpi/pc/APIC.bridge
Normal file
BIN
tests/data/acpi/pc/APIC.bridge
Normal file
Binary file not shown.
104
tests/data/acpi/pc/APIC.bridge.dsl
Normal file
104
tests/data/acpi/pc/APIC.bridge.dsl
Normal file
|
@ -0,0 +1,104 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.bridge, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000078
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : ED
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 01 [I/O APIC]
|
||||
[035h 0053 1] Length : 0C
|
||||
[036h 0054 1] I/O Apic ID : 00
|
||||
[037h 0055 1] Reserved : 00
|
||||
[038h 0056 4] Address : FEC00000
|
||||
[03Ch 0060 4] Interrupt : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[041h 0065 1] Length : 0A
|
||||
[042h 0066 1] Bus : 00
|
||||
[043h 0067 1] Source : 00
|
||||
[044h 0068 4] Interrupt : 00000002
|
||||
[048h 0072 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[04Ah 0074 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[04Bh 0075 1] Length : 0A
|
||||
[04Ch 0076 1] Bus : 00
|
||||
[04Dh 0077 1] Source : 05
|
||||
[04Eh 0078 4] Interrupt : 00000005
|
||||
[052h 0082 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[054h 0084 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[055h 0085 1] Length : 0A
|
||||
[056h 0086 1] Bus : 00
|
||||
[057h 0087 1] Source : 09
|
||||
[058h 0088 4] Interrupt : 00000009
|
||||
[05Ch 0092 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[05Eh 0094 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[05Fh 0095 1] Length : 0A
|
||||
[060h 0096 1] Bus : 00
|
||||
[061h 0097 1] Source : 0A
|
||||
[062h 0098 4] Interrupt : 0000000A
|
||||
[066h 0102 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[068h 0104 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[069h 0105 1] Length : 0A
|
||||
[06Ah 0106 1] Bus : 00
|
||||
[06Bh 0107 1] Source : 0B
|
||||
[06Ch 0108 4] Interrupt : 0000000B
|
||||
[070h 0112 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[072h 0114 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[073h 0115 1] Length : 06
|
||||
[074h 0116 1] Processor ID : FF
|
||||
[075h 0117 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[077h 0119 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 120 (0x78)
|
||||
|
||||
0000: 41 50 49 43 78 00 00 00 01 ED 42 4F 43 48 53 20 // APICx.....BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................
|
||||
0040: 02 0A 00 00 02 00 00 00 00 00 02 0A 00 05 05 00 // ................
|
||||
0050: 00 00 0D 00 02 0A 00 09 09 00 00 00 0D 00 02 0A // ................
|
||||
0060: 00 0A 0A 00 00 00 0D 00 02 0A 00 0B 0B 00 00 00 // ................
|
||||
0070: 0D 00 04 06 FF 00 00 01 // ........
|
146
tests/data/acpi/pc/APIC.cphp.dsl
Normal file
146
tests/data/acpi/pc/APIC.cphp.dsl
Normal file
|
@ -0,0 +1,146 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.cphp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 000000A0
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 7B
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[035h 0053 1] Length : 08
|
||||
[036h 0054 1] Processor ID : 01
|
||||
[037h 0055 1] Local Apic ID : 01
|
||||
[038h 0056 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[03Ch 0060 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[03Dh 0061 1] Length : 08
|
||||
[03Eh 0062 1] Processor ID : 02
|
||||
[03Fh 0063 1] Local Apic ID : 02
|
||||
[040h 0064 4] Flags (decoded below) : 00000000
|
||||
Processor Enabled : 0
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[044h 0068 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[045h 0069 1] Length : 08
|
||||
[046h 0070 1] Processor ID : 03
|
||||
[047h 0071 1] Local Apic ID : 04
|
||||
[048h 0072 4] Flags (decoded below) : 00000000
|
||||
Processor Enabled : 0
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[04Ch 0076 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[04Dh 0077 1] Length : 08
|
||||
[04Eh 0078 1] Processor ID : 04
|
||||
[04Fh 0079 1] Local Apic ID : 05
|
||||
[050h 0080 4] Flags (decoded below) : 00000000
|
||||
Processor Enabled : 0
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[054h 0084 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[055h 0085 1] Length : 08
|
||||
[056h 0086 1] Processor ID : 05
|
||||
[057h 0087 1] Local Apic ID : 06
|
||||
[058h 0088 4] Flags (decoded below) : 00000000
|
||||
Processor Enabled : 0
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[05Ch 0092 1] Subtable Type : 01 [I/O APIC]
|
||||
[05Dh 0093 1] Length : 0C
|
||||
[05Eh 0094 1] I/O Apic ID : 00
|
||||
[05Fh 0095 1] Reserved : 00
|
||||
[060h 0096 4] Address : FEC00000
|
||||
[064h 0100 4] Interrupt : 00000000
|
||||
|
||||
[068h 0104 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[069h 0105 1] Length : 0A
|
||||
[06Ah 0106 1] Bus : 00
|
||||
[06Bh 0107 1] Source : 00
|
||||
[06Ch 0108 4] Interrupt : 00000002
|
||||
[070h 0112 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[072h 0114 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[073h 0115 1] Length : 0A
|
||||
[074h 0116 1] Bus : 00
|
||||
[075h 0117 1] Source : 05
|
||||
[076h 0118 4] Interrupt : 00000005
|
||||
[07Ah 0122 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[07Ch 0124 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[07Dh 0125 1] Length : 0A
|
||||
[07Eh 0126 1] Bus : 00
|
||||
[07Fh 0127 1] Source : 09
|
||||
[080h 0128 4] Interrupt : 00000009
|
||||
[084h 0132 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[086h 0134 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[087h 0135 1] Length : 0A
|
||||
[088h 0136 1] Bus : 00
|
||||
[089h 0137 1] Source : 0A
|
||||
[08Ah 0138 4] Interrupt : 0000000A
|
||||
[08Eh 0142 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[090h 0144 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[091h 0145 1] Length : 0A
|
||||
[092h 0146 1] Bus : 00
|
||||
[093h 0147 1] Source : 0B
|
||||
[094h 0148 4] Interrupt : 0000000B
|
||||
[098h 0152 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[09Ah 0154 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[09Bh 0155 1] Length : 06
|
||||
[09Ch 0156 1] Processor ID : FF
|
||||
[09Dh 0157 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[09Fh 0159 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 160 (0xA0)
|
||||
|
||||
0000: 41 50 49 43 A0 00 00 00 01 7B 42 4F 43 48 53 20 // APIC.....{BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 00 08 01 01 01 00 00 00 00 08 02 02 // ................
|
||||
0040: 00 00 00 00 00 08 03 04 00 00 00 00 00 08 04 05 // ................
|
||||
0050: 00 00 00 00 00 08 05 06 00 00 00 00 01 0C 00 00 // ................
|
||||
0060: 00 00 C0 FE 00 00 00 00 02 0A 00 00 02 00 00 00 // ................
|
||||
0070: 00 00 02 0A 00 05 05 00 00 00 0D 00 02 0A 00 09 // ................
|
||||
0080: 09 00 00 00 0D 00 02 0A 00 0A 0A 00 00 00 0D 00 // ................
|
||||
0090: 02 0A 00 0B 0B 00 00 00 0D 00 04 06 FF 00 00 01 // ................
|
129
tests/data/acpi/pc/APIC.dimmpxm.dsl
Normal file
129
tests/data/acpi/pc/APIC.dimmpxm.dsl
Normal file
|
@ -0,0 +1,129 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.dimmpxm, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000090
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : AE
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[035h 0053 1] Length : 08
|
||||
[036h 0054 1] Processor ID : 01
|
||||
[037h 0055 1] Local Apic ID : 01
|
||||
[038h 0056 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[03Ch 0060 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[03Dh 0061 1] Length : 08
|
||||
[03Eh 0062 1] Processor ID : 02
|
||||
[03Fh 0063 1] Local Apic ID : 02
|
||||
[040h 0064 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[044h 0068 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[045h 0069 1] Length : 08
|
||||
[046h 0070 1] Processor ID : 03
|
||||
[047h 0071 1] Local Apic ID : 03
|
||||
[048h 0072 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[04Ch 0076 1] Subtable Type : 01 [I/O APIC]
|
||||
[04Dh 0077 1] Length : 0C
|
||||
[04Eh 0078 1] I/O Apic ID : 00
|
||||
[04Fh 0079 1] Reserved : 00
|
||||
[050h 0080 4] Address : FEC00000
|
||||
[054h 0084 4] Interrupt : 00000000
|
||||
|
||||
[058h 0088 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[059h 0089 1] Length : 0A
|
||||
[05Ah 0090 1] Bus : 00
|
||||
[05Bh 0091 1] Source : 00
|
||||
[05Ch 0092 4] Interrupt : 00000002
|
||||
[060h 0096 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[062h 0098 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[063h 0099 1] Length : 0A
|
||||
[064h 0100 1] Bus : 00
|
||||
[065h 0101 1] Source : 05
|
||||
[066h 0102 4] Interrupt : 00000005
|
||||
[06Ah 0106 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[06Ch 0108 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[06Dh 0109 1] Length : 0A
|
||||
[06Eh 0110 1] Bus : 00
|
||||
[06Fh 0111 1] Source : 09
|
||||
[070h 0112 4] Interrupt : 00000009
|
||||
[074h 0116 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[076h 0118 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[077h 0119 1] Length : 0A
|
||||
[078h 0120 1] Bus : 00
|
||||
[079h 0121 1] Source : 0A
|
||||
[07Ah 0122 4] Interrupt : 0000000A
|
||||
[07Eh 0126 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[080h 0128 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[081h 0129 1] Length : 0A
|
||||
[082h 0130 1] Bus : 00
|
||||
[083h 0131 1] Source : 0B
|
||||
[084h 0132 4] Interrupt : 0000000B
|
||||
[088h 0136 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[08Ah 0138 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[08Bh 0139 1] Length : 06
|
||||
[08Ch 0140 1] Processor ID : FF
|
||||
[08Dh 0141 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[08Fh 0143 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 144 (0x90)
|
||||
|
||||
0000: 41 50 49 43 90 00 00 00 01 AE 42 4F 43 48 53 20 // APIC......BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 00 08 01 01 01 00 00 00 00 08 02 02 // ................
|
||||
0040: 01 00 00 00 00 08 03 03 01 00 00 00 01 0C 00 00 // ................
|
||||
0050: 00 00 C0 FE 00 00 00 00 02 0A 00 00 02 00 00 00 // ................
|
||||
0060: 00 00 02 0A 00 05 05 00 00 00 0D 00 02 0A 00 09 // ................
|
||||
0070: 09 00 00 00 0D 00 02 0A 00 0A 0A 00 00 00 0D 00 // ................
|
||||
0080: 02 0A 00 0B 0B 00 00 00 0D 00 04 06 FF 00 00 01 // ................
|
104
tests/data/acpi/pc/APIC.dsl
Normal file
104
tests/data/acpi/pc/APIC.dsl
Normal file
|
@ -0,0 +1,104 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.roothp, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000078
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : ED
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 01 [I/O APIC]
|
||||
[035h 0053 1] Length : 0C
|
||||
[036h 0054 1] I/O Apic ID : 00
|
||||
[037h 0055 1] Reserved : 00
|
||||
[038h 0056 4] Address : FEC00000
|
||||
[03Ch 0060 4] Interrupt : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[041h 0065 1] Length : 0A
|
||||
[042h 0066 1] Bus : 00
|
||||
[043h 0067 1] Source : 00
|
||||
[044h 0068 4] Interrupt : 00000002
|
||||
[048h 0072 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[04Ah 0074 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[04Bh 0075 1] Length : 0A
|
||||
[04Ch 0076 1] Bus : 00
|
||||
[04Dh 0077 1] Source : 05
|
||||
[04Eh 0078 4] Interrupt : 00000005
|
||||
[052h 0082 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[054h 0084 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[055h 0085 1] Length : 0A
|
||||
[056h 0086 1] Bus : 00
|
||||
[057h 0087 1] Source : 09
|
||||
[058h 0088 4] Interrupt : 00000009
|
||||
[05Ch 0092 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[05Eh 0094 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[05Fh 0095 1] Length : 0A
|
||||
[060h 0096 1] Bus : 00
|
||||
[061h 0097 1] Source : 0A
|
||||
[062h 0098 4] Interrupt : 0000000A
|
||||
[066h 0102 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[068h 0104 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[069h 0105 1] Length : 0A
|
||||
[06Ah 0106 1] Bus : 00
|
||||
[06Bh 0107 1] Source : 0B
|
||||
[06Ch 0108 4] Interrupt : 0000000B
|
||||
[070h 0112 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[072h 0114 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[073h 0115 1] Length : 06
|
||||
[074h 0116 1] Processor ID : FF
|
||||
[075h 0117 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[077h 0119 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 120 (0x78)
|
||||
|
||||
0000: 41 50 49 43 78 00 00 00 01 ED 42 4F 43 48 53 20 // APICx.....BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................
|
||||
0040: 02 0A 00 00 02 00 00 00 00 00 02 0A 00 05 05 00 // ................
|
||||
0050: 00 00 0D 00 02 0A 00 09 09 00 00 00 0D 00 02 0A // ................
|
||||
0060: 00 0A 0A 00 00 00 0D 00 02 0A 00 0B 0B 00 00 00 // ................
|
||||
0070: 0D 00 04 06 FF 00 00 01 // ........
|
BIN
tests/data/acpi/pc/APIC.hpbridge
Normal file
BIN
tests/data/acpi/pc/APIC.hpbridge
Normal file
Binary file not shown.
BIN
tests/data/acpi/pc/APIC.ipmikcs
Normal file
BIN
tests/data/acpi/pc/APIC.ipmikcs
Normal file
Binary file not shown.
104
tests/data/acpi/pc/APIC.ipmikcs.dsl
Normal file
104
tests/data/acpi/pc/APIC.ipmikcs.dsl
Normal file
|
@ -0,0 +1,104 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.ipmikcs, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000078
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : ED
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 01 [I/O APIC]
|
||||
[035h 0053 1] Length : 0C
|
||||
[036h 0054 1] I/O Apic ID : 00
|
||||
[037h 0055 1] Reserved : 00
|
||||
[038h 0056 4] Address : FEC00000
|
||||
[03Ch 0060 4] Interrupt : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[041h 0065 1] Length : 0A
|
||||
[042h 0066 1] Bus : 00
|
||||
[043h 0067 1] Source : 00
|
||||
[044h 0068 4] Interrupt : 00000002
|
||||
[048h 0072 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[04Ah 0074 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[04Bh 0075 1] Length : 0A
|
||||
[04Ch 0076 1] Bus : 00
|
||||
[04Dh 0077 1] Source : 05
|
||||
[04Eh 0078 4] Interrupt : 00000005
|
||||
[052h 0082 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[054h 0084 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[055h 0085 1] Length : 0A
|
||||
[056h 0086 1] Bus : 00
|
||||
[057h 0087 1] Source : 09
|
||||
[058h 0088 4] Interrupt : 00000009
|
||||
[05Ch 0092 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[05Eh 0094 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[05Fh 0095 1] Length : 0A
|
||||
[060h 0096 1] Bus : 00
|
||||
[061h 0097 1] Source : 0A
|
||||
[062h 0098 4] Interrupt : 0000000A
|
||||
[066h 0102 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[068h 0104 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[069h 0105 1] Length : 0A
|
||||
[06Ah 0106 1] Bus : 00
|
||||
[06Bh 0107 1] Source : 0B
|
||||
[06Ch 0108 4] Interrupt : 0000000B
|
||||
[070h 0112 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[072h 0114 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[073h 0115 1] Length : 06
|
||||
[074h 0116 1] Processor ID : FF
|
||||
[075h 0117 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[077h 0119 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 120 (0x78)
|
||||
|
||||
0000: 41 50 49 43 78 00 00 00 01 ED 42 4F 43 48 53 20 // APICx.....BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................
|
||||
0040: 02 0A 00 00 02 00 00 00 00 00 02 0A 00 05 05 00 // ................
|
||||
0050: 00 00 0D 00 02 0A 00 09 09 00 00 00 0D 00 02 0A // ................
|
||||
0060: 00 0A 0A 00 00 00 0D 00 02 0A 00 0B 0B 00 00 00 // ................
|
||||
0070: 0D 00 04 06 FF 00 00 01 // ........
|
BIN
tests/data/acpi/pc/APIC.memhp
Normal file
BIN
tests/data/acpi/pc/APIC.memhp
Normal file
Binary file not shown.
104
tests/data/acpi/pc/APIC.memhp.dsl
Normal file
104
tests/data/acpi/pc/APIC.memhp.dsl
Normal file
|
@ -0,0 +1,104 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.memhp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000078
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : ED
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 01 [I/O APIC]
|
||||
[035h 0053 1] Length : 0C
|
||||
[036h 0054 1] I/O Apic ID : 00
|
||||
[037h 0055 1] Reserved : 00
|
||||
[038h 0056 4] Address : FEC00000
|
||||
[03Ch 0060 4] Interrupt : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[041h 0065 1] Length : 0A
|
||||
[042h 0066 1] Bus : 00
|
||||
[043h 0067 1] Source : 00
|
||||
[044h 0068 4] Interrupt : 00000002
|
||||
[048h 0072 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[04Ah 0074 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[04Bh 0075 1] Length : 0A
|
||||
[04Ch 0076 1] Bus : 00
|
||||
[04Dh 0077 1] Source : 05
|
||||
[04Eh 0078 4] Interrupt : 00000005
|
||||
[052h 0082 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[054h 0084 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[055h 0085 1] Length : 0A
|
||||
[056h 0086 1] Bus : 00
|
||||
[057h 0087 1] Source : 09
|
||||
[058h 0088 4] Interrupt : 00000009
|
||||
[05Ch 0092 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[05Eh 0094 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[05Fh 0095 1] Length : 0A
|
||||
[060h 0096 1] Bus : 00
|
||||
[061h 0097 1] Source : 0A
|
||||
[062h 0098 4] Interrupt : 0000000A
|
||||
[066h 0102 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[068h 0104 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[069h 0105 1] Length : 0A
|
||||
[06Ah 0106 1] Bus : 00
|
||||
[06Bh 0107 1] Source : 0B
|
||||
[06Ch 0108 4] Interrupt : 0000000B
|
||||
[070h 0112 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[072h 0114 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[073h 0115 1] Length : 06
|
||||
[074h 0116 1] Processor ID : FF
|
||||
[075h 0117 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[077h 0119 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 120 (0x78)
|
||||
|
||||
0000: 41 50 49 43 78 00 00 00 01 ED 42 4F 43 48 53 20 // APICx.....BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................
|
||||
0040: 02 0A 00 00 02 00 00 00 00 00 02 0A 00 05 05 00 // ................
|
||||
0050: 00 00 0D 00 02 0A 00 09 09 00 00 00 0D 00 02 0A // ................
|
||||
0060: 00 0A 0A 00 00 00 0D 00 02 0A 00 0B 0B 00 00 00 // ................
|
||||
0070: 0D 00 04 06 FF 00 00 01 // ........
|
BIN
tests/data/acpi/pc/APIC.numamem
Normal file
BIN
tests/data/acpi/pc/APIC.numamem
Normal file
Binary file not shown.
104
tests/data/acpi/pc/APIC.numamem.dsl
Normal file
104
tests/data/acpi/pc/APIC.numamem.dsl
Normal file
|
@ -0,0 +1,104 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/APIC.numamem, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [APIC]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "APIC" [Multiple APIC Description Table (MADT)]
|
||||
[004h 0004 4] Table Length : 00000078
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : ED
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCAPIC"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Local Apic Address : FEE00000
|
||||
[028h 0040 4] Flags (decoded below) : 00000001
|
||||
PC-AT Compatibility : 1
|
||||
|
||||
[02Ch 0044 1] Subtable Type : 00 [Processor Local APIC]
|
||||
[02Dh 0045 1] Length : 08
|
||||
[02Eh 0046 1] Processor ID : 00
|
||||
[02Fh 0047 1] Local Apic ID : 00
|
||||
[030h 0048 4] Flags (decoded below) : 00000001
|
||||
Processor Enabled : 1
|
||||
Runtime Online Capable : 0
|
||||
|
||||
[034h 0052 1] Subtable Type : 01 [I/O APIC]
|
||||
[035h 0053 1] Length : 0C
|
||||
[036h 0054 1] I/O Apic ID : 00
|
||||
[037h 0055 1] Reserved : 00
|
||||
[038h 0056 4] Address : FEC00000
|
||||
[03Ch 0060 4] Interrupt : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[041h 0065 1] Length : 0A
|
||||
[042h 0066 1] Bus : 00
|
||||
[043h 0067 1] Source : 00
|
||||
[044h 0068 4] Interrupt : 00000002
|
||||
[048h 0072 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
|
||||
[04Ah 0074 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[04Bh 0075 1] Length : 0A
|
||||
[04Ch 0076 1] Bus : 00
|
||||
[04Dh 0077 1] Source : 05
|
||||
[04Eh 0078 4] Interrupt : 00000005
|
||||
[052h 0082 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[054h 0084 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[055h 0085 1] Length : 0A
|
||||
[056h 0086 1] Bus : 00
|
||||
[057h 0087 1] Source : 09
|
||||
[058h 0088 4] Interrupt : 00000009
|
||||
[05Ch 0092 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[05Eh 0094 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[05Fh 0095 1] Length : 0A
|
||||
[060h 0096 1] Bus : 00
|
||||
[061h 0097 1] Source : 0A
|
||||
[062h 0098 4] Interrupt : 0000000A
|
||||
[066h 0102 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[068h 0104 1] Subtable Type : 02 [Interrupt Source Override]
|
||||
[069h 0105 1] Length : 0A
|
||||
[06Ah 0106 1] Bus : 00
|
||||
[06Bh 0107 1] Source : 0B
|
||||
[06Ch 0108 4] Interrupt : 0000000B
|
||||
[070h 0112 2] Flags (decoded below) : 000D
|
||||
Polarity : 1
|
||||
Trigger Mode : 3
|
||||
|
||||
[072h 0114 1] Subtable Type : 04 [Local APIC NMI]
|
||||
[073h 0115 1] Length : 06
|
||||
[074h 0116 1] Processor ID : FF
|
||||
[075h 0117 2] Flags (decoded below) : 0000
|
||||
Polarity : 0
|
||||
Trigger Mode : 0
|
||||
[077h 0119 1] Interrupt Input LINT : 01
|
||||
|
||||
Raw Table Data: Length 120 (0x78)
|
||||
|
||||
0000: 41 50 49 43 78 00 00 00 01 ED 42 4F 43 48 53 20 // APICx.....BOCHS
|
||||
0010: 42 58 50 43 41 50 49 43 01 00 00 00 42 58 50 43 // BXPCAPIC....BXPC
|
||||
0020: 01 00 00 00 00 00 E0 FE 01 00 00 00 00 08 00 00 // ................
|
||||
0030: 01 00 00 00 01 0C 00 00 00 00 C0 FE 00 00 00 00 // ................
|
||||
0040: 02 0A 00 00 02 00 00 00 00 00 02 0A 00 05 05 00 // ................
|
||||
0050: 00 00 0D 00 02 0A 00 09 09 00 00 00 0D 00 02 0A // ................
|
||||
0060: 00 0A 0A 00 00 00 0D 00 02 0A 00 0B 0B 00 00 00 // ................
|
||||
0070: 0D 00 04 06 FF 00 00 01 // ........
|
BIN
tests/data/acpi/pc/APIC.roothp
Normal file
BIN
tests/data/acpi/pc/APIC.roothp
Normal file
Binary file not shown.
1619
tests/data/acpi/pc/DSDT.acpihmat.dsl
Normal file
1619
tests/data/acpi/pc/DSDT.acpihmat.dsl
Normal file
File diff suppressed because it is too large
Load diff
1800
tests/data/acpi/pc/DSDT.bridge.dsl
Normal file
1800
tests/data/acpi/pc/DSDT.bridge.dsl
Normal file
File diff suppressed because it is too large
Load diff
1466
tests/data/acpi/pc/DSDT.cphp.dsl
Normal file
1466
tests/data/acpi/pc/DSDT.cphp.dsl
Normal file
File diff suppressed because it is too large
Load diff
1719
tests/data/acpi/pc/DSDT.dimmpxm.dsl
Normal file
1719
tests/data/acpi/pc/DSDT.dimmpxm.dsl
Normal file
File diff suppressed because it is too large
Load diff
1407
tests/data/acpi/pc/DSDT.dsl
Normal file
1407
tests/data/acpi/pc/DSDT.dsl
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
1337
tests/data/acpi/pc/DSDT.ipmikcs.dsl
Normal file
1337
tests/data/acpi/pc/DSDT.ipmikcs.dsl
Normal file
File diff suppressed because it is too large
Load diff
1625
tests/data/acpi/pc/DSDT.memhp.dsl
Normal file
1625
tests/data/acpi/pc/DSDT.memhp.dsl
Normal file
File diff suppressed because it is too large
Load diff
1321
tests/data/acpi/pc/DSDT.numamem.dsl
Normal file
1321
tests/data/acpi/pc/DSDT.numamem.dsl
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
BIN
tests/data/acpi/pc/FACP.acpihmat
Normal file
BIN
tests/data/acpi/pc/FACP.acpihmat
Normal file
Binary file not shown.
99
tests/data/acpi/pc/FACP.acpihmat.dsl
Normal file
99
tests/data/acpi/pc/FACP.acpihmat.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.acpihmat, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
BIN
tests/data/acpi/pc/FACP.bridge
Normal file
BIN
tests/data/acpi/pc/FACP.bridge
Normal file
Binary file not shown.
99
tests/data/acpi/pc/FACP.bridge.dsl
Normal file
99
tests/data/acpi/pc/FACP.bridge.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.bridge, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
BIN
tests/data/acpi/pc/FACP.cphp
Normal file
BIN
tests/data/acpi/pc/FACP.cphp
Normal file
Binary file not shown.
99
tests/data/acpi/pc/FACP.cphp.dsl
Normal file
99
tests/data/acpi/pc/FACP.cphp.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.cphp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
BIN
tests/data/acpi/pc/FACP.dimmpxm
Normal file
BIN
tests/data/acpi/pc/FACP.dimmpxm
Normal file
Binary file not shown.
99
tests/data/acpi/pc/FACP.dimmpxm.dsl
Normal file
99
tests/data/acpi/pc/FACP.dimmpxm.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.dimmpxm, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
99
tests/data/acpi/pc/FACP.dsl
Normal file
99
tests/data/acpi/pc/FACP.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.roothp, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
BIN
tests/data/acpi/pc/FACP.hpbridge
Normal file
BIN
tests/data/acpi/pc/FACP.hpbridge
Normal file
Binary file not shown.
BIN
tests/data/acpi/pc/FACP.ipmikcs
Normal file
BIN
tests/data/acpi/pc/FACP.ipmikcs
Normal file
Binary file not shown.
99
tests/data/acpi/pc/FACP.ipmikcs.dsl
Normal file
99
tests/data/acpi/pc/FACP.ipmikcs.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.ipmikcs, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
BIN
tests/data/acpi/pc/FACP.memhp
Normal file
BIN
tests/data/acpi/pc/FACP.memhp
Normal file
Binary file not shown.
99
tests/data/acpi/pc/FACP.memhp.dsl
Normal file
99
tests/data/acpi/pc/FACP.memhp.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.memhp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
BIN
tests/data/acpi/pc/FACP.numamem
Normal file
BIN
tests/data/acpi/pc/FACP.numamem
Normal file
Binary file not shown.
99
tests/data/acpi/pc/FACP.numamem.dsl
Normal file
99
tests/data/acpi/pc/FACP.numamem.dsl
Normal file
|
@ -0,0 +1,99 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACP.numamem, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACP]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACP" [Fixed ACPI Description Table (FADT)]
|
||||
[004h 0004 4] Table Length : 00000074
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A1
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCFACP"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] FACS Address : 00000000
|
||||
[028h 0040 4] DSDT Address : 00000000
|
||||
[02Ch 0044 1] Model : 01
|
||||
[02Dh 0045 1] PM Profile : 00 [Unspecified]
|
||||
[02Eh 0046 2] SCI Interrupt : 0009
|
||||
[030h 0048 4] SMI Command Port : 000000B2
|
||||
[034h 0052 1] ACPI Enable Value : F1
|
||||
[035h 0053 1] ACPI Disable Value : F0
|
||||
[036h 0054 1] S4BIOS Command : 00
|
||||
[037h 0055 1] P-State Control : 00
|
||||
[038h 0056 4] PM1A Event Block Address : 00000600
|
||||
[03Ch 0060 4] PM1B Event Block Address : 00000000
|
||||
[040h 0064 4] PM1A Control Block Address : 00000604
|
||||
[044h 0068 4] PM1B Control Block Address : 00000000
|
||||
[048h 0072 4] PM2 Control Block Address : 00000000
|
||||
[04Ch 0076 4] PM Timer Block Address : 00000608
|
||||
[050h 0080 4] GPE0 Block Address : 0000AFE0
|
||||
[054h 0084 4] GPE1 Block Address : 00000000
|
||||
[058h 0088 1] PM1 Event Block Length : 04
|
||||
[059h 0089 1] PM1 Control Block Length : 02
|
||||
[05Ah 0090 1] PM2 Control Block Length : 00
|
||||
[05Bh 0091 1] PM Timer Block Length : 04
|
||||
[05Ch 0092 1] GPE0 Block Length : 04
|
||||
[05Dh 0093 1] GPE1 Block Length : 00
|
||||
[05Eh 0094 1] GPE1 Base Offset : 00
|
||||
[05Fh 0095 1] _CST Support : 00
|
||||
[060h 0096 2] C2 Latency : 0FFF
|
||||
[062h 0098 2] C3 Latency : 0FFF
|
||||
[064h 0100 2] CPU Cache Size : 0000
|
||||
[066h 0102 2] Cache Flush Stride : 0000
|
||||
[068h 0104 1] Duty Cycle Offset : 00
|
||||
[069h 0105 1] Duty Cycle Width : 00
|
||||
[06Ah 0106 1] RTC Day Alarm Index : 00
|
||||
[06Bh 0107 1] RTC Month Alarm Index : 00
|
||||
[06Ch 0108 1] RTC Century Index : 32
|
||||
[06Dh 0109 2] Boot Flags (decoded below) : 0000
|
||||
Legacy Devices Supported (V2) : 0
|
||||
8042 Present on ports 60/64 (V2) : 0
|
||||
VGA Not Present (V4) : 0
|
||||
MSI Not Supported (V4) : 0
|
||||
PCIe ASPM Not Supported (V4) : 0
|
||||
CMOS RTC Not Present (V5) : 0
|
||||
[06Fh 0111 1] Reserved : 00
|
||||
[070h 0112 4] Flags (decoded below) : 000080A5
|
||||
WBINVD instruction is operational (V1) : 1
|
||||
WBINVD flushes all caches (V1) : 0
|
||||
All CPUs support C1 (V1) : 1
|
||||
C2 works on MP system (V1) : 0
|
||||
Control Method Power Button (V1) : 0
|
||||
Control Method Sleep Button (V1) : 1
|
||||
RTC wake not in fixed reg space (V1) : 0
|
||||
RTC can wake system from S4 (V1) : 1
|
||||
32-bit PM Timer (V1) : 0
|
||||
Docking Supported (V1) : 0
|
||||
Reset Register Supported (V2) : 0
|
||||
Sealed Case (V3) : 0
|
||||
Headless - No Video (V3) : 0
|
||||
Use native instr after SLP_TYPx (V3) : 0
|
||||
PCIEXP_WAK Bits Supported (V4) : 0
|
||||
Use Platform Timer (V4) : 1
|
||||
RTC_STS valid on S4 wake (V4) : 0
|
||||
Remote Power-on capable (V4) : 0
|
||||
Use APIC Cluster Model (V4) : 0
|
||||
Use APIC Physical Destination Mode (V4) : 0
|
||||
Hardware Reduced (V5) : 0
|
||||
Low Power S0 Idle (V5) : 0
|
||||
|
||||
Raw Table Data: Length 116 (0x74)
|
||||
|
||||
0000: 46 41 43 50 74 00 00 00 01 A1 42 4F 43 48 53 20 // FACPt.....BOCHS
|
||||
0010: 42 58 50 43 46 41 43 50 01 00 00 00 42 58 50 43 // BXPCFACP....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 01 00 09 00 // ................
|
||||
0030: B2 00 00 00 F1 F0 00 00 00 06 00 00 00 00 00 00 // ................
|
||||
0040: 04 06 00 00 00 00 00 00 00 00 00 00 08 06 00 00 // ................
|
||||
0050: E0 AF 00 00 00 00 00 00 04 02 00 04 04 00 00 00 // ................
|
||||
0060: FF 0F FF 0F 00 00 00 00 00 00 00 00 32 00 00 00 // ............2...
|
||||
0070: A5 80 00 00 // ....
|
BIN
tests/data/acpi/pc/FACP.roothp
Normal file
BIN
tests/data/acpi/pc/FACP.roothp
Normal file
Binary file not shown.
BIN
tests/data/acpi/pc/FACS.acpihmat
Normal file
BIN
tests/data/acpi/pc/FACS.acpihmat
Normal file
Binary file not shown.
32
tests/data/acpi/pc/FACS.acpihmat.dsl
Normal file
32
tests/data/acpi/pc/FACS.acpihmat.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.acpihmat, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
BIN
tests/data/acpi/pc/FACS.bridge
Normal file
BIN
tests/data/acpi/pc/FACS.bridge
Normal file
Binary file not shown.
32
tests/data/acpi/pc/FACS.bridge.dsl
Normal file
32
tests/data/acpi/pc/FACS.bridge.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.bridge, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
BIN
tests/data/acpi/pc/FACS.cphp
Normal file
BIN
tests/data/acpi/pc/FACS.cphp
Normal file
Binary file not shown.
32
tests/data/acpi/pc/FACS.cphp.dsl
Normal file
32
tests/data/acpi/pc/FACS.cphp.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.cphp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
BIN
tests/data/acpi/pc/FACS.dimmpxm
Normal file
BIN
tests/data/acpi/pc/FACS.dimmpxm
Normal file
Binary file not shown.
32
tests/data/acpi/pc/FACS.dimmpxm.dsl
Normal file
32
tests/data/acpi/pc/FACS.dimmpxm.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.dimmpxm, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
32
tests/data/acpi/pc/FACS.dsl
Normal file
32
tests/data/acpi/pc/FACS.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.roothp, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
BIN
tests/data/acpi/pc/FACS.hpbridge
Normal file
BIN
tests/data/acpi/pc/FACS.hpbridge
Normal file
Binary file not shown.
BIN
tests/data/acpi/pc/FACS.ipmikcs
Normal file
BIN
tests/data/acpi/pc/FACS.ipmikcs
Normal file
Binary file not shown.
32
tests/data/acpi/pc/FACS.ipmikcs.dsl
Normal file
32
tests/data/acpi/pc/FACS.ipmikcs.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.ipmikcs, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
BIN
tests/data/acpi/pc/FACS.memhp
Normal file
BIN
tests/data/acpi/pc/FACS.memhp
Normal file
Binary file not shown.
32
tests/data/acpi/pc/FACS.memhp.dsl
Normal file
32
tests/data/acpi/pc/FACS.memhp.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.memhp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
BIN
tests/data/acpi/pc/FACS.numamem
Normal file
BIN
tests/data/acpi/pc/FACS.numamem
Normal file
Binary file not shown.
32
tests/data/acpi/pc/FACS.numamem.dsl
Normal file
32
tests/data/acpi/pc/FACS.numamem.dsl
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/FACS.numamem, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [FACS]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "FACS"
|
||||
[004h 0004 4] Length : 00000040
|
||||
[008h 0008 4] Hardware Signature : 00000000
|
||||
[00Ch 0012 4] 32 Firmware Waking Vector : 00000000
|
||||
[010h 0016 4] Global Lock : 00000000
|
||||
[014h 0020 4] Flags (decoded below) : 00000000
|
||||
S4BIOS Support Present : 0
|
||||
64-bit Wake Supported (V2) : 0
|
||||
[018h 0024 8] 64 Firmware Waking Vector : 0000000000000000
|
||||
[020h 0032 1] Version : 00
|
||||
[021h 0033 3] Reserved : 000000
|
||||
[024h 0036 4] OspmFlags (decoded below) : 00000000
|
||||
64-bit Wake Env Required (V2) : 0
|
||||
|
||||
Raw Table Data: Length 64 (0x40)
|
||||
|
||||
0000: 46 41 43 53 40 00 00 00 00 00 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: 00 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 // ................
|
BIN
tests/data/acpi/pc/FACS.roothp
Normal file
BIN
tests/data/acpi/pc/FACS.roothp
Normal file
Binary file not shown.
132
tests/data/acpi/pc/HMAT.acpihmat.dsl
Normal file
132
tests/data/acpi/pc/HMAT.acpihmat.dsl
Normal file
|
@ -0,0 +1,132 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HMAT.acpihmat, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HMAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HMAT" [Heterogeneous Memory Attributes Table]
|
||||
[004h 0004 4] Table Length : 00000118
|
||||
[008h 0008 1] Revision : 02
|
||||
[009h 0009 1] Checksum : 98
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHMAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Reserved : 00000000
|
||||
|
||||
[028h 0040 2] Structure Type : 0000 [Memory Proximity Domain Attributes]
|
||||
[02Ah 0042 2] Reserved : 0000
|
||||
[02Ch 0044 4] Length : 00000028
|
||||
[030h 0048 2] Flags (decoded below) : 0001
|
||||
Processor Proximity Domain Valid : 1
|
||||
[032h 0050 2] Reserved1 : 0000
|
||||
[034h 0052 4] Processor Proximity Domain : 00000000
|
||||
[038h 0056 4] Memory Proximity Domain : 00000000
|
||||
[03Ch 0060 4] Reserved2 : 00000000
|
||||
[040h 0064 8] Reserved3 : 0000000000000000
|
||||
[048h 0072 8] Reserved4 : 0000000000000000
|
||||
|
||||
[050h 0080 2] Structure Type : 0000 [Memory Proximity Domain Attributes]
|
||||
[052h 0082 2] Reserved : 0000
|
||||
[054h 0084 4] Length : 00000028
|
||||
[058h 0088 2] Flags (decoded below) : 0001
|
||||
Processor Proximity Domain Valid : 1
|
||||
[05Ah 0090 2] Reserved1 : 0000
|
||||
[05Ch 0092 4] Processor Proximity Domain : 00000000
|
||||
[060h 0096 4] Memory Proximity Domain : 00000001
|
||||
[064h 0100 4] Reserved2 : 00000000
|
||||
[068h 0104 8] Reserved3 : 0000000000000000
|
||||
[070h 0112 8] Reserved4 : 0000000000000000
|
||||
|
||||
[078h 0120 2] Structure Type : 0001 [System Locality Latency and Bandwidth Information]
|
||||
[07Ah 0122 2] Reserved : 0000
|
||||
[07Ch 0124 4] Length : 00000030
|
||||
[080h 0128 1] Flags (decoded below) : 00
|
||||
Memory Hierarchy : 0
|
||||
[081h 0129 1] Data Type : 00
|
||||
[082h 0130 2] Reserved1 : 0000
|
||||
[084h 0132 4] Initiator Proximity Domains # : 00000001
|
||||
[088h 0136 4] Target Proximity Domains # : 00000002
|
||||
[08Ch 0140 4] Reserved2 : 00000000
|
||||
[090h 0144 8] Entry Base Unit : 00000000000003E8
|
||||
[098h 0152 4] Initiator Proximity Domain List : 00000000
|
||||
[09Ch 0156 4] Target Proximity Domain List : 00000000
|
||||
[0A0h 0160 4] Target Proximity Domain List : 00000001
|
||||
[0A4h 0164 2] Entry : 0001
|
||||
[0A6h 0166 2] Entry : FFFE
|
||||
|
||||
[0A8h 0168 2] Structure Type : 0001 [System Locality Latency and Bandwidth Information]
|
||||
[0AAh 0170 2] Reserved : 0000
|
||||
[0ACh 0172 4] Length : 00000030
|
||||
[0B0h 0176 1] Flags (decoded below) : 00
|
||||
Memory Hierarchy : 0
|
||||
[0B1h 0177 1] Data Type : 03
|
||||
[0B2h 0178 2] Reserved1 : 0000
|
||||
[0B4h 0180 4] Initiator Proximity Domains # : 00000001
|
||||
[0B8h 0184 4] Target Proximity Domains # : 00000002
|
||||
[0BCh 0188 4] Reserved2 : 00000000
|
||||
[0C0h 0192 8] Entry Base Unit : 0000000000000001
|
||||
[0C8h 0200 4] Initiator Proximity Domain List : 00000000
|
||||
[0CCh 0204 4] Target Proximity Domain List : 00000000
|
||||
[0D0h 0208 4] Target Proximity Domain List : 00000001
|
||||
[0D4h 0212 2] Entry : FFFE
|
||||
[0D6h 0214 2] Entry : 7FFF
|
||||
|
||||
[0D8h 0216 2] Structure Type : 0002 [Memory Side Cache Information]
|
||||
[0DAh 0218 2] Reserved : 0000
|
||||
[0DCh 0220 4] Length : 00000020
|
||||
[0E0h 0224 4] Memory Proximity Domain : 00000000
|
||||
[0E4h 0228 4] Reserved1 : 00000000
|
||||
[0E8h 0232 8] Memory Side Cache Size : 0000000000002800
|
||||
[0F0h 0240 4] Cache Attributes (decoded below) : 00081111
|
||||
Total Cache Levels : 1
|
||||
Cache Level : 1
|
||||
Cache Associativity : 1
|
||||
Write Policy : 1
|
||||
Cache Line Size : 0008
|
||||
[0F4h 0244 2] Reserved2 : 0000
|
||||
[0F6h 0246 2] SMBIOS Handle # : 0000
|
||||
|
||||
[0F8h 0248 2] Structure Type : 0002 [Memory Side Cache Information]
|
||||
[0FAh 0250 2] Reserved : 0000
|
||||
[0FCh 0252 4] Length : 00000020
|
||||
[100h 0256 4] Memory Proximity Domain : 00000001
|
||||
[104h 0260 4] Reserved1 : 00000000
|
||||
[108h 0264 8] Memory Side Cache Size : 0000000000002800
|
||||
[110h 0272 4] Cache Attributes (decoded below) : 00081111
|
||||
Total Cache Levels : 1
|
||||
Cache Level : 1
|
||||
Cache Associativity : 1
|
||||
Write Policy : 1
|
||||
Cache Line Size : 0008
|
||||
[114h 0276 2] Reserved2 : 0000
|
||||
[116h 0278 2] SMBIOS Handle # : 0000
|
||||
|
||||
Raw Table Data: Length 280 (0x118)
|
||||
|
||||
0000: 48 4D 41 54 18 01 00 00 02 98 42 4F 43 48 53 20 // HMAT......BOCHS
|
||||
0010: 42 58 50 43 48 4D 41 54 01 00 00 00 42 58 50 43 // BXPCHMAT....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 28 00 00 00 // ............(...
|
||||
0030: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0050: 00 00 00 00 28 00 00 00 01 00 00 00 00 00 00 00 // ....(...........
|
||||
0060: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0070: 00 00 00 00 00 00 00 00 01 00 00 00 30 00 00 00 // ............0...
|
||||
0080: 00 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 // ................
|
||||
0090: E8 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00A0: 01 00 00 00 01 00 FE FF 01 00 00 00 30 00 00 00 // ............0...
|
||||
00B0: 00 03 00 00 01 00 00 00 02 00 00 00 00 00 00 00 // ................
|
||||
00C0: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 01 00 00 00 FE FF FF 7F 02 00 00 00 20 00 00 00 // ............ ...
|
||||
00E0: 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 // .........(......
|
||||
00F0: 11 11 08 00 00 00 00 00 02 00 00 00 20 00 00 00 // ............ ...
|
||||
0100: 01 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 // .........(......
|
||||
0110: 11 11 08 00 00 00 00 00 // ........
|
132
tests/data/acpi/pc/HMAT.dsl
Normal file
132
tests/data/acpi/pc/HMAT.dsl
Normal file
|
@ -0,0 +1,132 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HMAT.acpihmat, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [HMAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HMAT" [Heterogeneous Memory Attributes Table]
|
||||
[004h 0004 4] Table Length : 00000118
|
||||
[008h 0008 1] Revision : 02
|
||||
[009h 0009 1] Checksum : 98
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHMAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Reserved : 00000000
|
||||
|
||||
[028h 0040 2] Structure Type : 0000 [Memory Proximity Domain Attributes]
|
||||
[02Ah 0042 2] Reserved : 0000
|
||||
[02Ch 0044 4] Length : 00000028
|
||||
[030h 0048 2] Flags (decoded below) : 0001
|
||||
Processor Proximity Domain Valid : 1
|
||||
[032h 0050 2] Reserved1 : 0000
|
||||
[034h 0052 4] Processor Proximity Domain : 00000000
|
||||
[038h 0056 4] Memory Proximity Domain : 00000000
|
||||
[03Ch 0060 4] Reserved2 : 00000000
|
||||
[040h 0064 8] Reserved3 : 0000000000000000
|
||||
[048h 0072 8] Reserved4 : 0000000000000000
|
||||
|
||||
[050h 0080 2] Structure Type : 0000 [Memory Proximity Domain Attributes]
|
||||
[052h 0082 2] Reserved : 0000
|
||||
[054h 0084 4] Length : 00000028
|
||||
[058h 0088 2] Flags (decoded below) : 0001
|
||||
Processor Proximity Domain Valid : 1
|
||||
[05Ah 0090 2] Reserved1 : 0000
|
||||
[05Ch 0092 4] Processor Proximity Domain : 00000000
|
||||
[060h 0096 4] Memory Proximity Domain : 00000001
|
||||
[064h 0100 4] Reserved2 : 00000000
|
||||
[068h 0104 8] Reserved3 : 0000000000000000
|
||||
[070h 0112 8] Reserved4 : 0000000000000000
|
||||
|
||||
[078h 0120 2] Structure Type : 0001 [System Locality Latency and Bandwidth Information]
|
||||
[07Ah 0122 2] Reserved : 0000
|
||||
[07Ch 0124 4] Length : 00000030
|
||||
[080h 0128 1] Flags (decoded below) : 00
|
||||
Memory Hierarchy : 0
|
||||
[081h 0129 1] Data Type : 00
|
||||
[082h 0130 2] Reserved1 : 0000
|
||||
[084h 0132 4] Initiator Proximity Domains # : 00000001
|
||||
[088h 0136 4] Target Proximity Domains # : 00000002
|
||||
[08Ch 0140 4] Reserved2 : 00000000
|
||||
[090h 0144 8] Entry Base Unit : 00000000000003E8
|
||||
[098h 0152 4] Initiator Proximity Domain List : 00000000
|
||||
[09Ch 0156 4] Target Proximity Domain List : 00000000
|
||||
[0A0h 0160 4] Target Proximity Domain List : 00000001
|
||||
[0A4h 0164 2] Entry : 0001
|
||||
[0A6h 0166 2] Entry : FFFE
|
||||
|
||||
[0A8h 0168 2] Structure Type : 0001 [System Locality Latency and Bandwidth Information]
|
||||
[0AAh 0170 2] Reserved : 0000
|
||||
[0ACh 0172 4] Length : 00000030
|
||||
[0B0h 0176 1] Flags (decoded below) : 00
|
||||
Memory Hierarchy : 0
|
||||
[0B1h 0177 1] Data Type : 03
|
||||
[0B2h 0178 2] Reserved1 : 0000
|
||||
[0B4h 0180 4] Initiator Proximity Domains # : 00000001
|
||||
[0B8h 0184 4] Target Proximity Domains # : 00000002
|
||||
[0BCh 0188 4] Reserved2 : 00000000
|
||||
[0C0h 0192 8] Entry Base Unit : 0000000000000001
|
||||
[0C8h 0200 4] Initiator Proximity Domain List : 00000000
|
||||
[0CCh 0204 4] Target Proximity Domain List : 00000000
|
||||
[0D0h 0208 4] Target Proximity Domain List : 00000001
|
||||
[0D4h 0212 2] Entry : FFFE
|
||||
[0D6h 0214 2] Entry : 7FFF
|
||||
|
||||
[0D8h 0216 2] Structure Type : 0002 [Memory Side Cache Information]
|
||||
[0DAh 0218 2] Reserved : 0000
|
||||
[0DCh 0220 4] Length : 00000020
|
||||
[0E0h 0224 4] Memory Proximity Domain : 00000000
|
||||
[0E4h 0228 4] Reserved1 : 00000000
|
||||
[0E8h 0232 8] Memory Side Cache Size : 0000000000002800
|
||||
[0F0h 0240 4] Cache Attributes (decoded below) : 00081111
|
||||
Total Cache Levels : 1
|
||||
Cache Level : 1
|
||||
Cache Associativity : 1
|
||||
Write Policy : 1
|
||||
Cache Line Size : 0008
|
||||
[0F4h 0244 2] Reserved2 : 0000
|
||||
[0F6h 0246 2] SMBIOS Handle # : 0000
|
||||
|
||||
[0F8h 0248 2] Structure Type : 0002 [Memory Side Cache Information]
|
||||
[0FAh 0250 2] Reserved : 0000
|
||||
[0FCh 0252 4] Length : 00000020
|
||||
[100h 0256 4] Memory Proximity Domain : 00000001
|
||||
[104h 0260 4] Reserved1 : 00000000
|
||||
[108h 0264 8] Memory Side Cache Size : 0000000000002800
|
||||
[110h 0272 4] Cache Attributes (decoded below) : 00081111
|
||||
Total Cache Levels : 1
|
||||
Cache Level : 1
|
||||
Cache Associativity : 1
|
||||
Write Policy : 1
|
||||
Cache Line Size : 0008
|
||||
[114h 0276 2] Reserved2 : 0000
|
||||
[116h 0278 2] SMBIOS Handle # : 0000
|
||||
|
||||
Raw Table Data: Length 280 (0x118)
|
||||
|
||||
0000: 48 4D 41 54 18 01 00 00 02 98 42 4F 43 48 53 20 // HMAT......BOCHS
|
||||
0010: 42 58 50 43 48 4D 41 54 01 00 00 00 42 58 50 43 // BXPCHMAT....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 00 00 28 00 00 00 // ............(...
|
||||
0030: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0050: 00 00 00 00 28 00 00 00 01 00 00 00 00 00 00 00 // ....(...........
|
||||
0060: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0070: 00 00 00 00 00 00 00 00 01 00 00 00 30 00 00 00 // ............0...
|
||||
0080: 00 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 // ................
|
||||
0090: E8 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00A0: 01 00 00 00 01 00 FE FF 01 00 00 00 30 00 00 00 // ............0...
|
||||
00B0: 00 03 00 00 01 00 00 00 02 00 00 00 00 00 00 00 // ................
|
||||
00C0: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 01 00 00 00 FE FF FF 7F 02 00 00 00 20 00 00 00 // ............ ...
|
||||
00E0: 00 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 // .........(......
|
||||
00F0: 11 11 08 00 00 00 00 00 02 00 00 00 20 00 00 00 // ............ ...
|
||||
0100: 01 00 00 00 00 00 00 00 00 28 00 00 00 00 00 00 // .........(......
|
||||
0110: 11 11 08 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.acpihmat
Normal file
BIN
tests/data/acpi/pc/HPET.acpihmat
Normal file
Binary file not shown.
43
tests/data/acpi/pc/HPET.acpihmat.dsl
Normal file
43
tests/data/acpi/pc/HPET.acpihmat.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.acpihmat, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.bridge
Normal file
BIN
tests/data/acpi/pc/HPET.bridge
Normal file
Binary file not shown.
43
tests/data/acpi/pc/HPET.bridge.dsl
Normal file
43
tests/data/acpi/pc/HPET.bridge.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.bridge, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.cphp
Normal file
BIN
tests/data/acpi/pc/HPET.cphp
Normal file
Binary file not shown.
43
tests/data/acpi/pc/HPET.cphp.dsl
Normal file
43
tests/data/acpi/pc/HPET.cphp.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.cphp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.dimmpxm
Normal file
BIN
tests/data/acpi/pc/HPET.dimmpxm
Normal file
Binary file not shown.
43
tests/data/acpi/pc/HPET.dimmpxm.dsl
Normal file
43
tests/data/acpi/pc/HPET.dimmpxm.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.dimmpxm, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
43
tests/data/acpi/pc/HPET.dsl
Normal file
43
tests/data/acpi/pc/HPET.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.roothp, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.hpbridge
Normal file
BIN
tests/data/acpi/pc/HPET.hpbridge
Normal file
Binary file not shown.
BIN
tests/data/acpi/pc/HPET.ipmikcs
Normal file
BIN
tests/data/acpi/pc/HPET.ipmikcs
Normal file
Binary file not shown.
43
tests/data/acpi/pc/HPET.ipmikcs.dsl
Normal file
43
tests/data/acpi/pc/HPET.ipmikcs.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.ipmikcs, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.memhp
Normal file
BIN
tests/data/acpi/pc/HPET.memhp
Normal file
Binary file not shown.
43
tests/data/acpi/pc/HPET.memhp.dsl
Normal file
43
tests/data/acpi/pc/HPET.memhp.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.memhp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.numamem
Normal file
BIN
tests/data/acpi/pc/HPET.numamem
Normal file
Binary file not shown.
43
tests/data/acpi/pc/HPET.numamem.dsl
Normal file
43
tests/data/acpi/pc/HPET.numamem.dsl
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/HPET.numamem, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [HPET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "HPET" [High Precision Event Timer table]
|
||||
[004h 0004 4] Table Length : 00000038
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 03
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCHPET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Hardware Block ID : 8086A201
|
||||
|
||||
[028h 0040 12] Timer Block Register : [Generic Address Structure]
|
||||
[028h 0040 1] Space ID : 00 [SystemMemory]
|
||||
[029h 0041 1] Bit Width : 00
|
||||
[02Ah 0042 1] Bit Offset : 00
|
||||
[02Bh 0043 1] Encoded Access Width : 00 [Undefined/Legacy]
|
||||
[02Ch 0044 8] Address : 00000000FED00000
|
||||
|
||||
[034h 0052 1] Sequence Number : 00
|
||||
[035h 0053 2] Minimum Clock Ticks : 0000
|
||||
[037h 0055 1] Flags (decoded below) : 00
|
||||
4K Page Protect : 0
|
||||
64K Page Protect : 0
|
||||
|
||||
Raw Table Data: Length 56 (0x38)
|
||||
|
||||
0000: 48 50 45 54 38 00 00 00 01 03 42 4F 43 48 53 20 // HPET8.....BOCHS
|
||||
0010: 42 58 50 43 48 50 45 54 01 00 00 00 42 58 50 43 // BXPCHPET....BXPC
|
||||
0020: 01 00 00 00 01 A2 86 80 00 00 00 00 00 00 D0 FE // ................
|
||||
0030: 00 00 00 00 00 00 00 00 // ........
|
BIN
tests/data/acpi/pc/HPET.roothp
Normal file
BIN
tests/data/acpi/pc/HPET.roothp
Normal file
Binary file not shown.
115
tests/data/acpi/pc/NFIT.dimmpxm.dsl
Normal file
115
tests/data/acpi/pc/NFIT.dimmpxm.dsl
Normal file
|
@ -0,0 +1,115 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/NFIT.dimmpxm, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [NFIT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "NFIT" [NVDIMM Firmware Interface Table]
|
||||
[004h 0004 4] Table Length : 000000F0
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 24
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCNFIT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Reserved : 00000000
|
||||
|
||||
[028h 0040 2] Subtable Type : 0000 [System Physical Address Range]
|
||||
[02Ah 0042 2] Length : 0038
|
||||
|
||||
[02Ch 0044 2] Range Index : 0004
|
||||
[02Eh 0046 2] Flags (decoded below) : 0003
|
||||
Add/Online Operation Only : 1
|
||||
Proximity Domain Valid : 1
|
||||
[030h 0048 4] Reserved : 00000000
|
||||
[034h 0052 4] Proximity Domain : 00000002
|
||||
[038h 0056 16] Region Type GUID : 66F0D379-B4F3-4074-AC43-0D3318B78CDB
|
||||
[048h 0072 8] Address Range Base : 0000000108000000
|
||||
[050h 0080 8] Address Range Length : 0000000008000000
|
||||
[058h 0088 8] Memory Map Attribute : 0000000000008008
|
||||
|
||||
[060h 0096 2] Subtable Type : 0001 [Memory Range Map]
|
||||
[062h 0098 2] Length : 0030
|
||||
|
||||
[064h 0100 4] Device Handle : 00000002
|
||||
[068h 0104 2] Physical Id : 0000
|
||||
[06Ah 0106 2] Region Id : 0000
|
||||
[06Ch 0108 2] Range Index : 0004
|
||||
[06Eh 0110 2] Control Region Index : 0005
|
||||
[070h 0112 8] Region Size : 0000000008000000
|
||||
[078h 0120 8] Region Offset : 0000000000000000
|
||||
[080h 0128 8] Address Region Base : 0000000000000000
|
||||
[088h 0136 2] Interleave Index : 0000
|
||||
[08Ah 0138 2] Interleave Ways : 0001
|
||||
[08Ch 0140 2] Flags : 0000
|
||||
Save to device failed : 0
|
||||
Restore from device failed : 0
|
||||
Platform flush failed : 0
|
||||
Device not armed : 0
|
||||
Health events observed : 0
|
||||
Health events enabled : 0
|
||||
Mapping failed : 0
|
||||
[08Eh 0142 2] Reserved : 0000
|
||||
|
||||
[090h 0144 2] Subtable Type : 0004 [NVDIMM Control Region]
|
||||
[092h 0146 2] Length : 0050
|
||||
|
||||
[094h 0148 2] Region Index : 0005
|
||||
[096h 0150 2] Vendor Id : 8086
|
||||
[098h 0152 2] Device Id : 0001
|
||||
[09Ah 0154 2] Revision Id : 0001
|
||||
[09Ch 0156 2] Subsystem Vendor Id : 0000
|
||||
[09Eh 0158 2] Subsystem Device Id : 0000
|
||||
[0A0h 0160 2] Subsystem Revision Id : 0000
|
||||
[0A2h 0162 1] Valid Fields : 00
|
||||
[0A3h 0163 1] Manufacturing Location : 00
|
||||
[0A4h 0164 2] Manufacturing Date : 0000
|
||||
[0A6h 0166 2] Reserved : 0000
|
||||
[0A8h 0168 4] Serial Number : 00123457
|
||||
[0ACh 0172 2] Code : 0301
|
||||
[0AEh 0174 2] Window Count : 0000
|
||||
[0B0h 0176 8] Window Size : 0000000000000000
|
||||
[0B8h 0184 8] Command Offset : 0000000000000000
|
||||
[0C0h 0192 8] Command Size : 0000000000000000
|
||||
[0C8h 0200 8] Status Offset : 0000000000000000
|
||||
[0D0h 0208 8] Status Size : 0000000000000000
|
||||
[0D8h 0216 2] Flags : 0000
|
||||
Windows buffered : 0
|
||||
[0DAh 0218 6] Reserved1 : 000000000000
|
||||
|
||||
[0E0h 0224 2] Subtable Type : 0007 [Platform Capabilities]
|
||||
[0E2h 0226 2] Length : 0010
|
||||
|
||||
[0E4h 0228 1] Highest Capability : 01
|
||||
[0E5h 0229 3] Reserved : 000000
|
||||
[0E8h 0232 4] Capabilities (decoded below) : 00000003
|
||||
Cache Flush to NVDIMM : 1
|
||||
Memory Flush to NVDIMM : 1
|
||||
Memory Mirroring : 0
|
||||
[0ECh 0236 4] Reserved : 00000000
|
||||
|
||||
Raw Table Data: Length 240 (0xF0)
|
||||
|
||||
0000: 4E 46 49 54 F0 00 00 00 01 24 42 4F 43 48 53 20 // NFIT.....$BOCHS
|
||||
0010: 42 58 50 43 4E 46 49 54 01 00 00 00 42 58 50 43 // BXPCNFIT....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 38 00 04 00 03 00 // ..........8.....
|
||||
0030: 00 00 00 00 02 00 00 00 79 D3 F0 66 F3 B4 74 40 // ........y..f..t@
|
||||
0040: AC 43 0D 33 18 B7 8C DB 00 00 00 08 01 00 00 00 // .C.3............
|
||||
0050: 00 00 00 08 00 00 00 00 08 80 00 00 00 00 00 00 // ................
|
||||
0060: 01 00 30 00 02 00 00 00 00 00 00 00 04 00 05 00 // ..0.............
|
||||
0070: 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0080: 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 // ................
|
||||
0090: 04 00 50 00 05 00 86 80 01 00 01 00 00 00 00 00 // ..P.............
|
||||
00A0: 00 00 00 00 00 00 00 00 57 34 12 00 01 03 00 00 // ........W4......
|
||||
00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00E0: 07 00 10 00 01 00 00 00 03 00 00 00 00 00 00 00 // ................
|
115
tests/data/acpi/pc/NFIT.dsl
Normal file
115
tests/data/acpi/pc/NFIT.dsl
Normal file
|
@ -0,0 +1,115 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/NFIT.dimmpxm, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [NFIT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "NFIT" [NVDIMM Firmware Interface Table]
|
||||
[004h 0004 4] Table Length : 000000F0
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 24
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCNFIT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Reserved : 00000000
|
||||
|
||||
[028h 0040 2] Subtable Type : 0000 [System Physical Address Range]
|
||||
[02Ah 0042 2] Length : 0038
|
||||
|
||||
[02Ch 0044 2] Range Index : 0004
|
||||
[02Eh 0046 2] Flags (decoded below) : 0003
|
||||
Add/Online Operation Only : 1
|
||||
Proximity Domain Valid : 1
|
||||
[030h 0048 4] Reserved : 00000000
|
||||
[034h 0052 4] Proximity Domain : 00000002
|
||||
[038h 0056 16] Region Type GUID : 66F0D379-B4F3-4074-AC43-0D3318B78CDB
|
||||
[048h 0072 8] Address Range Base : 0000000108000000
|
||||
[050h 0080 8] Address Range Length : 0000000008000000
|
||||
[058h 0088 8] Memory Map Attribute : 0000000000008008
|
||||
|
||||
[060h 0096 2] Subtable Type : 0001 [Memory Range Map]
|
||||
[062h 0098 2] Length : 0030
|
||||
|
||||
[064h 0100 4] Device Handle : 00000002
|
||||
[068h 0104 2] Physical Id : 0000
|
||||
[06Ah 0106 2] Region Id : 0000
|
||||
[06Ch 0108 2] Range Index : 0004
|
||||
[06Eh 0110 2] Control Region Index : 0005
|
||||
[070h 0112 8] Region Size : 0000000008000000
|
||||
[078h 0120 8] Region Offset : 0000000000000000
|
||||
[080h 0128 8] Address Region Base : 0000000000000000
|
||||
[088h 0136 2] Interleave Index : 0000
|
||||
[08Ah 0138 2] Interleave Ways : 0001
|
||||
[08Ch 0140 2] Flags : 0000
|
||||
Save to device failed : 0
|
||||
Restore from device failed : 0
|
||||
Platform flush failed : 0
|
||||
Device not armed : 0
|
||||
Health events observed : 0
|
||||
Health events enabled : 0
|
||||
Mapping failed : 0
|
||||
[08Eh 0142 2] Reserved : 0000
|
||||
|
||||
[090h 0144 2] Subtable Type : 0004 [NVDIMM Control Region]
|
||||
[092h 0146 2] Length : 0050
|
||||
|
||||
[094h 0148 2] Region Index : 0005
|
||||
[096h 0150 2] Vendor Id : 8086
|
||||
[098h 0152 2] Device Id : 0001
|
||||
[09Ah 0154 2] Revision Id : 0001
|
||||
[09Ch 0156 2] Subsystem Vendor Id : 0000
|
||||
[09Eh 0158 2] Subsystem Device Id : 0000
|
||||
[0A0h 0160 2] Subsystem Revision Id : 0000
|
||||
[0A2h 0162 1] Valid Fields : 00
|
||||
[0A3h 0163 1] Manufacturing Location : 00
|
||||
[0A4h 0164 2] Manufacturing Date : 0000
|
||||
[0A6h 0166 2] Reserved : 0000
|
||||
[0A8h 0168 4] Serial Number : 00123457
|
||||
[0ACh 0172 2] Code : 0301
|
||||
[0AEh 0174 2] Window Count : 0000
|
||||
[0B0h 0176 8] Window Size : 0000000000000000
|
||||
[0B8h 0184 8] Command Offset : 0000000000000000
|
||||
[0C0h 0192 8] Command Size : 0000000000000000
|
||||
[0C8h 0200 8] Status Offset : 0000000000000000
|
||||
[0D0h 0208 8] Status Size : 0000000000000000
|
||||
[0D8h 0216 2] Flags : 0000
|
||||
Windows buffered : 0
|
||||
[0DAh 0218 6] Reserved1 : 000000000000
|
||||
|
||||
[0E0h 0224 2] Subtable Type : 0007 [Platform Capabilities]
|
||||
[0E2h 0226 2] Length : 0010
|
||||
|
||||
[0E4h 0228 1] Highest Capability : 01
|
||||
[0E5h 0229 3] Reserved : 000000
|
||||
[0E8h 0232 4] Capabilities (decoded below) : 00000003
|
||||
Cache Flush to NVDIMM : 1
|
||||
Memory Flush to NVDIMM : 1
|
||||
Memory Mirroring : 0
|
||||
[0ECh 0236 4] Reserved : 00000000
|
||||
|
||||
Raw Table Data: Length 240 (0xF0)
|
||||
|
||||
0000: 4E 46 49 54 F0 00 00 00 01 24 42 4F 43 48 53 20 // NFIT.....$BOCHS
|
||||
0010: 42 58 50 43 4E 46 49 54 01 00 00 00 42 58 50 43 // BXPCNFIT....BXPC
|
||||
0020: 01 00 00 00 00 00 00 00 00 00 38 00 04 00 03 00 // ..........8.....
|
||||
0030: 00 00 00 00 02 00 00 00 79 D3 F0 66 F3 B4 74 40 // ........y..f..t@
|
||||
0040: AC 43 0D 33 18 B7 8C DB 00 00 00 08 01 00 00 00 // .C.3............
|
||||
0050: 00 00 00 08 00 00 00 00 08 80 00 00 00 00 00 00 // ................
|
||||
0060: 01 00 30 00 02 00 00 00 00 00 00 00 04 00 05 00 // ..0.............
|
||||
0070: 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0080: 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 // ................
|
||||
0090: 04 00 50 00 05 00 86 80 01 00 01 00 00 00 00 00 // ..P.............
|
||||
00A0: 00 00 00 00 00 00 00 00 57 34 12 00 01 03 00 00 // ........W4......
|
||||
00B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00E0: 07 00 10 00 01 00 00 00 03 00 00 00 00 00 00 00 // ................
|
31
tests/data/acpi/pc/SLIT.cphp.dsl
Normal file
31
tests/data/acpi/pc/SLIT.cphp.dsl
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SLIT.cphp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [SLIT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SLIT" [System Locality Information Table]
|
||||
[004h 0004 4] Table Length : 00000030
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 2C
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSLIT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 8] Localities : 0000000000000002
|
||||
[02Ch 0044 2] Locality 0 : 0A 15
|
||||
[02Eh 0046 2] Locality 1 : 15 0A
|
||||
|
||||
Raw Table Data: Length 48 (0x30)
|
||||
|
||||
0000: 53 4C 49 54 30 00 00 00 01 2C 42 4F 43 48 53 20 // SLIT0....,BOCHS
|
||||
0010: 42 58 50 43 53 4C 49 54 01 00 00 00 42 58 50 43 // BXPCSLIT....BXPC
|
||||
0020: 01 00 00 00 02 00 00 00 00 00 00 00 0A 15 15 0A // ................
|
31
tests/data/acpi/pc/SLIT.dsl
Normal file
31
tests/data/acpi/pc/SLIT.dsl
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SLIT.memhp, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [SLIT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SLIT" [System Locality Information Table]
|
||||
[004h 0004 4] Table Length : 00000030
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 2C
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSLIT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 8] Localities : 0000000000000002
|
||||
[02Ch 0044 2] Locality 0 : 0A 15
|
||||
[02Eh 0046 2] Locality 1 : 15 0A
|
||||
|
||||
Raw Table Data: Length 48 (0x30)
|
||||
|
||||
0000: 53 4C 49 54 30 00 00 00 01 2C 42 4F 43 48 53 20 // SLIT0....,BOCHS
|
||||
0010: 42 58 50 43 53 4C 49 54 01 00 00 00 42 58 50 43 // BXPCSLIT....BXPC
|
||||
0020: 01 00 00 00 02 00 00 00 00 00 00 00 0A 15 15 0A // ................
|
31
tests/data/acpi/pc/SLIT.memhp.dsl
Normal file
31
tests/data/acpi/pc/SLIT.memhp.dsl
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SLIT.memhp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [SLIT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SLIT" [System Locality Information Table]
|
||||
[004h 0004 4] Table Length : 00000030
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 2C
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSLIT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 8] Localities : 0000000000000002
|
||||
[02Ch 0044 2] Locality 0 : 0A 15
|
||||
[02Eh 0046 2] Locality 1 : 15 0A
|
||||
|
||||
Raw Table Data: Length 48 (0x30)
|
||||
|
||||
0000: 53 4C 49 54 30 00 00 00 01 2C 42 4F 43 48 53 20 // SLIT0....,BOCHS
|
||||
0010: 42 58 50 43 53 4C 49 54 01 00 00 00 42 58 50 43 // BXPCSLIT....BXPC
|
||||
0020: 01 00 00 00 02 00 00 00 00 00 00 00 0A 15 15 0A // ................
|
137
tests/data/acpi/pc/SRAT.acpihmat.dsl
Normal file
137
tests/data/acpi/pc/SRAT.acpihmat.dsl
Normal file
|
@ -0,0 +1,137 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SRAT.acpihmat, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [SRAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SRAT" [System Resource Affinity Table]
|
||||
[004h 0004 4] Table Length : 00000118
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : C0
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSRAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Table Revision : 00000001
|
||||
[028h 0040 8] Reserved : 0000000000000000
|
||||
|
||||
[030h 0048 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[031h 0049 1] Length : 10
|
||||
|
||||
[032h 0050 1] Proximity Domain Low(8) : 00
|
||||
[033h 0051 1] Apic ID : 00
|
||||
[034h 0052 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[038h 0056 1] Local Sapic EID : 00
|
||||
[039h 0057 3] Proximity Domain High(24) : 000000
|
||||
[03Ch 0060 4] Clock Domain : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[041h 0065 1] Length : 10
|
||||
|
||||
[042h 0066 1] Proximity Domain Low(8) : 00
|
||||
[043h 0067 1] Apic ID : 01
|
||||
[044h 0068 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[048h 0072 1] Local Sapic EID : 00
|
||||
[049h 0073 3] Proximity Domain High(24) : 000000
|
||||
[04Ch 0076 4] Clock Domain : 00000000
|
||||
|
||||
[050h 0080 1] Subtable Type : 01 [Memory Affinity]
|
||||
[051h 0081 1] Length : 28
|
||||
|
||||
[052h 0082 4] Proximity Domain : 00000000
|
||||
[056h 0086 2] Reserved1 : 0000
|
||||
[058h 0088 8] Base Address : 0000000000000000
|
||||
[060h 0096 8] Address Length : 00000000000A0000
|
||||
[068h 0104 4] Reserved2 : 00000000
|
||||
[06Ch 0108 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[070h 0112 8] Reserved3 : 0000000000000000
|
||||
|
||||
[078h 0120 1] Subtable Type : 01 [Memory Affinity]
|
||||
[079h 0121 1] Length : 28
|
||||
|
||||
[07Ah 0122 4] Proximity Domain : 00000000
|
||||
[07Eh 0126 2] Reserved1 : 0000
|
||||
[080h 0128 8] Base Address : 0000000000100000
|
||||
[088h 0136 8] Address Length : 0000000003F00000
|
||||
[090h 0144 4] Reserved2 : 00000000
|
||||
[094h 0148 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[098h 0152 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0A0h 0160 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0A1h 0161 1] Length : 28
|
||||
|
||||
[0A2h 0162 4] Proximity Domain : 00000001
|
||||
[0A6h 0166 2] Reserved1 : 0000
|
||||
[0A8h 0168 8] Base Address : 0000000004000000
|
||||
[0B0h 0176 8] Address Length : 0000000004000000
|
||||
[0B8h 0184 4] Reserved2 : 00000000
|
||||
[0BCh 0188 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0C0h 0192 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0C8h 0200 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0C9h 0201 1] Length : 28
|
||||
|
||||
[0CAh 0202 4] Proximity Domain : 00000000
|
||||
[0CEh 0206 2] Reserved1 : 0000
|
||||
[0D0h 0208 8] Base Address : 0000000000000000
|
||||
[0D8h 0216 8] Address Length : 0000000000000000
|
||||
[0E0h 0224 4] Reserved2 : 00000000
|
||||
[0E4h 0228 4] Flags (decoded below) : 00000000
|
||||
Enabled : 0
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0E8h 0232 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0F0h 0240 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0F1h 0241 1] Length : 28
|
||||
|
||||
[0F2h 0242 4] Proximity Domain : 00000001
|
||||
[0F6h 0246 2] Reserved1 : 0000
|
||||
[0F8h 0248 8] Base Address : 0000000100000000
|
||||
[100h 0256 8] Address Length : 00000000B8000000
|
||||
[108h 0264 4] Reserved2 : 00000000
|
||||
[10Ch 0268 4] Flags (decoded below) : 00000003
|
||||
Enabled : 1
|
||||
Hot Pluggable : 1
|
||||
Non-Volatile : 0
|
||||
[110h 0272 8] Reserved3 : 0000000000000000
|
||||
|
||||
Raw Table Data: Length 280 (0x118)
|
||||
|
||||
0000: 53 52 41 54 18 01 00 00 01 C0 42 4F 43 48 53 20 // SRAT......BOCHS
|
||||
0010: 42 58 50 43 53 52 41 54 01 00 00 00 42 58 50 43 // BXPCSRAT....BXPC
|
||||
0020: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0030: 00 10 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 00 10 00 01 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0050: 01 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
0060: 00 00 0A 00 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
0070: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
0080: 00 00 10 00 00 00 00 00 00 00 F0 03 00 00 00 00 // ................
|
||||
0090: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00A0: 01 28 01 00 00 00 00 00 00 00 00 04 00 00 00 00 // .(..............
|
||||
00B0: 00 00 00 04 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
00C0: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00F0: 01 28 01 00 00 00 00 00 00 00 00 00 01 00 00 00 // .(..............
|
||||
0100: 00 00 00 B8 00 00 00 00 00 00 00 00 03 00 00 00 // ................
|
||||
0110: 00 00 00 00 00 00 00 00 // ........
|
168
tests/data/acpi/pc/SRAT.cphp.dsl
Normal file
168
tests/data/acpi/pc/SRAT.cphp.dsl
Normal file
|
@ -0,0 +1,168 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SRAT.cphp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [SRAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SRAT" [System Resource Affinity Table]
|
||||
[004h 0004 4] Table Length : 00000130
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 36
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSRAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Table Revision : 00000001
|
||||
[028h 0040 8] Reserved : 0000000000000000
|
||||
|
||||
[030h 0048 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[031h 0049 1] Length : 10
|
||||
|
||||
[032h 0050 1] Proximity Domain Low(8) : 00
|
||||
[033h 0051 1] Apic ID : 00
|
||||
[034h 0052 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[038h 0056 1] Local Sapic EID : 00
|
||||
[039h 0057 3] Proximity Domain High(24) : 000000
|
||||
[03Ch 0060 4] Clock Domain : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[041h 0065 1] Length : 10
|
||||
|
||||
[042h 0066 1] Proximity Domain Low(8) : 00
|
||||
[043h 0067 1] Apic ID : 01
|
||||
[044h 0068 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[048h 0072 1] Local Sapic EID : 00
|
||||
[049h 0073 3] Proximity Domain High(24) : 000000
|
||||
[04Ch 0076 4] Clock Domain : 00000000
|
||||
|
||||
[050h 0080 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[051h 0081 1] Length : 10
|
||||
|
||||
[052h 0082 1] Proximity Domain Low(8) : 00
|
||||
[053h 0083 1] Apic ID : 02
|
||||
[054h 0084 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[058h 0088 1] Local Sapic EID : 00
|
||||
[059h 0089 3] Proximity Domain High(24) : 000000
|
||||
[05Ch 0092 4] Clock Domain : 00000000
|
||||
|
||||
[060h 0096 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[061h 0097 1] Length : 10
|
||||
|
||||
[062h 0098 1] Proximity Domain Low(8) : 01
|
||||
[063h 0099 1] Apic ID : 04
|
||||
[064h 0100 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[068h 0104 1] Local Sapic EID : 00
|
||||
[069h 0105 3] Proximity Domain High(24) : 000000
|
||||
[06Ch 0108 4] Clock Domain : 00000000
|
||||
|
||||
[070h 0112 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[071h 0113 1] Length : 10
|
||||
|
||||
[072h 0114 1] Proximity Domain Low(8) : 01
|
||||
[073h 0115 1] Apic ID : 05
|
||||
[074h 0116 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[078h 0120 1] Local Sapic EID : 00
|
||||
[079h 0121 3] Proximity Domain High(24) : 000000
|
||||
[07Ch 0124 4] Clock Domain : 00000000
|
||||
|
||||
[080h 0128 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[081h 0129 1] Length : 10
|
||||
|
||||
[082h 0130 1] Proximity Domain Low(8) : 01
|
||||
[083h 0131 1] Apic ID : 06
|
||||
[084h 0132 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[088h 0136 1] Local Sapic EID : 00
|
||||
[089h 0137 3] Proximity Domain High(24) : 000000
|
||||
[08Ch 0140 4] Clock Domain : 00000000
|
||||
|
||||
[090h 0144 1] Subtable Type : 01 [Memory Affinity]
|
||||
[091h 0145 1] Length : 28
|
||||
|
||||
[092h 0146 4] Proximity Domain : 00000000
|
||||
[096h 0150 2] Reserved1 : 0000
|
||||
[098h 0152 8] Base Address : 0000000000000000
|
||||
[0A0h 0160 8] Address Length : 00000000000A0000
|
||||
[0A8h 0168 4] Reserved2 : 00000000
|
||||
[0ACh 0172 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0B0h 0176 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0B8h 0184 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0B9h 0185 1] Length : 28
|
||||
|
||||
[0BAh 0186 4] Proximity Domain : 00000000
|
||||
[0BEh 0190 2] Reserved1 : 0000
|
||||
[0C0h 0192 8] Base Address : 0000000000100000
|
||||
[0C8h 0200 8] Address Length : 0000000003F00000
|
||||
[0D0h 0208 4] Reserved2 : 00000000
|
||||
[0D4h 0212 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0D8h 0216 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0E0h 0224 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0E1h 0225 1] Length : 28
|
||||
|
||||
[0E2h 0226 4] Proximity Domain : 00000001
|
||||
[0E6h 0230 2] Reserved1 : 0000
|
||||
[0E8h 0232 8] Base Address : 0000000004000000
|
||||
[0F0h 0240 8] Address Length : 0000000004000000
|
||||
[0F8h 0248 4] Reserved2 : 00000000
|
||||
[0FCh 0252 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[100h 0256 8] Reserved3 : 0000000000000000
|
||||
|
||||
[108h 0264 1] Subtable Type : 01 [Memory Affinity]
|
||||
[109h 0265 1] Length : 28
|
||||
|
||||
[10Ah 0266 4] Proximity Domain : 00000000
|
||||
[10Eh 0270 2] Reserved1 : 0000
|
||||
[110h 0272 8] Base Address : 0000000000000000
|
||||
[118h 0280 8] Address Length : 0000000000000000
|
||||
[120h 0288 4] Reserved2 : 00000000
|
||||
[124h 0292 4] Flags (decoded below) : 00000000
|
||||
Enabled : 0
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[128h 0296 8] Reserved3 : 0000000000000000
|
||||
|
||||
Raw Table Data: Length 304 (0x130)
|
||||
|
||||
0000: 53 52 41 54 30 01 00 00 01 36 42 4F 43 48 53 20 // SRAT0....6BOCHS
|
||||
0010: 42 58 50 43 53 52 41 54 01 00 00 00 42 58 50 43 // BXPCSRAT....BXPC
|
||||
0020: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0030: 00 10 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 00 10 00 01 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0050: 00 10 00 02 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0060: 00 10 01 04 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0070: 00 10 01 05 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0080: 00 10 01 06 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0090: 01 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
00A0: 00 00 0A 00 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
00B0: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
00C0: 00 00 10 00 00 00 00 00 00 00 F0 03 00 00 00 00 // ................
|
||||
00D0: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00E0: 01 28 01 00 00 00 00 00 00 00 00 04 00 00 00 00 // .(..............
|
||||
00F0: 00 00 00 04 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
0100: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
194
tests/data/acpi/pc/SRAT.dimmpxm.dsl
Normal file
194
tests/data/acpi/pc/SRAT.dimmpxm.dsl
Normal file
|
@ -0,0 +1,194 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SRAT.dimmpxm, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [SRAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SRAT" [System Resource Affinity Table]
|
||||
[004h 0004 4] Table Length : 00000188
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 68
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSRAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Table Revision : 00000001
|
||||
[028h 0040 8] Reserved : 0000000000000000
|
||||
|
||||
[030h 0048 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[031h 0049 1] Length : 10
|
||||
|
||||
[032h 0050 1] Proximity Domain Low(8) : 00
|
||||
[033h 0051 1] Apic ID : 00
|
||||
[034h 0052 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[038h 0056 1] Local Sapic EID : 00
|
||||
[039h 0057 3] Proximity Domain High(24) : 000000
|
||||
[03Ch 0060 4] Clock Domain : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[041h 0065 1] Length : 10
|
||||
|
||||
[042h 0066 1] Proximity Domain Low(8) : 01
|
||||
[043h 0067 1] Apic ID : 01
|
||||
[044h 0068 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[048h 0072 1] Local Sapic EID : 00
|
||||
[049h 0073 3] Proximity Domain High(24) : 000000
|
||||
[04Ch 0076 4] Clock Domain : 00000000
|
||||
|
||||
[050h 0080 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[051h 0081 1] Length : 10
|
||||
|
||||
[052h 0082 1] Proximity Domain Low(8) : 02
|
||||
[053h 0083 1] Apic ID : 02
|
||||
[054h 0084 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[058h 0088 1] Local Sapic EID : 00
|
||||
[059h 0089 3] Proximity Domain High(24) : 000000
|
||||
[05Ch 0092 4] Clock Domain : 00000000
|
||||
|
||||
[060h 0096 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[061h 0097 1] Length : 10
|
||||
|
||||
[062h 0098 1] Proximity Domain Low(8) : 03
|
||||
[063h 0099 1] Apic ID : 03
|
||||
[064h 0100 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[068h 0104 1] Local Sapic EID : 00
|
||||
[069h 0105 3] Proximity Domain High(24) : 000000
|
||||
[06Ch 0108 4] Clock Domain : 00000000
|
||||
|
||||
[070h 0112 1] Subtable Type : 01 [Memory Affinity]
|
||||
[071h 0113 1] Length : 28
|
||||
|
||||
[072h 0114 4] Proximity Domain : 00000000
|
||||
[076h 0118 2] Reserved1 : 0000
|
||||
[078h 0120 8] Base Address : 0000000000000000
|
||||
[080h 0128 8] Address Length : 00000000000A0000
|
||||
[088h 0136 4] Reserved2 : 00000000
|
||||
[08Ch 0140 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[090h 0144 8] Reserved3 : 0000000000000000
|
||||
|
||||
[098h 0152 1] Subtable Type : 01 [Memory Affinity]
|
||||
[099h 0153 1] Length : 28
|
||||
|
||||
[09Ah 0154 4] Proximity Domain : 00000000
|
||||
[09Eh 0158 2] Reserved1 : 0000
|
||||
[0A0h 0160 8] Base Address : 0000000000100000
|
||||
[0A8h 0168 8] Address Length : 0000000001F00000
|
||||
[0B0h 0176 4] Reserved2 : 00000000
|
||||
[0B4h 0180 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0B8h 0184 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0C0h 0192 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0C1h 0193 1] Length : 28
|
||||
|
||||
[0C2h 0194 4] Proximity Domain : 00000001
|
||||
[0C6h 0198 2] Reserved1 : 0000
|
||||
[0C8h 0200 8] Base Address : 0000000002000000
|
||||
[0D0h 0208 8] Address Length : 0000000002000000
|
||||
[0D8h 0216 4] Reserved2 : 00000000
|
||||
[0DCh 0220 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0E0h 0224 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0E8h 0232 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0E9h 0233 1] Length : 28
|
||||
|
||||
[0EAh 0234 4] Proximity Domain : 00000002
|
||||
[0EEh 0238 2] Reserved1 : 0000
|
||||
[0F0h 0240 8] Base Address : 0000000004000000
|
||||
[0F8h 0248 8] Address Length : 0000000002000000
|
||||
[100h 0256 4] Reserved2 : 00000000
|
||||
[104h 0260 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[108h 0264 8] Reserved3 : 0000000000000000
|
||||
|
||||
[110h 0272 1] Subtable Type : 01 [Memory Affinity]
|
||||
[111h 0273 1] Length : 28
|
||||
|
||||
[112h 0274 4] Proximity Domain : 00000003
|
||||
[116h 0278 2] Reserved1 : 0000
|
||||
[118h 0280 8] Base Address : 0000000006000000
|
||||
[120h 0288 8] Address Length : 0000000002000000
|
||||
[128h 0296 4] Reserved2 : 00000000
|
||||
[12Ch 0300 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[130h 0304 8] Reserved3 : 0000000000000000
|
||||
|
||||
[138h 0312 1] Subtable Type : 01 [Memory Affinity]
|
||||
[139h 0313 1] Length : 28
|
||||
|
||||
[13Ah 0314 4] Proximity Domain : 00000002
|
||||
[13Eh 0318 2] Reserved1 : 0000
|
||||
[140h 0320 8] Base Address : 0000000108000000
|
||||
[148h 0328 8] Address Length : 0000000008000000
|
||||
[150h 0336 4] Reserved2 : 00000000
|
||||
[154h 0340 4] Flags (decoded below) : 00000005
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 1
|
||||
[158h 0344 8] Reserved3 : 0000000000000000
|
||||
|
||||
[160h 0352 1] Subtable Type : 01 [Memory Affinity]
|
||||
[161h 0353 1] Length : 28
|
||||
|
||||
[162h 0354 4] Proximity Domain : 00000003
|
||||
[166h 0358 2] Reserved1 : 0000
|
||||
[168h 0360 8] Base Address : 0000000100000000
|
||||
[170h 0368 8] Address Length : 00000000F8000000
|
||||
[178h 0376 4] Reserved2 : 00000000
|
||||
[17Ch 0380 4] Flags (decoded below) : 00000003
|
||||
Enabled : 1
|
||||
Hot Pluggable : 1
|
||||
Non-Volatile : 0
|
||||
[180h 0384 8] Reserved3 : 0000000000000000
|
||||
|
||||
Raw Table Data: Length 392 (0x188)
|
||||
|
||||
0000: 53 52 41 54 88 01 00 00 01 68 42 4F 43 48 53 20 // SRAT.....hBOCHS
|
||||
0010: 42 58 50 43 53 52 41 54 01 00 00 00 42 58 50 43 // BXPCSRAT....BXPC
|
||||
0020: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0030: 00 10 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 00 10 01 01 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0050: 00 10 02 02 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0060: 00 10 03 03 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0070: 01 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
0080: 00 00 0A 00 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
0090: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
00A0: 00 00 10 00 00 00 00 00 00 00 F0 01 00 00 00 00 // ................
|
||||
00B0: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00C0: 01 28 01 00 00 00 00 00 00 00 00 02 00 00 00 00 // .(..............
|
||||
00D0: 00 00 00 02 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
00E0: 00 00 00 00 00 00 00 00 01 28 02 00 00 00 00 00 // .........(......
|
||||
00F0: 00 00 00 04 00 00 00 00 00 00 00 02 00 00 00 00 // ................
|
||||
0100: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0110: 01 28 03 00 00 00 00 00 00 00 00 06 00 00 00 00 // .(..............
|
||||
0120: 00 00 00 02 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
0130: 00 00 00 00 00 00 00 00 01 28 02 00 00 00 00 00 // .........(......
|
||||
0140: 00 00 00 08 01 00 00 00 00 00 00 08 00 00 00 00 // ................
|
||||
0150: 00 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0160: 01 28 03 00 00 00 00 00 00 00 00 00 01 00 00 00 // .(..............
|
||||
0170: 00 00 00 F8 00 00 00 00 00 00 00 00 03 00 00 00 // ................
|
||||
0180: 00 00 00 00 00 00 00 00 // ........
|
108
tests/data/acpi/pc/SRAT.dsl
Normal file
108
tests/data/acpi/pc/SRAT.dsl
Normal file
|
@ -0,0 +1,108 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SRAT.numamem, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* ACPI Data Table [SRAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SRAT" [System Resource Affinity Table]
|
||||
[004h 0004 4] Table Length : 000000E0
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : F5
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSRAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Table Revision : 00000001
|
||||
[028h 0040 8] Reserved : 0000000000000000
|
||||
|
||||
[030h 0048 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[031h 0049 1] Length : 10
|
||||
|
||||
[032h 0050 1] Proximity Domain Low(8) : 00
|
||||
[033h 0051 1] Apic ID : 00
|
||||
[034h 0052 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[038h 0056 1] Local Sapic EID : 00
|
||||
[039h 0057 3] Proximity Domain High(24) : 000000
|
||||
[03Ch 0060 4] Clock Domain : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 01 [Memory Affinity]
|
||||
[041h 0065 1] Length : 28
|
||||
|
||||
[042h 0066 4] Proximity Domain : 00000001
|
||||
[046h 0070 2] Reserved1 : 0000
|
||||
[048h 0072 8] Base Address : 0000000000000000
|
||||
[050h 0080 8] Address Length : 00000000000A0000
|
||||
[058h 0088 4] Reserved2 : 00000000
|
||||
[05Ch 0092 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[060h 0096 8] Reserved3 : 0000000000000000
|
||||
|
||||
[068h 0104 1] Subtable Type : 01 [Memory Affinity]
|
||||
[069h 0105 1] Length : 28
|
||||
|
||||
[06Ah 0106 4] Proximity Domain : 00000001
|
||||
[06Eh 0110 2] Reserved1 : 0000
|
||||
[070h 0112 8] Base Address : 0000000000100000
|
||||
[078h 0120 8] Address Length : 0000000007F00000
|
||||
[080h 0128 4] Reserved2 : 00000000
|
||||
[084h 0132 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[088h 0136 8] Reserved3 : 0000000000000000
|
||||
|
||||
[090h 0144 1] Subtable Type : 01 [Memory Affinity]
|
||||
[091h 0145 1] Length : 28
|
||||
|
||||
[092h 0146 4] Proximity Domain : 00000000
|
||||
[096h 0150 2] Reserved1 : 0000
|
||||
[098h 0152 8] Base Address : 0000000000000000
|
||||
[0A0h 0160 8] Address Length : 0000000000000000
|
||||
[0A8h 0168 4] Reserved2 : 00000000
|
||||
[0ACh 0172 4] Flags (decoded below) : 00000000
|
||||
Enabled : 0
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0B0h 0176 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0B8h 0184 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0B9h 0185 1] Length : 28
|
||||
|
||||
[0BAh 0186 4] Proximity Domain : 00000000
|
||||
[0BEh 0190 2] Reserved1 : 0000
|
||||
[0C0h 0192 8] Base Address : 0000000000000000
|
||||
[0C8h 0200 8] Address Length : 0000000000000000
|
||||
[0D0h 0208 4] Reserved2 : 00000000
|
||||
[0D4h 0212 4] Flags (decoded below) : 00000000
|
||||
Enabled : 0
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0D8h 0216 8] Reserved3 : 0000000000000000
|
||||
|
||||
Raw Table Data: Length 224 (0xE0)
|
||||
|
||||
0000: 53 52 41 54 E0 00 00 00 01 F5 42 4F 43 48 53 20 // SRAT......BOCHS
|
||||
0010: 42 58 50 43 53 52 41 54 01 00 00 00 42 58 50 43 // BXPCSRAT....BXPC
|
||||
0020: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0030: 00 10 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 01 28 01 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
0050: 00 00 0A 00 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
0060: 00 00 00 00 00 00 00 00 01 28 01 00 00 00 00 00 // .........(......
|
||||
0070: 00 00 10 00 00 00 00 00 00 00 F0 07 00 00 00 00 // ................
|
||||
0080: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0090: 01 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00B0: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
125
tests/data/acpi/pc/SRAT.memhp.dsl
Normal file
125
tests/data/acpi/pc/SRAT.memhp.dsl
Normal file
|
@ -0,0 +1,125 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SRAT.memhp, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [SRAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SRAT" [System Resource Affinity Table]
|
||||
[004h 0004 4] Table Length : 00000108
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : A2
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSRAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Table Revision : 00000001
|
||||
[028h 0040 8] Reserved : 0000000000000000
|
||||
|
||||
[030h 0048 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[031h 0049 1] Length : 10
|
||||
|
||||
[032h 0050 1] Proximity Domain Low(8) : 00
|
||||
[033h 0051 1] Apic ID : 00
|
||||
[034h 0052 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[038h 0056 1] Local Sapic EID : 00
|
||||
[039h 0057 3] Proximity Domain High(24) : 000000
|
||||
[03Ch 0060 4] Clock Domain : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 01 [Memory Affinity]
|
||||
[041h 0065 1] Length : 28
|
||||
|
||||
[042h 0066 4] Proximity Domain : 00000000
|
||||
[046h 0070 2] Reserved1 : 0000
|
||||
[048h 0072 8] Base Address : 0000000000000000
|
||||
[050h 0080 8] Address Length : 00000000000A0000
|
||||
[058h 0088 4] Reserved2 : 00000000
|
||||
[05Ch 0092 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[060h 0096 8] Reserved3 : 0000000000000000
|
||||
|
||||
[068h 0104 1] Subtable Type : 01 [Memory Affinity]
|
||||
[069h 0105 1] Length : 28
|
||||
|
||||
[06Ah 0106 4] Proximity Domain : 00000000
|
||||
[06Eh 0110 2] Reserved1 : 0000
|
||||
[070h 0112 8] Base Address : 0000000000100000
|
||||
[078h 0120 8] Address Length : 0000000003F00000
|
||||
[080h 0128 4] Reserved2 : 00000000
|
||||
[084h 0132 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[088h 0136 8] Reserved3 : 0000000000000000
|
||||
|
||||
[090h 0144 1] Subtable Type : 01 [Memory Affinity]
|
||||
[091h 0145 1] Length : 28
|
||||
|
||||
[092h 0146 4] Proximity Domain : 00000001
|
||||
[096h 0150 2] Reserved1 : 0000
|
||||
[098h 0152 8] Base Address : 0000000004000000
|
||||
[0A0h 0160 8] Address Length : 0000000004000000
|
||||
[0A8h 0168 4] Reserved2 : 00000000
|
||||
[0ACh 0172 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0B0h 0176 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0B8h 0184 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0B9h 0185 1] Length : 28
|
||||
|
||||
[0BAh 0186 4] Proximity Domain : 00000000
|
||||
[0BEh 0190 2] Reserved1 : 0000
|
||||
[0C0h 0192 8] Base Address : 0000000000000000
|
||||
[0C8h 0200 8] Address Length : 0000000000000000
|
||||
[0D0h 0208 4] Reserved2 : 00000000
|
||||
[0D4h 0212 4] Flags (decoded below) : 00000000
|
||||
Enabled : 0
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0D8h 0216 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0E0h 0224 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0E1h 0225 1] Length : 28
|
||||
|
||||
[0E2h 0226 4] Proximity Domain : 00000001
|
||||
[0E6h 0230 2] Reserved1 : 0000
|
||||
[0E8h 0232 8] Base Address : 0000000100000000
|
||||
[0F0h 0240 8] Address Length : 00000000F8000000
|
||||
[0F8h 0248 4] Reserved2 : 00000000
|
||||
[0FCh 0252 4] Flags (decoded below) : 00000003
|
||||
Enabled : 1
|
||||
Hot Pluggable : 1
|
||||
Non-Volatile : 0
|
||||
[100h 0256 8] Reserved3 : 0000000000000000
|
||||
|
||||
Raw Table Data: Length 264 (0x108)
|
||||
|
||||
0000: 53 52 41 54 08 01 00 00 01 A2 42 4F 43 48 53 20 // SRAT......BOCHS
|
||||
0010: 42 58 50 43 53 52 41 54 01 00 00 00 42 58 50 43 // BXPCSRAT....BXPC
|
||||
0020: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0030: 00 10 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 01 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
0050: 00 00 0A 00 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
0060: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
0070: 00 00 10 00 00 00 00 00 00 00 F0 03 00 00 00 00 // ................
|
||||
0080: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0090: 01 28 01 00 00 00 00 00 00 00 00 04 00 00 00 00 // .(..............
|
||||
00A0: 00 00 00 04 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
00B0: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00E0: 01 28 01 00 00 00 00 00 00 00 00 00 01 00 00 00 // .(..............
|
||||
00F0: 00 00 00 F8 00 00 00 00 00 00 00 00 03 00 00 00 // ................
|
||||
0100: 00 00 00 00 00 00 00 00 // ........
|
108
tests/data/acpi/pc/SRAT.numamem.dsl
Normal file
108
tests/data/acpi/pc/SRAT.numamem.dsl
Normal file
|
@ -0,0 +1,108 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SRAT.numamem, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [SRAT]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "SRAT" [System Resource Affinity Table]
|
||||
[004h 0004 4] Table Length : 000000E0
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : F5
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCSRAT"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Table Revision : 00000001
|
||||
[028h 0040 8] Reserved : 0000000000000000
|
||||
|
||||
[030h 0048 1] Subtable Type : 00 [Processor Local APIC/SAPIC Affinity]
|
||||
[031h 0049 1] Length : 10
|
||||
|
||||
[032h 0050 1] Proximity Domain Low(8) : 00
|
||||
[033h 0051 1] Apic ID : 00
|
||||
[034h 0052 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
[038h 0056 1] Local Sapic EID : 00
|
||||
[039h 0057 3] Proximity Domain High(24) : 000000
|
||||
[03Ch 0060 4] Clock Domain : 00000000
|
||||
|
||||
[040h 0064 1] Subtable Type : 01 [Memory Affinity]
|
||||
[041h 0065 1] Length : 28
|
||||
|
||||
[042h 0066 4] Proximity Domain : 00000001
|
||||
[046h 0070 2] Reserved1 : 0000
|
||||
[048h 0072 8] Base Address : 0000000000000000
|
||||
[050h 0080 8] Address Length : 00000000000A0000
|
||||
[058h 0088 4] Reserved2 : 00000000
|
||||
[05Ch 0092 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[060h 0096 8] Reserved3 : 0000000000000000
|
||||
|
||||
[068h 0104 1] Subtable Type : 01 [Memory Affinity]
|
||||
[069h 0105 1] Length : 28
|
||||
|
||||
[06Ah 0106 4] Proximity Domain : 00000001
|
||||
[06Eh 0110 2] Reserved1 : 0000
|
||||
[070h 0112 8] Base Address : 0000000000100000
|
||||
[078h 0120 8] Address Length : 0000000007F00000
|
||||
[080h 0128 4] Reserved2 : 00000000
|
||||
[084h 0132 4] Flags (decoded below) : 00000001
|
||||
Enabled : 1
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[088h 0136 8] Reserved3 : 0000000000000000
|
||||
|
||||
[090h 0144 1] Subtable Type : 01 [Memory Affinity]
|
||||
[091h 0145 1] Length : 28
|
||||
|
||||
[092h 0146 4] Proximity Domain : 00000000
|
||||
[096h 0150 2] Reserved1 : 0000
|
||||
[098h 0152 8] Base Address : 0000000000000000
|
||||
[0A0h 0160 8] Address Length : 0000000000000000
|
||||
[0A8h 0168 4] Reserved2 : 00000000
|
||||
[0ACh 0172 4] Flags (decoded below) : 00000000
|
||||
Enabled : 0
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0B0h 0176 8] Reserved3 : 0000000000000000
|
||||
|
||||
[0B8h 0184 1] Subtable Type : 01 [Memory Affinity]
|
||||
[0B9h 0185 1] Length : 28
|
||||
|
||||
[0BAh 0186 4] Proximity Domain : 00000000
|
||||
[0BEh 0190 2] Reserved1 : 0000
|
||||
[0C0h 0192 8] Base Address : 0000000000000000
|
||||
[0C8h 0200 8] Address Length : 0000000000000000
|
||||
[0D0h 0208 4] Reserved2 : 00000000
|
||||
[0D4h 0212 4] Flags (decoded below) : 00000000
|
||||
Enabled : 0
|
||||
Hot Pluggable : 0
|
||||
Non-Volatile : 0
|
||||
[0D8h 0216 8] Reserved3 : 0000000000000000
|
||||
|
||||
Raw Table Data: Length 224 (0xE0)
|
||||
|
||||
0000: 53 52 41 54 E0 00 00 00 01 F5 42 4F 43 48 53 20 // SRAT......BOCHS
|
||||
0010: 42 58 50 43 53 52 41 54 01 00 00 00 42 58 50 43 // BXPCSRAT....BXPC
|
||||
0020: 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0030: 00 10 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0040: 01 28 01 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
0050: 00 00 0A 00 00 00 00 00 00 00 00 00 01 00 00 00 // ................
|
||||
0060: 00 00 00 00 00 00 00 00 01 28 01 00 00 00 00 00 // .........(......
|
||||
0070: 00 00 10 00 00 00 00 00 00 00 F0 07 00 00 00 00 // ................
|
||||
0080: 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
0090: 01 28 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // .(..............
|
||||
00A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00B0: 00 00 00 00 00 00 00 00 01 28 00 00 00 00 00 00 // .........(......
|
||||
00C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
||||
00D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 // ................
|
205
tests/data/acpi/pc/SSDT.dsl
Normal file
205
tests/data/acpi/pc/SSDT.dsl
Normal file
|
@ -0,0 +1,205 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembling to symbolic ASL+ operators
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/SSDT.dimmpxm, Mon Sep 28 17:24:38 2020
|
||||
*
|
||||
* Original Table Header:
|
||||
* Signature "SSDT"
|
||||
* Length 0x000002DE (734)
|
||||
* Revision 0x01
|
||||
* Checksum 0x56
|
||||
* OEM ID "BOCHS "
|
||||
* OEM Table ID "NVDIMM"
|
||||
* OEM Revision 0x00000001 (1)
|
||||
* Compiler ID "BXPC"
|
||||
* Compiler Version 0x00000001 (1)
|
||||
*/
|
||||
DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001)
|
||||
{
|
||||
Scope (\_SB)
|
||||
{
|
||||
Device (NVDR)
|
||||
{
|
||||
Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Hardware ID
|
||||
Method (NCAL, 5, Serialized)
|
||||
{
|
||||
Local6 = MEMA /* \MEMA */
|
||||
OperationRegion (NPIO, SystemIO, 0x0A18, 0x04)
|
||||
OperationRegion (NRAM, SystemMemory, Local6, 0x1000)
|
||||
Field (NPIO, DWordAcc, NoLock, Preserve)
|
||||
{
|
||||
NTFI, 32
|
||||
}
|
||||
|
||||
Field (NRAM, DWordAcc, NoLock, Preserve)
|
||||
{
|
||||
HDLE, 32,
|
||||
REVS, 32,
|
||||
FUNC, 32,
|
||||
FARG, 32672
|
||||
}
|
||||
|
||||
Field (NRAM, DWordAcc, NoLock, Preserve)
|
||||
{
|
||||
RLEN, 32,
|
||||
ODAT, 32736
|
||||
}
|
||||
|
||||
If ((Arg4 == Zero))
|
||||
{
|
||||
Local0 = ToUUID ("2f10e7a4-9e91-11e4-89d3-123b93f75cba")
|
||||
}
|
||||
ElseIf ((Arg4 == 0x00010000))
|
||||
{
|
||||
Local0 = ToUUID ("648b9cf2-cda1-4312-8ad9-49c4af32bd62")
|
||||
}
|
||||
Else
|
||||
{
|
||||
Local0 = ToUUID ("4309ac30-0d11-11e4-9191-0800200c9a66")
|
||||
}
|
||||
|
||||
If (((Local6 == Zero) | (Arg0 != Local0)))
|
||||
{
|
||||
If ((Arg2 == Zero))
|
||||
{
|
||||
Return (Buffer (One)
|
||||
{
|
||||
0x00 // .
|
||||
})
|
||||
}
|
||||
|
||||
Return (Buffer (One)
|
||||
{
|
||||
0x01 // .
|
||||
})
|
||||
}
|
||||
|
||||
HDLE = Arg4
|
||||
REVS = Arg1
|
||||
FUNC = Arg2
|
||||
If (((ObjectType (Arg3) == 0x04) & (SizeOf (Arg3) == One)))
|
||||
{
|
||||
Local2 = Arg3 [Zero]
|
||||
Local3 = DerefOf (Local2)
|
||||
FARG = Local3
|
||||
}
|
||||
|
||||
NTFI = Local6
|
||||
Local1 = (RLEN - 0x04)
|
||||
If ((Local1 < 0x08))
|
||||
{
|
||||
Local2 = Zero
|
||||
Name (TBUF, Buffer (One)
|
||||
{
|
||||
0x00 // .
|
||||
})
|
||||
Local7 = Buffer (Zero){}
|
||||
While ((Local2 < Local1))
|
||||
{
|
||||
TBUF [Zero] = DerefOf (ODAT [Local2])
|
||||
Concatenate (Local7, TBUF, Local7)
|
||||
Local2++
|
||||
}
|
||||
|
||||
Return (Local7)
|
||||
}
|
||||
|
||||
Local1 = (Local1 << 0x03)
|
||||
CreateField (ODAT, Zero, Local1, OBUF)
|
||||
Return (OBUF) /* \_SB_.NVDR.NCAL.OBUF */
|
||||
}
|
||||
|
||||
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
|
||||
{
|
||||
Return (NCAL (Arg0, Arg1, Arg2, Arg3, Zero))
|
||||
}
|
||||
|
||||
Name (RSTA, Zero)
|
||||
Method (RFIT, 1, Serialized)
|
||||
{
|
||||
Name (OFST, Zero)
|
||||
OFST = Arg0
|
||||
Local0 = NCAL (ToUUID ("648b9cf2-cda1-4312-8ad9-49c4af32bd62"), One, One, Package (0x01)
|
||||
{
|
||||
OFST
|
||||
}, 0x00010000)
|
||||
CreateDWordField (Local0, Zero, STAU)
|
||||
RSTA = STAU /* \_SB_.NVDR.RFIT.STAU */
|
||||
If ((Zero != STAU))
|
||||
{
|
||||
Return (Buffer (Zero){})
|
||||
}
|
||||
|
||||
Local1 = SizeOf (Local0)
|
||||
Local1 -= 0x04
|
||||
If ((Local1 == Zero))
|
||||
{
|
||||
Return (Buffer (Zero){})
|
||||
}
|
||||
|
||||
CreateField (Local0, 0x20, (Local1 << 0x03), BUFF)
|
||||
Return (BUFF) /* \_SB_.NVDR.RFIT.BUFF */
|
||||
}
|
||||
|
||||
Method (_FIT, 0, Serialized) // _FIT: Firmware Interface Table
|
||||
{
|
||||
Local2 = Buffer (Zero){}
|
||||
Local3 = Zero
|
||||
While (One)
|
||||
{
|
||||
Local0 = RFIT (Local3)
|
||||
Local1 = SizeOf (Local0)
|
||||
If ((RSTA == 0x0100))
|
||||
{
|
||||
Local2 = Buffer (Zero){}
|
||||
Local3 = Zero
|
||||
}
|
||||
Else
|
||||
{
|
||||
If ((Local1 == Zero))
|
||||
{
|
||||
Return (Local2)
|
||||
}
|
||||
|
||||
Local3 += Local1
|
||||
Concatenate (Local2, Local0, Local2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Device (NV00)
|
||||
{
|
||||
Name (_ADR, One) // _ADR: Address
|
||||
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
|
||||
{
|
||||
Return (NCAL (Arg0, Arg1, Arg2, Arg3, One))
|
||||
}
|
||||
}
|
||||
|
||||
Device (NV01)
|
||||
{
|
||||
Name (_ADR, 0x02) // _ADR: Address
|
||||
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
|
||||
{
|
||||
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x02))
|
||||
}
|
||||
}
|
||||
|
||||
Device (NV02)
|
||||
{
|
||||
Name (_ADR, 0x03) // _ADR: Address
|
||||
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
|
||||
{
|
||||
Return (NCAL (Arg0, Arg1, Arg2, Arg3, 0x03))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Name (MEMA, 0x07FFE000)
|
||||
}
|
||||
|
BIN
tests/data/acpi/pc/WAET.acpihmat
Normal file
BIN
tests/data/acpi/pc/WAET.acpihmat
Normal file
Binary file not shown.
31
tests/data/acpi/pc/WAET.acpihmat.dsl
Normal file
31
tests/data/acpi/pc/WAET.acpihmat.dsl
Normal file
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Intel ACPI Component Architecture
|
||||
* AML/ASL+ Disassembler version 20190509 (64-bit version)
|
||||
* Copyright (c) 2000 - 2019 Intel Corporation
|
||||
*
|
||||
* Disassembly of tests/data/acpi/pc/WAET.acpihmat, Tue Aug 4 11:14:15 2020
|
||||
*
|
||||
* ACPI Data Table [WAET]
|
||||
*
|
||||
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue
|
||||
*/
|
||||
|
||||
[000h 0000 4] Signature : "WAET" [Windows ACPI Emulated Devices Table]
|
||||
[004h 0004 4] Table Length : 00000028
|
||||
[008h 0008 1] Revision : 01
|
||||
[009h 0009 1] Checksum : 88
|
||||
[00Ah 0010 6] Oem ID : "BOCHS "
|
||||
[010h 0016 8] Oem Table ID : "BXPCWAET"
|
||||
[018h 0024 4] Oem Revision : 00000001
|
||||
[01Ch 0028 4] Asl Compiler ID : "BXPC"
|
||||
[020h 0032 4] Asl Compiler Revision : 00000001
|
||||
|
||||
[024h 0036 4] Flags (decoded below) : 00000002
|
||||
RTC needs no INT ack : 0
|
||||
PM timer, one read only : 1
|
||||
|
||||
Raw Table Data: Length 40 (0x28)
|
||||
|
||||
0000: 57 41 45 54 28 00 00 00 01 88 42 4F 43 48 53 20 // WAET(.....BOCHS
|
||||
0010: 42 58 50 43 57 41 45 54 01 00 00 00 42 58 50 43 // BXPCWAET....BXPC
|
||||
0020: 01 00 00 00 02 00 00 00 // ........
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue