Skip to content

Commit

Permalink
drm/i915: Power Context register is only available for gen4 mobiles
Browse files Browse the repository at this point in the history
The ability to save the hardware context upon powering down the render
clock through PWRCTXA is only available on a couple of gen4 chipsets.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Dec 5, 2010
1 parent 88f23b8 commit 3c8cdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -5973,7 +5973,7 @@ void intel_init_clock_gating(struct drm_device *dev)
"Disable RC6\n");
}

if (I915_HAS_RC6(dev) && drm_core_check_feature(dev, DRIVER_MODESET)) {
if (IS_GEN4(dev) && IS_MOBILE(dev)) {
if (dev_priv->pwrctx == NULL)
dev_priv->pwrctx = intel_alloc_context_page(dev);
if (dev_priv->pwrctx) {
Expand Down

0 comments on commit 3c8cdf9

Please sign in to comment.