ich9: add TCO interface emulation
commit920557971b60e53c2f3f22e5d6c620ab1ed411fd
authorPaulo Alcantara <pcacjr@gmail.com>
Sun, 28 Jun 2015 17:58:56 +0000 (28 14:58 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Jul 2015 10:12:22 +0000 (7 13:12 +0300)
tree5630d4b1c74b28ba22273d5980ecedcbe367fa38
parent71ba2f0af398f616e154137d9fdda25c2da01324
ich9: add TCO interface emulation

This interface provides some registers within a 32-byte range and can be
acessed through PCI-to-LPC bridge interface (PMBASE + 0x60).

It's commonly used as a watchdog timer to detect system lockups through
SMIs that are generated -- if TCO_EN bit is set -- on every timeout. If
NO_REBOOT bit is not set in GCS (General Control and Status register),
the system will be resetted upon second timeout if TCO_RLD register
wasn't previously written to prevent timeout.

This patch adds support to TCO watchdog logic and few other features
like mapping NMIs to SMIs (NMI2SMI_EN bit), system intruder detection,
etc. are not implemented yet.

Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/Makefile.objs
hw/acpi/ich9.c
hw/acpi/tco.c [new file with mode: 0644]
hw/i386/pc_q35.c
hw/isa/lpc_ich9.c
include/hw/acpi/ich9.h
include/hw/acpi/tco.h [new file with mode: 0644]
include/hw/boards.h
include/hw/i386/ich9.h
include/hw/i386/pc.h