[PATCH 4/4] drm/amdgpu: only uncorrectable error needs gpu reset

Deucher, Alexander Alexander.Deucher at amd.com
Thu Aug 1 15:35:16 UTC 2019


Please add a patch description for this patch.  With that fixed, the series is:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Tao Zhou <tao.zhou1 at amd.com>
Sent: Thursday, August 1, 2019 2:53 AM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>; Zhang, Hawking <Hawking.Zhang at amd.com>; Li, Dennis <Dennis.Li at amd.com>; Chen, Guchun <Guchun.Chen at amd.com>; Pan, Xinhui <Xinhui.Pan at amd.com>
Cc: Zhou1, Tao <Tao.Zhou1 at amd.com>
Subject: [PATCH 4/4] drm/amdgpu: only uncorrectable error needs gpu reset

Signed-off-by: Tao Zhou <tao.zhou1 at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 05cbd90d9b6c..b6edad8bb31c 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -250,7 +250,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;
 }

--
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20190801/241ad9c4/attachment.html>


More information about the amd-gfx mailing list