Skip to content

Commit 28caf8c

Browse files
Stanley.Yangalexdeucher
authored andcommitted
drm/amdgpu: fix ras supported check
Fix aldebaran ras supported check on SRIOV guest side, the previous check conditicon block all ras feature on baremetal 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 fd843d0 commit 28caf8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,8 +2278,9 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)
22782278
!amdgpu_ras_asic_supported(adev))
22792279
return;
22802280

2281-
if (!(amdgpu_sriov_vf(adev) &&
2282-
(adev->ip_versions[MP1_HWIP][0] == IP_VERSION(13, 0, 2))))
2281+
/* If driver run on sriov guest side, only enable ras for aldebaran */
2282+
if (amdgpu_sriov_vf(adev) &&
2283+
adev->ip_versions[MP1_HWIP][0] != IP_VERSION(13, 0, 2))
22832284
return;
22842285

22852286
if (!adev->gmc.xgmi.connected_to_cpu) {

0 commit comments

Comments
 (0)