drm/radeon/dce6: fix display powergating
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Feb 2013 16:47:09 +0000 (11:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 14:59:03 +0000 (06:59 -0800)
commit746042cf26dbcf5a8feb4f8938a3531a6169c96e
tree778aa4587a7d8c42d7889521f786bd62c68aa11b
parent5cf5b734496e73c30f43833138078ee7884ec725
drm/radeon/dce6: fix display powergating

commit 0e3d50bfcbd338254795a700dcff429a96cba1a6 upstream.

Only enable it when we disable the display rather than
at DPMS time since enabling it requires a full modeset
to restore the display state.  Fixes blank screens in
certain cases.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/atombios_crtc.c