<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Intel G41 doesn't see any screens connected after suspend/resume"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76301#c14">Comment # 14</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - Intel G41 doesn't see any screens connected after suspend/resume"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=76301">bug 76301</a>
              from <span class="vcard"><a class="email" href="mailto:jbarnes@virtuousgeek.org" title="Jesse Barnes <jbarnes@virtuousgeek.org>"> <span class="fn">Jesse Barnes</span></a>
</span></b>
        <pre>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)) {</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>