arm/virt/acpi: remove _ADR from devices identified by _HID
commit93e41700012525ca198d10c586e024b925779e6d
authorHeyi Guo <guoheyi@huawei.com>
Tue, 4 Feb 2020 01:43:21 +0000 (4 09:43 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Feb 2020 14:14:53 +0000 (13 14:14 +0000)
treebb218faa3600083d8795366b01160818526fda3c
parentcf48a9052e82b8fff57c2f2e2d53dee6496ee133
arm/virt/acpi: remove _ADR from devices identified by _HID

According to ACPI spec, _ADR should be used for device on a bus that
has a standard enumeration algorithm, but not for device which is on
system bus and must be enumerated by OSPM. And it is not recommended
to contain both _HID and _ADR in a single device.

See ACPI 6.3, section 6.1, top of page 343:

A device object must contain either an _HID object or an _ADR object,
but should not contain both.

(https://uefi.org/sites/default/files/resources/ACPI_6_3_May16.pdf)

Signed-off-by: Heyi Guo <guoheyi@huawei.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20200204014325.16279-4-guoheyi@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt-acpi-build.c