aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-10 16:58:50 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-10 17:12:05 -0400
commitc0951f0c97bc1528262a92b193fed7942cc6c54c (patch)
tree6a05fd856cd002d94fd75599b6ce4045d270be8c /drivers/gpu/drm/i915/i915_drv.h
parente147accbd19f55489dabdcc4dc3551cc3e3f2553 (diff)
drm/i915: Avoid tweaking RPS before it is enabled
As we delay the initial RPS enabling (upon boot and after resume), there is a chance that we may start to render and trigger RPS boosts before we set up the punit. Any changes we make could result in inconsistent hardware state, with a danger of causing undefined behaviour. However, as the boosting is a optional tweak to RPS, we can simply ignore it whilst RPS is not yet enabled. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 9cac93c41e10..36b82cc48b4c 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -862,6 +862,7 @@ struct intel_gen6_power_mgmt {
862 int last_adj; 862 int last_adj;
863 enum { LOW_POWER, BETWEEN, HIGH_POWER } power; 863 enum { LOW_POWER, BETWEEN, HIGH_POWER } power;
864 864
865 bool enabled;
865 struct delayed_work delayed_resume_work; 866 struct delayed_work delayed_resume_work;
866 867
867 /* 868 /*