qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: seabios@seabios.org
Cc: kraxel@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] esp: enable busmaster
Date: Tue, 20 Nov 2012 18:33:41 +0100	[thread overview]
Message-ID: <1353432821-32517-1-git-send-email-pbonzini@redhat.com> (raw)

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

             reply	other threads:[~2012-11-20 17:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-20 17:33 Paolo Bonzini [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1353432821-32517-1-git-send-email-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).