drm/i915: fix drps disable so unload & re-load works
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 4 Feb 2010 22:17:47 +0000 (14:17 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 22 Feb 2010 16:46:57 +0000 (11:46 -0500)
commit357b13c3e498bb658f511f91a9e4f09c9553be6e
tree18cc3daafc7bf20d92fbc85a942197b43e0ac98f
parent060e645ac0181f499478a7be0ccb8a5600edc71a
drm/i915: fix drps disable so unload & re-load works

At unload time, we need to disable DRPS, but we need to do it correctly
or the GPU will hang and we won't be able to load the module again.  So
set the SFCAVM bit so we can properly restore the DRPS config at unload.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c