From: Gerd Hoffmann Date: Tue, 20 Nov 2012 11:02:52 +0000 (+0100) Subject: lsi: enable busmaster X-Git-Tag: rel-1.7.2~47 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7d052575258ad2fc487ca3f9a6b62eff1b767900;p=seabios.git lsi: enable busmaster The HBA does DMA, thus we must enable the busmaster bit, otherwise dma access will fail with recent qemu versions. Signed-off-by: Gerd Hoffmann --- diff --git a/src/lsi-scsi.c b/src/lsi-scsi.c index b70b3a5..f8d715b 100644 --- a/src/lsi-scsi.c +++ b/src/lsi-scsi.c @@ -177,6 +177,8 @@ init_lsi_scsi(struct pci_device *pci) u32 iobase = pci_config_readl(pci->bdf, PCI_BASE_ADDRESS_0) & PCI_BASE_ADDRESS_IO_MASK; + pci_config_maskw(bdf, PCI_COMMAND, 0, PCI_COMMAND_MASTER); + dprintf(1, "found lsi53c895a at %02x:%02x.%x, io @ %x\n", pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf), pci_bdf_to_fn(bdf), iobase);