]> Git Repo - linux.git/commitdiff
drm/amdgpu: use mode-2 reset for RAS poison consumption
authorTao Zhou <[email protected]>
Fri, 27 Oct 2023 03:38:18 +0000 (11:38 +0800)
committerAlex Deucher <[email protected]>
Fri, 3 Nov 2023 15:38:13 +0000 (11:38 -0400)
Switch from mode-1 reset to mode-2 for poison consumption.

Signed-off-by: Tao Zhou <[email protected]>
Reviewed-by: Stanley.Yang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c

index f74347cc087a0d0d0e789da79b70881c15bfd7d9..d65e21914d8c4a9e8f7d03a59391504e08a46f63 100644 (file)
@@ -166,8 +166,12 @@ static int amdgpu_umc_do_page_retirement(struct amdgpu_device *adev,
                        }
                }
 
-               if (reset)
+               if (reset) {
+                       /* use mode-2 reset for poison consumption */
+                       if (!entry)
+                               con->gpu_reset_flags |= AMDGPU_RAS_GPU_RESET_MODE2_RESET;
                        amdgpu_ras_reset_gpu(adev);
+               }
        }
 
        kfree(err_data->err_addr);
This page took 0.057546 seconds and 4 git commands to generate.