drm/radeon: work around a hw bug in MGCG on CIK
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Nov 2014 20:08:17 +0000 (15:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Nov 2014 16:11:43 +0000 (11:11 -0500)
Always need to set bit 0 of RLC_CGTT_MGCG_OVERRIDE
to avoid unreliable doorbell updates in some cases.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/cik.c

index bce73b6203ac56cfd7f5674d33e6d3f59160ed4f..cef4cb7e54383b167fa12c0f0a5e94a1e7bb1d5b 100644 (file)
@@ -6344,6 +6344,7 @@ static void cik_enable_mgcg(struct radeon_device *rdev, bool enable)
                }
 
                orig = data = RREG32(RLC_CGTT_MGCG_OVERRIDE);
+               data |= 0x00000001;
                data &= 0xfffffffd;
                if (orig != data)
                        WREG32(RLC_CGTT_MGCG_OVERRIDE, data);
@@ -6377,7 +6378,7 @@ static void cik_enable_mgcg(struct radeon_device *rdev, bool enable)
                }
        } else {
                orig = data = RREG32(RLC_CGTT_MGCG_OVERRIDE);
-               data |= 0x00000002;
+               data |= 0x00000003;
                if (orig != data)
                        WREG32(RLC_CGTT_MGCG_OVERRIDE, data);