Commit 08295790 authored by Alex Deucher's avatar Alex Deucher Committed by Greg Kroah-Hartman

drm/radeon: work around a hw bug in MGCG on CIK

commit 4bb62c95 upstream.

Always need to set bit 0 of RLC_CGTT_MGCG_OVERRIDE
to avoid unreliable doorbell updates in some cases.
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4c65add0
...@@ -5879,6 +5879,7 @@ static void cik_enable_mgcg(struct radeon_device *rdev, bool enable) ...@@ -5879,6 +5879,7 @@ static void cik_enable_mgcg(struct radeon_device *rdev, bool enable)
} }
orig = data = RREG32(RLC_CGTT_MGCG_OVERRIDE); orig = data = RREG32(RLC_CGTT_MGCG_OVERRIDE);
data |= 0x00000001;
data &= 0xfffffffd; data &= 0xfffffffd;
if (orig != data) if (orig != data)
WREG32(RLC_CGTT_MGCG_OVERRIDE, data); WREG32(RLC_CGTT_MGCG_OVERRIDE, data);
...@@ -5910,7 +5911,7 @@ static void cik_enable_mgcg(struct radeon_device *rdev, bool enable) ...@@ -5910,7 +5911,7 @@ static void cik_enable_mgcg(struct radeon_device *rdev, bool enable)
} }
} else { } else {
orig = data = RREG32(RLC_CGTT_MGCG_OVERRIDE); orig = data = RREG32(RLC_CGTT_MGCG_OVERRIDE);
data |= 0x00000002; data |= 0x00000003;
if (orig != data) if (orig != data)
WREG32(RLC_CGTT_MGCG_OVERRIDE, data); WREG32(RLC_CGTT_MGCG_OVERRIDE, data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment