提交 40f06773 编写于 作者: T Tom St Denis 提交者: Alex Deucher

drm/amd/amdgpu: cleanup gfx_v9_0_gpu_init()

Use new WREG32_FIELD15 macro
Signed-off-by: NTom St Denis <tom.stdenis@amd.com>
Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 596c8e8b
...@@ -1288,9 +1288,7 @@ static void gfx_v9_0_gpu_init(struct amdgpu_device *adev) ...@@ -1288,9 +1288,7 @@ static void gfx_v9_0_gpu_init(struct amdgpu_device *adev)
u32 tmp; u32 tmp;
int i; int i;
tmp = RREG32(SOC15_REG_OFFSET(GC, 0, mmGRBM_CNTL)); WREG32_FIELD15(GC, 0, GRBM_CNTL, READ_TIMEOUT, 0xff);
tmp = REG_SET_FIELD(tmp, GRBM_CNTL, READ_TIMEOUT, 0xff);
WREG32(SOC15_REG_OFFSET(GC, 0, mmGRBM_CNTL), tmp);
gfx_v9_0_tiling_mode_table_init(adev); gfx_v9_0_tiling_mode_table_init(adev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册