From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YENph-0003P0-Un for qemu-devel@nongnu.org; Thu, 22 Jan 2015 14:54:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YENpg-0008Cw-Sf for qemu-devel@nongnu.org; Thu, 22 Jan 2015 14:54:25 -0500 From: Marcel Apfelbaum Date: Thu, 22 Jan 2015 21:52:42 +0200 Message-Id: <1421956363-23502-17-git-send-email-marcel@redhat.com> In-Reply-To: <1421956363-23502-1-git-send-email-marcel@redhat.com> References: <1421956363-23502-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH RFC 16/17] hw/pci-bridge: hack - disable shpc bar (will be removed from the series) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: seabios@seabios.org, kraxel@redhat.com, mst@redhat.com, quintela@redhat.com, agraf@suse.de, alex.williamson@redhat.com, kevin@koconnor.net, qemu-ppc@nongnu.org, hare@suse.de, imammedo@redhat.com, amit.shah@redhat.com, pbonzini@redhat.com, leon.alrae@imgtec.com, aurelien@aurel32.net, rth@twiddle.net Windows disables the pci-bridge if shpc bar has a memory conflict. Until this problem is solved, this hack can be used for tests. Signed-off-by: Marcel Apfelbaum --- hw/pci-bridge/pci_bridge_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_dev.c index 252ea5e..20e43ce 100644 --- a/hw/pci-bridge/pci_bridge_dev.c +++ b/hw/pci-bridge/pci_bridge_dev.c @@ -73,8 +73,10 @@ static int pci_bridge_dev_initfn(PCIDevice *dev) } /* TODO: spec recommends using 64 bit prefetcheable BAR. * Check whether that works well. */ +/* pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY | PCI_BASE_ADDRESS_MEM_TYPE_64, &bridge_dev->bar); +*/ return 0; msi_error: slotid_cap_cleanup(dev); -- 2.1.0