OSDN Git Service

drm/amdgpu: resolve RAS query bug
authorJohn Clements <john.clements@amd.com>
Wed, 29 Sep 2021 07:06:21 +0000 (15:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 19:22:57 +0000 (15:22 -0400)
clear error count when persistant harvesting is not enabled

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index 8243f79..0e82e0a 100644 (file)
@@ -995,6 +995,9 @@ int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
                }
        }
 
+       if (!amdgpu_persistent_edc_harvesting_supported(adev))
+               amdgpu_ras_reset_error_status(adev, info->head.block);
+
        return 0;
 }