]> xenbits.xensource.com Git - seabios.git/commitdiff
lsi: enable busmaster
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 20 Nov 2012 11:02:52 +0000 (12:02 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 20 Nov 2012 13:47:56 +0000 (08:47 -0500)
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 <kraxel@redhat.com>
src/lsi-scsi.c

index b70b3a5a676bf360cb9f644636a4fe2de158d6c8..f8d715b83be9a9e3d3dc442d8b56cf44972c4812 100644 (file)
@@ -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);