]> git.ipfire.org Git - people/ms/linux.git/commitdiff
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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 26 Jan 2015 13:39:24 +0000 (14:39 +0100)
commit 4bb62c95a7e781a238b2ab374f34b1bf91e01ddc upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/radeon/cik.c

index 0fc5fd6b3b41982c3f002e938d5c9c8cb0b5ff00..cdc7f408bd1809d0140bc62faf192aa763cd23ae 100644 (file)
@@ -5167,6 +5167,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);
@@ -5198,7 +5199,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);