From: Ian Campbell <ian.campbell@citrix.com>
To: xen-devel@lists.xensource.com, seabios@seabios.org
Cc: Ian Campbell <ian.campbell@citrix.com>
Subject: [PATCH] Consider a VGA to be active if it responds to either IO or memory access
Date: Thu, 26 May 2011 15:43:28 +0100 [thread overview]
Message-ID: <1306421008-24260-1-git-send-email-ian.campbell@citrix.com> (raw)
Under Xen the VGA card ends up configured for memory access only.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
src/pci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/pci.c b/src/pci.c
index 944a393..471733c 100644
--- a/src/pci.c
+++ b/src/pci.c
@@ -130,7 +130,7 @@ pci_find_vga(void)
}
if (cls == PCI_CLASS_DISPLAY_VGA) {
u16 cmd = pci_config_readw(bdf, PCI_COMMAND);
- if (cmd & PCI_COMMAND_IO && cmd & PCI_COMMAND_MEMORY)
+ if (cmd & PCI_COMMAND_IO || cmd & PCI_COMMAND_MEMORY)
// Found active vga card
return bdf;
}
--
1.7.2.5
next reply other threads:[~2011-05-26 14:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 14:43 Ian Campbell [this message]
2011-05-27 0:59 ` [PATCH] Consider a VGA to be active if it responds to either IO or memory access Kevin O'Connor
2011-05-27 8:44 ` Ian Campbell
2011-05-27 15:35 ` Marc Jones
2011-05-27 16:06 ` Ian Campbell
2011-05-27 16:02 ` Scott Duplichan
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=1306421008-24260-1-git-send-email-ian.campbell@citrix.com \
--to=ian.campbell@citrix.com \
--cc=seabios@seabios.org \
--cc=xen-devel@lists.xensource.com \
/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).