xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Consider a VGA to be active if it responds to either IO or memory access
@ 2011-05-26 14:43 Ian Campbell
  2011-05-27  0:59 ` Kevin O'Connor
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2011-05-26 14:43 UTC (permalink / raw)
  To: xen-devel, seabios; +Cc: Ian Campbell

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

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

end of thread, other threads:[~2011-05-27 16:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-26 14:43 [PATCH] Consider a VGA to be active if it responds to either IO or memory access Ian Campbell
2011-05-27  0:59 ` 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

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).