[Bug 61457] [Intel G45] Screen turns blank when terminating a low res X server on a different low res KMS mode.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Feb 28 13:35:03 PST 2013


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

--- Comment #6 from Chris Wilson <chris at chris-wilson.co.uk> ---
Hmm, maybe it is a stale SR value, so perhaps changing the enabling sequence:

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 61fee7f..f32aa00 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -1375,7 +1375,6 @@ static void g4x_update_wm(struct drm_device *dev)
                             &g4x_wm_info,
                             &g4x_cursor_wm_info,
                             &plane_sr, &cursor_sr)) {
-               I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN);
        } else {
                I915_WRITE(FW_BLC_SELF,
                           I915_READ(FW_BLC_SELF) & ~FW_BLC_SELF_EN);
@@ -1399,6 +1398,9 @@ static void g4x_update_wm(struct drm_device *dev)
        I915_WRITE(DSPFW3,
                   (I915_READ(DSPFW3) & ~(DSPFW_HPLL_SR_EN |
DSPFW_CURSOR_SR_MAS
                   (cursor_sr << DSPFW_CURSOR_SR_SHIFT));
+
+       if (plane_sr && cursor_sr)
+               I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN);
 }

 static void i965_update_wm(struct drm_device *dev)

-- 
You are receiving this mail because:
You are the QA Contact 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/20130228/787d4a6f/attachment.html>


More information about the intel-gfx-bugs mailing list