<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [Intel G45] Screen turns blank when terminating a low res X server on a different low res KMS mode."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=61457#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [Intel G45] Screen turns blank when terminating a low res X server on a different low res KMS mode."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=61457">bug 61457</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>I would try:

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 61fee7f..f52379a 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -1357,6 +1357,7 @@ static void g4x_update_wm(struct drm_device *dev)
     int plane_sr, cursor_sr;
     unsigned int enabled = 0;

+#if 0
     if (g4x_compute_wm0(dev, 0,
                 &g4x_wm_info, latency_ns,
                 &g4x_cursor_wm_info, latency_ns,
@@ -1368,6 +1369,13 @@ static void g4x_update_wm(struct drm_device *dev)
                 &g4x_cursor_wm_info, latency_ns,
                 &planeb_wm, &cursorb_wm))
         enabled |= 2;
+#else
+    planea_wm = g4x_wm_info.max_size;
+    cursora_wm = g4x_cursor_wm_info.max_size;
+
+    planeb_wm = g4x_wm_info.max_size;
+    cursorb_wm = g4x_cursor_wm_info.max_size;
+#endif

     if (single_plane_enabled(enabled) &&
         g4x_compute_srwm(dev, ffs(enabled) - 1,


in order to set the WM to a constant value and disable the low-power switching.</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 the assignee for the bug.</li>
      </ul>
    </body>
</html>