From eb1701cf47523fcecd12e4df93f62c6612106c17 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Mon, 12 Apr 2010 15:41:34 +0800 Subject: [PATCH] drm/i915: Disable memory self-refresh on desktop platform Signed-off-by: Zhao Yakui --- drivers/gpu/drm/i915/intel_display.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index b27202d..77e7dec 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -4719,9 +4719,12 @@ static void intel_init_display(struct drm_device *dev) dev_priv->display.update_wm = NULL; else if (IS_G4X(dev)) dev_priv->display.update_wm = g4x_update_wm; - else if (IS_I965G(dev)) - dev_priv->display.update_wm = i965_update_wm; - else if (IS_I9XX(dev) || IS_MOBILE(dev)) { + else if (IS_I965G(dev)) { + if (IS_MOBILE(dev)) + dev_priv->display.update_wm = i965_update_wm; + else + dev_priv->display.update_wm = NULL; + } else if (IS_I9XX(dev) || IS_MOBILE(dev)) { dev_priv->display.update_wm = i9xx_update_wm; dev_priv->display.get_fifo_size = i9xx_get_fifo_size; } else { -- 1.5.4.5