drm/amdgpu: add page retirement handling for CPU RAS
authorTao Zhou <tao.zhou1@amd.com>
Wed, 21 Sep 2022 09:03:00 +0000 (17:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:42:36 +0000 (09:42 -0400)
Do RAS page retirement in poison consumption handler unconditionally.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c

index c7b1a2dfde1301f90e3df324a96453a44a3ad00d..9e98f3866edca6d4a700d83b221dde0cae01638e 100644 (file)
@@ -756,11 +756,7 @@ void amdgpu_amdkfd_ras_poison_consumption_handler(struct amdgpu_device *adev, bo
 {
        struct ras_err_data err_data = {0, 0, 0, NULL};
 
-       /* CPU MCA will handle page retirement if connected_to_cpu is 1 */
-       if (!adev->gmc.xgmi.connected_to_cpu)
-               amdgpu_umc_poison_handler(adev, &err_data, reset);
-       else if (reset)
-               amdgpu_amdkfd_gpu_reset(adev);
+       amdgpu_umc_poison_handler(adev, &err_data, reset);
 }
 
 bool amdgpu_amdkfd_ras_query_utcl2_poison_status(struct amdgpu_device *adev)