mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
arm/acpi: fix duplicated _UID of PCI interrupt link devices
Using _UID of 0 for all PCI interrupt link devices absolutely violates the spec. Simply increase one by one. Signed-off-by: Heyi Guo <guoheyi@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 20200204014325.16279-6-guoheyi@huawei.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
c77b253159
commit
f0ca15ad89
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ static void acpi_dsdt_add_pci(Aml *scope, const MemMapEntry *memmap,
|
||||||
uint32_t irqs = irq + i;
|
uint32_t irqs = irq + i;
|
||||||
Aml *dev_gsi = aml_device("GSI%d", i);
|
Aml *dev_gsi = aml_device("GSI%d", i);
|
||||||
aml_append(dev_gsi, aml_name_decl("_HID", aml_string("PNP0C0F")));
|
aml_append(dev_gsi, aml_name_decl("_HID", aml_string("PNP0C0F")));
|
||||||
aml_append(dev_gsi, aml_name_decl("_UID", aml_int(0)));
|
aml_append(dev_gsi, aml_name_decl("_UID", aml_int(i)));
|
||||||
crs = aml_resource_template();
|
crs = aml_resource_template();
|
||||||
aml_append(crs,
|
aml_append(crs,
|
||||||
aml_interrupt(AML_CONSUMER, AML_LEVEL, AML_ACTIVE_HIGH,
|
aml_interrupt(AML_CONSUMER, AML_LEVEL, AML_ACTIVE_HIGH,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue