drm/radeon: add missing crtc unlock when setting up the MC
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Nov 2014 22:14:32 +0000 (17:14 -0500)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:05:18 +0000 (17:05 +0800)
commit f0d7bfb9407fccb6499ec01c33afe43512a439a2 upstream.

Need to unlock the crtc after updating the blanking state.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/gpu/drm/radeon/evergreen.c

index df62c39..01434ef 100644 (file)
@@ -1176,6 +1176,7 @@ void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *sav
                                        WREG32(EVERGREEN_CRTC_UPDATE_LOCK + crtc_offsets[i], 1);
                                        tmp |= EVERGREEN_CRTC_BLANK_DATA_EN;
                                        WREG32(EVERGREEN_CRTC_BLANK_CONTROL + crtc_offsets[i], tmp);
+                                       WREG32(EVERGREEN_CRTC_UPDATE_LOCK + crtc_offsets[i], 0);
                                }
                        } else {
                                tmp = RREG32(EVERGREEN_CRTC_CONTROL + crtc_offsets[i]);