diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-11-20 12:02:52 +0100 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-11-20 08:47:56 -0500 |
commit | 7d052575258ad2fc487ca3f9a6b62eff1b767900 (patch) | |
tree | 7316b4d427f43bf1ec4133e440fa2809a94090f5 | |
parent | 2df70bf7462fbb39ba37b17d385bb9737f78c3f0 (diff) | |
download | seabios-hppa-7d052575258ad2fc487ca3f9a6b62eff1b767900.zip seabios-hppa-7d052575258ad2fc487ca3f9a6b62eff1b767900.tar.gz seabios-hppa-7d052575258ad2fc487ca3f9a6b62eff1b767900.tar.bz2 |
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 <kraxel@redhat.com>
-rw-r--r-- | src/lsi-scsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |