]> Git Repo - qemu.git/commitdiff
i386/acpi: show PCI Express bus on pxb-pcie expanders
authorEvgeny Yakovlev <[email protected]>
Fri, 19 Jul 2019 08:54:29 +0000 (11:54 +0300)
committerMichael S. Tsirkin <[email protected]>
Thu, 25 Jul 2019 08:17:35 +0000 (04:17 -0400)
Show PCIe host bridge PNP id with PCI host bridge as a compatible id
when expanding a pcie bus.

Cc: [email protected]
Signed-off-by: Evgeny Yakovlev <[email protected]>
Message-Id: <1563526469[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/i386/acpi-build.c

index e7b756b51b71b69c84db3e4cc802a905e8d62f39..f3fdfefcd55672925700c13c4906674b40908001 100644 (file)
@@ -1914,10 +1914,13 @@ build_dsdt(GArray *table_data, BIOSLinker *linker,
             scope = aml_scope("\\_SB");
             dev = aml_device("PC%.02X", bus_num);
             aml_append(dev, aml_name_decl("_UID", aml_int(bus_num)));
-            aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0A03")));
             aml_append(dev, aml_name_decl("_BBN", aml_int(bus_num)));
             if (pci_bus_is_express(bus)) {
+                aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0A08")));
+                aml_append(dev, aml_name_decl("_CID", aml_eisaid("PNP0A03")));
                 aml_append(dev, build_q35_osc_method());
+            } else {
+                aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0A03")));
             }
 
             if (numa_node != NUMA_NODE_UNASSIGNED) {
This page took 0.028827 seconds and 4 git commands to generate.