Skip to content

Commit ce43a5f

Browse files
Stanley.Yangalexdeucher
authored andcommitted
drm/amdgpu: Enable mca debug mode mode when ras enabled
Enable smu_v13_0_6 mca debug mode if ras is enabled. Changed from V1: enable mca debug mode if ras enabled. Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent f2176d7 commit ce43a5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2303,7 +2303,7 @@ static int smu_v13_0_6_post_init(struct smu_context *smu)
23032303
{
23042304
struct amdgpu_device *adev = smu->adev;
23052305

2306-
if (!amdgpu_sriov_vf(adev) && amdgpu_ras_is_supported(adev, AMDGPU_RAS_BLOCK__UMC))
2306+
if (!amdgpu_sriov_vf(adev) && adev->ras_enabled)
23072307
return smu_v13_0_6_mca_set_debug_mode(smu, true);
23082308

23092309
return 0;

0 commit comments

Comments
 (0)