From 01510db4ee7b43f18ac8a0881757f5271010949d Mon Sep 17 00:00:00 2001 From: Philip Yang Date: Tue, 27 Mar 2018 07:32:54 -0400 Subject: [PATCH] drm/amdgpu: Set graphics noretry to 1 Fix graphics hang issue while computer noretry set to 1 BUG: SWDEV-146501 Change-Id: I3ccafe2beb58f05bb240db6154151a62589a195a Signed-off-by: Philip Yang --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index d1b50972974f0..88123118a3632 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -1553,6 +1553,7 @@ static void gfx_v9_0_gpu_init(struct amdgpu_device *adev) tmp = 0; tmp = REG_SET_FIELD(tmp, SH_MEM_CONFIG, ALIGNMENT_MODE, SH_MEM_ALIGNMENT_MODE_UNALIGNED); + tmp = REG_SET_FIELD(tmp, SH_MEM_CONFIG, RETRY_DISABLE, 1); WREG32_SOC15(GC, 0, mmSH_MEM_CONFIG, tmp); WREG32_SOC15(GC, 0, mmSH_MEM_BASES, 0); }