diff options
author | Tom St Denis <tom.stdenis@amd.com> | 2017-04-05 09:04:50 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-06 13:27:25 -0400 |
commit | 342cda25220c708b19588dff4ee87c924df44b5b (patch) | |
tree | 93a87dcf784b025a39fddcf9c786e1aecdbd6897 | |
parent | ea64468e36c0ca79b7fe611dbf7fe6bde990eeea (diff) |
drm/amd/amdgpu: cleanup gfx_v9_0_rlc_start()
Use new WREG32_FIELD15 macro
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index e1a7a6f96e1d..ef7b6d20d546 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -1410,10 +1410,8 @@ static void gfx_v9_0_rlc_start(struct amdgpu_device *adev) | |||
1410 | #ifdef AMDGPU_RLC_DEBUG_RETRY | 1410 | #ifdef AMDGPU_RLC_DEBUG_RETRY |
1411 | u32 rlc_ucode_ver; | 1411 | u32 rlc_ucode_ver; |
1412 | #endif | 1412 | #endif |
1413 | u32 tmp = RREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_CNTL)); | ||
1414 | 1413 | ||
1415 | tmp = REG_SET_FIELD(tmp, RLC_CNTL, RLC_ENABLE_F32, 1); | 1414 | WREG32_FIELD15(GC, 0, RLC_CNTL, RLC_ENABLE_F32, 1); |
1416 | WREG32(SOC15_REG_OFFSET(GC, 0, mmRLC_CNTL), tmp); | ||
1417 | 1415 | ||
1418 | /* carrizo do enable cp interrupt after cp inited */ | 1416 | /* carrizo do enable cp interrupt after cp inited */ |
1419 | if (!(adev->flags & AMD_IS_APU)) | 1417 | if (!(adev->flags & AMD_IS_APU)) |