qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] esp: enable busmaster
@ 2012-11-20 17:33 Paolo Bonzini
  2012-11-20 17:42 ` [Qemu-devel] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster) Paolo Bonzini
  2012-11-21  0:08 ` [Qemu-devel] [PATCH] esp: enable busmaster Kevin O'Connor
  0 siblings, 2 replies; 11+ messages in thread
From: Paolo Bonzini @ 2012-11-20 17:33 UTC (permalink / raw)
  To: seabios; +Cc: kraxel, qemu-devel

The HBA does DMA, thus we must enable the busmaster bit,
otherwise dma access will fail with recent qemu versions.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 src/esp-scsi.c | 2 ++
 1 file modificato, 2 inserzioni(+)

diff --git a/src/esp-scsi.c b/src/esp-scsi.c
index b795012..c43e55b 100644
--- a/src/esp-scsi.c
+++ b/src/esp-scsi.c
@@ -202,6 +202,8 @@ init_esp_scsi(struct pci_device *pci)
             pci_bdf_to_bus(bdf), pci_bdf_to_dev(bdf),
             pci_bdf_to_fn(bdf), iobase);
 
+    pci_config_maskw(bdf, PCI_COMMAND, 0, PCI_COMMAND_MASTER);
+
     // reset
     outb(ESP_CMD_RESET, iobase + ESP_CMD);
 
-- 
1.7.12.1

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

end of thread, other threads:[~2013-01-09  9:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 17:33 [Qemu-devel] [PATCH] esp: enable busmaster Paolo Bonzini
2012-11-20 17:42 ` [Qemu-devel] SeaBIOS release for QEMU 1.3 (was Re: [PATCH] esp: enable busmaster) Paolo Bonzini
2012-11-21  1:43   ` Kevin O'Connor
2012-11-21  6:43     ` Gerd Hoffmann
2013-01-07 14:29     ` [Qemu-devel] [SeaBIOS] " Gerd Hoffmann
2013-01-07 23:34       ` Kevin O'Connor
2013-01-07 23:51         ` Brad Smith
2013-01-07 23:56           ` Kevin O'Connor
2013-01-08  0:07             ` Brad Smith
2013-01-09  9:15           ` Paolo Bonzini
2012-11-21  0:08 ` [Qemu-devel] [PATCH] esp: enable busmaster Kevin O'Connor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).