diff options
author | Tao Zhou <tao.zhou1@amd.com> | 2019-08-01 12:52:54 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-02 10:30:38 -0500 |
commit | 91ba68f8d5727adb1c17d039af34af0f8297dff3 (patch) | |
tree | 5d1e9c32dbd6e2da26f866ab4d31cfb0da4afd0f /drivers/gpu/drm/amd/amdgpu | |
parent | b1a5895352dc1a154f1605702745ef2f63a5d797 (diff) |
drm/amdgpu: only uncorrectable error needs gpu reset
we only read error information for correctable error in interrupt
handler, gpu reset is unnecessary since there is no data lost
in correctable error
Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c index c7647c6988df..a3575522f83d 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c @@ -254,7 +254,11 @@ static int gmc_v9_0_process_ras_data_cb(struct amdgpu_device *adev, */ if (adev->umc.funcs->query_ras_error_address) adev->umc.funcs->query_ras_error_address(adev, err_data); - amdgpu_ras_reset_gpu(adev, 0); + + /* only uncorrectable error needs gpu reset */ + if (err_data->ue_count) + amdgpu_ras_reset_gpu(adev, 0); + return AMDGPU_RAS_UE; } |