OSDN Git Service

drm/i915/bxt: Explicitly clear the Turbo control register
authorAkash Goel <akash.goel@intel.com>
Fri, 22 Apr 2016 18:35:45 +0000 (00:05 +0530)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 24 Apr 2016 10:35:18 +0000 (11:35 +0100)
commit2030d684f7b36d739e850482d3b40c919c8919f1
tree42497772b1d79a560e1a0999d446e8615038a272
parentd6cda9c7f481b90cc644a764aa378a85cddf91ff
drm/i915/bxt: Explicitly clear the Turbo control register

As a part of WaGsvDisableTurbo, Driver makes an early exit from the
Gen9 Turbo enabling function, so doesn't program the Turbo Control register.
But BIOS could leave the Hw Turbo as enabled, so need to explicitly clear
out the Control register just to avoid inconsitency with debugfs
interface, which will show Turbo as enabled only and that is not expected
after adding the WaGsvDisableTurbo. Apart from this there is no problem
even if the Turbo is left enabled in the Control register, as the Up/Down
interrupts would remain masked.

v2: Add explicit clearing of Turbo Control register to *_disable_rps()
    also for the similar consistency (Chris)

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Akash Goel <akash.goel@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1461350146-23454-2-git-send-email-akash.goel@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_pm.c