summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2013-07-19 00:01:05 +0200
committerJonathan Gray <jsg@jsg.id.au>2013-08-12 10:46:22 +1000
commit4075c3969f53c79f6c8220154625d047078ccb45 (patch)
tree9e6c4eb5cbba90c0dc515b911b1eef6321215ae2
parent5623c28771021185b42be273ca3fbb59b062041b (diff)
disable decoding of VGA addresses and opt out of arbitration
-rw-r--r--sys/dev/pci/drm/radeon/radeon_kms.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c
index 8c7146c6d2d..7ed2207a918 100644
--- a/sys/dev/pci/drm/radeon/radeon_kms.c
+++ b/sys/dev/pci/drm/radeon/radeon_kms.c
@@ -1700,6 +1700,13 @@ radeondrm_attachhook(void *xsc)
aa.console = 1;
}
+ /*
+ * Now that we've taken over the console, disable decoding of
+ * VGA legacy addresses, and opt out of arbitration.
+ */
+ radeon_vga_set_state(rdev, false);
+ pci_disable_legacy_vga(&rdev->dev);
+
printf("%s: %dx%d\n", rdev->dev.dv_xname, ri->ri_width, ri->ri_height);
config_found_sm(&rdev->dev, &aa, wsemuldisplaydevprint,