]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 23 Apr 2015 18:58:22 +0000 (14:58 -0400)
commit498ddc6f734ac5c5ff6dba058f8544cd3607400e
treedbbb2c1e082c940b09ba17575b5ea2aa841ed159
parenta8c89064e3140eeee44f0a743acc4719657ceed5
drm/i915/vlv: save/restore the power context base reg

[ Upstream commit 9c25210fd30991e68f93e2ec0857de2d967b5766 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h