drm/radeon/dpm: fix display_gap programming on rv7xx
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Jul 2013 21:20:13 +0000 (17:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Jul 2013 21:39:51 +0000 (17:39 -0400)
commit222dc9a072e27b5069a7c03738e360eafdc2fdf5
tree3a9b51df251ea0150dd66f8adf2168ab385d3c04
parent9b5de59629d2e58eab41e2f0e5cc60b3c395f1c3
drm/radeon/dpm: fix display_gap programming on rv7xx

Check the driver state rather than the register as the
crtc registers may not be enabled yet.

Should fix:
https://bugzilla.kernel.org/show_bug.cgi?id=60510
https://bugs.freedesktop.org/show_bug.cgi?id=66651

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/rv770_dpm.c