[PATCH 2/4] drm/amdgpu: reset err_event_athub flag if gpu recovery succeeded
Ma, Le
Le.Ma at amd.com
Tue Oct 29 07:27:16 UTC 2019
> -----Original Message-----
> From: Chen, Guchun <Guchun.Chen at amd.com>
> Sent: Tuesday, October 29, 2019 9:28 AM
> To: Ma, Le <Le.Ma at amd.com>; amd-gfx at lists.freedesktop.org
> Cc: Ma, Le <Le.Ma at amd.com>
> Subject: RE: [PATCH 2/4] drm/amdgpu: reset err_event_athub flag if gpu
> recovery succeeded
>
>
>
> Regards,
> Guchun
>
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org<mailto:amd-gfx-bounces at lists.freedesktop.org>> On Behalf Of Le Ma
> Sent: Monday, October 28, 2019 7:31 PM
> To: amd-gfx at lists.freedesktop.org<mailto:amd-gfx at lists.freedesktop.org>
> Cc: Ma, Le <Le.Ma at amd.com<mailto:Le.Ma at amd.com>>
> Subject: [PATCH 2/4] drm/amdgpu: reset err_event_athub flag if gpu recovery
> succeeded
>
> Otherwise next err_event_athub error cannot call gpu reset.
>
> Change-Id: I5cd293f30f23876bf2a1860681bcb50f47713ecd
> Signed-off-by: Le Ma <le.ma at amd.com<mailto:le.ma at amd.com>>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 676cad1..51d74bb 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -4089,6 +4089,9 @@ int amdgpu_device_gpu_recover(struct
> amdgpu_device *adev,
> }
> }
>
> + if (!r && in_ras_intr)
> + atomic_set(&amdgpu_ras_in_intr, 0);
> [Guchun]To access this atomic variable, maybe it's better we create a new
> function like reset or clear in amdgpu_ras.h or .c first, then we can call that
> function here, like we we do to amdgpu_ras_intr_triggered in this same
> function. This will do assist to modularity of ras driver.
> [Le] Agree with you. We could make it paired with amdgpu_ras_intr_triggered.
> skip_sched_resume:
> list_for_each_entry(tmp_adev, device_list_handle, gmc.xgmi.head) {
> /*unlock kfd: SRIOV would do it separately */
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org<mailto: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/20191029/a73b721b/attachment.html>
More information about the amd-gfx
mailing list