Commit f7e05343 authored by Tao Zhou's avatar Tao Zhou Committed by Alex Deucher
Browse files

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: default avatarTao Zhou <tao.zhou1@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4320e6f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);