From: Jesse Barnes Date: Thu, 3 Dec 2009 17:52:43 +0000 (-0800) Subject: drm/i915: warn if Pineview CxSR can't be enabled X-Git-Tag: v2.6.33-rc2~19^2~29^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85364905f9ae12d19cb34099257d493e5d9a0c4e;p=platform%2Fkernel%2Flinux-stable.git drm/i915: warn if Pineview CxSR can't be enabled If we don't detect a supported memory configuration, we can't enable CxSR. Warn the user in this case so they can file a bug. --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 22dcd08..6b9dd67 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -4740,6 +4740,13 @@ void intel_modeset_init(struct drm_device *dev) (unsigned long)dev); intel_setup_overlay(dev); + + if (IS_IGD(dev) && !intel_get_cxsr_latency(IS_IGDG(dev), + dev_priv->fsb_freq, + dev_priv->mem_freq)) + DRM_INFO("failed to find known CxSR latency " + "(found fsb freq %d, mem freq %d), disabling CxSR\n", + dev_priv->fsb_freq, dev_priv->mem_freq); } void intel_modeset_cleanup(struct drm_device *dev)