diff options
| author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-12-03 12:52:43 -0500 |
|---|---|---|
| committer | Eric Anholt <eric@anholt.net> | 2009-12-07 15:11:52 -0500 |
| commit | 85364905f9ae12d19cb34099257d493e5d9a0c4e (patch) | |
| tree | 21355931ce3f3b2ddb7c07e0d4207179d5251989 | |
| parent | 22fd0fab3b512b5fcb4fd0b0668deeaa701511f9 (diff) | |
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.
| -rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 22dcd0851637..6b9dd672dd59 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) | |||
| 4740 | (unsigned long)dev); | 4740 | (unsigned long)dev); |
| 4741 | 4741 | ||
| 4742 | intel_setup_overlay(dev); | 4742 | intel_setup_overlay(dev); |
| 4743 | |||
| 4744 | if (IS_IGD(dev) && !intel_get_cxsr_latency(IS_IGDG(dev), | ||
| 4745 | dev_priv->fsb_freq, | ||
| 4746 | dev_priv->mem_freq)) | ||
| 4747 | DRM_INFO("failed to find known CxSR latency " | ||
| 4748 | "(found fsb freq %d, mem freq %d), disabling CxSR\n", | ||
| 4749 | dev_priv->fsb_freq, dev_priv->mem_freq); | ||
| 4743 | } | 4750 | } |
| 4744 | 4751 | ||
| 4745 | void intel_modeset_cleanup(struct drm_device *dev) | 4752 | void intel_modeset_cleanup(struct drm_device *dev) |
