[SeaBIOS] [PATCH] Change pvscsi to use BAR 1.

Don Koch dkoch at verizon.com
Wed Jan 8 20:39:19 CET 2014


From: Don Koch <dkoch at cloudswitch.com>

Change pvscsi to use BAR 1 (mmio) instead of BAR 0 (ioport).

Signed-off-by: Don Koch <dkoch at verizon.com>
---
I found that when using bar 0, the VM wouldn't boot where
using bar 1 worked. Cced Evgeny for review.

 src/hw/pvscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hw/pvscsi.c b/src/hw/pvscsi.c
index 6911230..1204a4c 100644
--- a/src/hw/pvscsi.c
+++ b/src/hw/pvscsi.c
@@ -326,7 +326,7 @@ init_pvscsi(struct pci_device *pci)
     struct pvscsi_ring_dsc_s *ring_dsc = NULL;
     int i;
     u16 bdf = pci->bdf;
-    u32 iobase = pci_config_readl(pci->bdf, PCI_BASE_ADDRESS_0)
+    u32 iobase = pci_config_readl(pci->bdf, PCI_BASE_ADDRESS_1)
         & PCI_BASE_ADDRESS_MEM_MASK;
 
     pci_config_maskw(bdf, PCI_COMMAND, 0, PCI_COMMAND_MASTER);
-- 
1.8.1.4




More information about the SeaBIOS mailing list