summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2011-05-30 22:33:29 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2011-05-30 22:33:29 +0000
commit78872ddf76a2bcd006c989787de8f31d609c66fb (patch)
treeb7fcd6f1d8b01ab4e817c169ea0d0e75b3b50dd1 /sys/dev/pci/drm/i915_drv.c
parent4ed4f8dde5fa32c869d6204b0110b4b40f3e5a2e (diff)
Force full resets always for now.
While it would be best if we never needed to reset the gpu people hate losing their X sessions. Sometimes on gm45 it seems that the render engine reset doesn't work properly, so force a full chip reset in those cases not just the cases that require it.
Diffstat (limited to 'sys/dev/pci/drm/i915_drv.c')
-rw-r--r--sys/dev/pci/drm/i915_drv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index aa285899913..cdbc99a0b91 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -5910,6 +5910,12 @@ inteldrm_965_reset(struct inteldrm_softc *dev_priv, u_int8_t flags)
pcireg_t reg;
int i = 0;
+ /*
+ * There seems to be soemthing wrong with !full reset modes, so force
+ * the whole shebang for now.
+ */
+ flags = GDRST_FULL;
+
if (flags == GDRST_FULL)
inteldrm_save_display(dev_priv);