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 <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f2176d7 commit ce43a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)