summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2021-10-20 11:17:25 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-10-28 14:26:13 -0400
commitf7e053435c3d9874df7c12f9865d4c746c1b78f2 (patch)
tree6ee2d0bf845f00b479637b2b3facd493f239a436
parent4320e6f86d976f86d836441c31e23ef8cfed048e (diff)
downloadlinux-f7e053435c3d9874df7c12f9865d4c746c1b78f2.tar.gz
linux-f7e053435c3d9874df7c12f9865d4c746c1b78f2.tar.bz2
linux-f7e053435c3d9874df7c12f9865d4c746c1b78f2.zip
drm/amdgpu: skip GPRs init for some CU settings on ALDEBARAN
Skip GPRs init in specific condition since current GPRs init algorithm only works for some CU settings. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
index 00a2b36a24b3..24852a24cc58 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
@@ -706,6 +706,11 @@ int gfx_v9_4_2_do_edc_gpr_workarounds(struct amdgpu_device *adev)
if (!amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__GFX))
return 0;
+ /* Workaround for some CU settings, skip GPRs init.
+ Will remove it once GPRs init algorithm works for all CU settings */
+ if (adev->gfx.cu_info.bitmap[1][1] == 0x3f7f)
+ return 0;
+
gfx_v9_4_2_do_sgprs_init(adev);
gfx_v9_4_2_do_vgprs_init(adev);