All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pci: allow 32-bit PCI IO accesses to pass through the PCI bridge
@ 2017-09-22 12:18 Mark Cave-Ayland
  2017-09-22 21:21 ` Richard Henderson
  2017-09-22 22:18 ` Laszlo Ersek
  0 siblings, 2 replies; 14+ messages in thread
From: Mark Cave-Ayland @ 2017-09-22 12:18 UTC (permalink / raw)
  To: qemu-devel, mst, marcel

Whilst the underlying PCI bridge implementation supports 32-bit PCI IO
accesses, unfortunately they are truncated at the legacy 64K limit.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
 hw/pci/pci_bridge.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c
index 17feae5..a47d257 100644
--- a/hw/pci/pci_bridge.c
+++ b/hw/pci/pci_bridge.c
@@ -379,7 +379,8 @@ void pci_bridge_initfn(PCIDevice *dev, const char *typename)
     sec_bus->address_space_mem = &br->address_space_mem;
     memory_region_init(&br->address_space_mem, OBJECT(br), "pci_bridge_pci", UINT64_MAX);
     sec_bus->address_space_io = &br->address_space_io;
-    memory_region_init(&br->address_space_io, OBJECT(br), "pci_bridge_io", 65536);
+    memory_region_init(&br->address_space_io, OBJECT(br), "pci_bridge_io",
+                       UINT32_MAX);
     br->windows = pci_bridge_region_init(br);
     QLIST_INIT(&sec_bus->child);
     QLIST_INSERT_HEAD(&parent->child, sec_bus, sibling);
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2017-10-19  9:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-22 12:18 [Qemu-devel] [PATCH] pci: allow 32-bit PCI IO accesses to pass through the PCI bridge Mark Cave-Ayland
2017-09-22 21:21 ` Richard Henderson
2017-09-22 22:18 ` Laszlo Ersek
2017-09-23  8:23   ` Mark Cave-Ayland
2017-09-24 15:43     ` Marcel Apfelbaum
2017-09-24 16:56       ` Mark Cave-Ayland
2017-09-25  8:11       ` Dr. David Alan Gilbert
2017-09-28  7:31         ` Mark Cave-Ayland
2017-09-28  7:56           ` Laszlo Ersek
2017-10-01 21:44             ` Mark Cave-Ayland
2017-10-11  6:35               ` Mark Cave-Ayland
2017-10-19  9:38                 ` Marcel Apfelbaum
2017-09-28  9:19           ` Marcel Apfelbaum
2017-10-01 21:49             ` Mark Cave-Ayland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.