[Bug 76301] Intel G41 doesn't see any screens connected after suspend/resume

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 5 10:13:53 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=76301

--- Comment #14 from Jesse Barnes <jbarnes at virtuousgeek.org> ---
Here's a hack to try:

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 2725243..f33102b 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -925,6 +925,7 @@ struct i915_suspend_saved_registers {
     u32 savePIPEB_LINK_N1;
     u32 saveMCHBAR_RENDER_STANDBY;
     u32 savePCH_PORT_HOTPLUG;
+    u16 saveGCDGMBUS;
 };

 struct vlv_s0ix_state {
diff --git a/drivers/gpu/drm/i915/i915_suspend.c
b/drivers/gpu/drm/i915/i915_suspend.c
index dfe6617..d877aca 100644
--- a/drivers/gpu/drm/i915/i915_suspend.c
+++ b/drivers/gpu/drm/i915/i915_suspend.c
@@ -303,6 +303,10 @@ int i915_save_state(struct drm_device *dev)
         }
     }

+    if (IS_GEN4(dev))
+        pci_read_config_word(dev->pdev, 0xcc,
+                     &dev_priv->regfile.saveGCDGMBUS);
+
     /* Cache mode state */
     if (INTEL_INFO(dev)->gen < 7)
         dev_priv->regfile.saveCACHE_MODE_0 = I915_READ(CACHE_MODE_0);
@@ -331,6 +335,10 @@ int i915_restore_state(struct drm_device *dev)
     mutex_lock(&dev->struct_mutex);

     i915_gem_restore_fences(dev);
+
+    if (IS_GEN4(dev))
+        pci_write_config_word(dev->pdev, 0xcc,
+                      dev_priv->regfile.saveGCDGMBUS);
     i915_restore_display(dev);

     if (!drm_core_check_feature(dev, DRIVER_MODESET)) {

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20141205/df524dd4/attachment.html>


More information about the intel-gfx-bugs mailing list