Skip to content

Commit

Permalink
drm/amdgpu: enable RAS poison mode for APU
Browse files Browse the repository at this point in the history
Enable it by default on APU platform.

Signed-off-by: Tao Zhou <[email protected]>
Reviewed-by: Stanley.Yang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
Tao Zhou authored and alexdeucher committed Oct 26, 2023
1 parent fc4981b commit f3a3bbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -2738,7 +2738,8 @@ static void amdgpu_ras_query_poison_mode(struct amdgpu_device *adev)
return;

/* Init poison supported flag, the default value is false */
if (adev->gmc.xgmi.connected_to_cpu) {
if (adev->gmc.xgmi.connected_to_cpu ||
adev->gmc.is_app_apu) {
/* enabled by default when GPU is connected to CPU */
con->poison_supported = true;
} else if (adev->df.funcs &&
Expand Down

0 comments on commit f3a3bbf

Please sign in to comment.