]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid tweaking RPS before it is enabled
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 10 Oct 2013 20:58:50 +0000 (21:58 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 21:12:05 +0000 (23:12 +0200)
commitfde837e792675ee75c432c1b97d41deb1ae6a785
tree6a05fd856cd002d94fd75599b6ce4045d270be8c
parentdc7e8a251b4a769491b31d66a5ef6fcd68f76532
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>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c