Skip to content

Commit 58bc2a9

Browse files
Stanley.Yangalexdeucher
authored andcommitted
drm/amdgpu: correct ras enabled flag
XGMI RAS should be according to the gmc xgmi physical nodes number, XGMI RAS should not be enabled if xgmi num_physical_nodes is zero. 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 caa4dff commit 58bc2a9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,6 +2430,13 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)
24302430
else
24312431
adev->ras_hw_enabled &= ~(1 << AMDGPU_RAS_BLOCK__VCN |
24322432
1 << AMDGPU_RAS_BLOCK__JPEG);
2433+
2434+
/*
2435+
* XGMI RAS is not supported if xgmi num physical nodes
2436+
* is zero
2437+
*/
2438+
if (!adev->gmc.xgmi.num_physical_nodes)
2439+
adev->ras_hw_enabled &= ~(1 << AMDGPU_RAS_BLOCK__XGMI_WAFL);
24332440
} else {
24342441
dev_info(adev->dev, "SRAM ECC is not presented.\n");
24352442
}

0 commit comments

Comments
 (0)