diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0135-drm-amdgpu-Set-graphics-noretry-to-1.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0135-drm-amdgpu-Set-graphics-noretry-to-1.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0135-drm-amdgpu-Set-graphics-noretry-to-1.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0135-drm-amdgpu-Set-graphics-noretry-to-1.patch new file mode 100644 index 00000000..2a2a0f1d --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0135-drm-amdgpu-Set-graphics-noretry-to-1.patch @@ -0,0 +1,38 @@ +From aebe066d3e50b9793690dacf78ce549812c66e12 Mon Sep 17 00:00:00 2001 +From: Philip Yang <Philip.Yang@amd.com> +Date: Tue, 27 Mar 2018 18:15:59 -0400 +Subject: [PATCH 0135/2940] drm/amdgpu: Set graphics noretry to 1 + +Fix graphics hang issue while computer noretry set to 1 + +BUG: SWDEV-146501 + +Change-Id: I415687d151514fc90f9d37be18940a2e2ec5d869 +Signed-off-by: Philip Yang <Philip.Yang@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index 76d979e276a0..437b1b8cf3fe 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -1783,11 +1783,15 @@ static void gfx_v9_0_gpu_init(struct amdgpu_device *adev) + if (i == 0) { + tmp = REG_SET_FIELD(0, 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); + } else { + tmp = REG_SET_FIELD(0, 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); + tmp = REG_SET_FIELD(0, SH_MEM_BASES, PRIVATE_BASE, + (adev->gmc.private_aperture_start >> 48)); +-- +2.17.1 + |