]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/vlv: save/restore the power context base reg
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 1 Apr 2015 21:22:57 +0000 (14:22 -0700)
committerJani Nikula <jani.nikula@intel.com>
Tue, 7 Apr 2015 12:36:30 +0000 (15:36 +0300)
commitdc4dc67275cc63b1643423f2f6017b5dd041e1cd
tree6abdb46062486a9009fc2226abb0f778011dc22e
parent1163045266bee46e48b27f1a017d8df658115920
drm/i915/vlv: save/restore the power context base reg

Some BIOSes (e.g. the one on the Minnowboard) don't save/restore this
reg.  If it's unlocked, we can just restore the previous value, and if
it's locked (in case the BIOS re-programmed it for us) the write will be
ignored and we'll still have "did it move" sanity check in the PM code to
warn us if something is still amiss.

References: https://bugs.freedesktop.org/show_bug.cgi?id=89611
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-by: Darren Hart <dvhart@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h