[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 44/77] pci-bridge: Set a supported devfn_min for bridg
From: |
Benjamin Herrenschmidt |
Subject: |
[Qemu-ppc] [PATCH 44/77] pci-bridge: Set a supported devfn_min for bridge |
Date: |
Wed, 11 Nov 2015 11:27:57 +1100 |
Otherwise QEMU might add a device at slot 0 which isn't supported
by the SHPC controller.
Signed-off-by: Benjamin Herrenschmidt <address@hidden>
---
hw/pci-bridge/pci_bridge_dev.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c
index 26aded9..c0355c2 100644
--- a/hw/pci-bridge/pci_bridge_dev.c
+++ b/hw/pci-bridge/pci_bridge_dev.c
@@ -1,3 +1,4 @@
+
/*
* Standard PCI Bridge Device
*
@@ -57,6 +58,8 @@ static int pci_bridge_dev_initfn(PCIDevice *dev)
goto bridge_error;
}
if (bridge_dev->flags & (1 << PCI_BRIDGE_DEV_F_SHPC_REQ)) {
+ /* SHCP gets upset if we try to use slot 0 */
+ br->sec_bus.devfn_min = PCI_FUNC_MAX;
dev->config[PCI_INTERRUPT_PIN] = 0x1;
memory_region_init(&bridge_dev->bar, OBJECT(dev), "shpc-bar",
shpc_bar_size(dev));
--
2.5.0
- [Qemu-ppc] [PATCH 27/77] ppc/pnv: Add XSCOM infrastructure, (continued)
- [Qemu-ppc] [PATCH 27/77] ppc/pnv: Add XSCOM infrastructure, Benjamin Herrenschmidt, 2015/11/10
- [Qemu-ppc] [PATCH 40/77] ppc/pnv: Wire up XICS native with PowerNV platform, Benjamin Herrenschmidt, 2015/11/10
- [Qemu-ppc] [PATCH 45/77] qdev: Add a hook for a bus to device if it can add devices, Benjamin Herrenschmidt, 2015/11/10
- [Qemu-ppc] [PATCH 38/77] ppc/xics: Add "native" XICS subclass, Benjamin Herrenschmidt, 2015/11/10
- [Qemu-ppc] [PATCH 33/77] ppc/xics: Make the ICSState a list, Benjamin Herrenschmidt, 2015/11/10
- [Qemu-ppc] [PATCH 44/77] pci-bridge: Set a supported devfn_min for bridge,
Benjamin Herrenschmidt <=
[Qemu-ppc] [PATCH 41/77] ppc/pnv: Add LPC controller and hook it up with a UART and RTC, Benjamin Herrenschmidt, 2015/11/10
[Qemu-ppc] [PATCH 47/77] pci: Don't call pci_irq_handler() for a negative intx, Benjamin Herrenschmidt, 2015/11/10
[Qemu-ppc] [PATCH 46/77] pci: Use the new pci_can_add_device() to enforce devfn_min/max, Benjamin Herrenschmidt, 2015/11/10