Skip to content

Commit

Permalink
drm/i915: warn if Pineview CxSR can't be enabled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jesse Barnes authored and Eric Anholt committed Dec 7, 2009
1 parent 22fd0fa commit 8536490
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8536490

Please sign in to comment.