Skip to content

Commit f7aeee7

Browse files
Tao Zhoualexdeucher
authored andcommitted
drm/amdgpu: use mode-2 reset for RAS poison consumption
Switch from mode-1 reset to mode-2 for poison consumption. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Stanley.Yang <Stanley.Yang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b77cc85 commit f7aeee7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,12 @@ static int amdgpu_umc_do_page_retirement(struct amdgpu_device *adev,
166166
}
167167
}
168168

169-
if (reset)
169+
if (reset) {
170+
/* use mode-2 reset for poison consumption */
171+
if (!entry)
172+
con->gpu_reset_flags |= AMDGPU_RAS_GPU_RESET_MODE2_RESET;
170173
amdgpu_ras_reset_gpu(adev);
174+
}
171175
}
172176

173177
kfree(err_data->err_addr);

0 commit comments

Comments
 (0)