pc: acpi: tpm: add missing MMIO resource to PCI0._CRS
commit2b1c2e8e5f1990f0a201a8cbf9d366fca60f4aa8
authorIgor Mammedov <imammedo@redhat.com>
Fri, 8 Apr 2016 11:23:13 +0000 (8 13:23 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Apr 2016 16:52:34 +0000 (13 19:52 +0300)
tree03e0df51e45ec195adfeeb738cef4f8482aeceb9
parentc954f09ee5465adb03a95320e9156e2117e09603
pc: acpi: tpm: add missing MMIO resource to PCI0._CRS

Windows will fail initialize TMP driver with the reason:
  'device cannot find enough free resources'
That happens because parent BUS doesn't describe
MMIO resources used by TPM child device.
Fix it by describing it in top-most parent bus scope PCI0.

It was 'regressed' by commit
  5cb18b3d TPM2 ACPI table support
with following fixup
  9e472263 acpi: add missing ssdt
which did the right thing by moving TPM to BUS
it belongs to but lacked a proper resource declaration.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c