i915: reprogram power monitoring registers on resume
authorKyle McMartin <kyle@redhat.com>
Wed, 3 Nov 2010 20:27:57 +0000 (16:27 -0400)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Nov 2010 21:44:47 +0000 (21:44 +0000)
commit48fcfc888b48ad49dd83faa107264bbfb0089cad
tree7742a70634d76cbccf3e7a020b8a7e5cfe5a8eaa
parent5588978882b5f4b81169bd7f9bc941e3a12ee8ba
i915: reprogram power monitoring registers on resume

Fixes issue where i915_gfx_val was reporting values several
orders of magnitude higher than physically possible (without
leaving scorch marks on my thighs at least.)

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: stable@kernel.org
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_suspend.c
drivers/gpu/drm/i915/intel_drv.h