[PATCH 2/2] drm/amdgpu: print when gpu reset successed
Christian König
deathsimple at vodafone.de
Fri May 5 12:05:01 UTC 2017
Reviewed-by: Christian König <christian.koenig at amd.com>
Am 05.05.2017 um 09:47 schrieb He, Hongbo:
> Reviewed-by: Roger.He <Hongbo.He at amd.com>
>
> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf Of Chunming Zhou
> Sent: Friday, May 05, 2017 2:46 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhou, David(ChunMing)
> Subject: [PATCH 2/2] drm/amdgpu: print when gpu reset successed
>
> Change-Id: I98d96b566b1fd21d90a0bb037f5b8ba8f1857c98
> Signed-off-by: Chunming Zhou <David1.Zhou at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index b44ecdb..e254364 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -2847,10 +2847,11 @@ int amdgpu_gpu_reset(struct amdgpu_device *adev)
> drm_helper_resume_force_mode(adev->ddev);
>
> ttm_bo_unlock_delayed_workqueue(&adev->mman.bdev, resched);
> - if (r) {
> + if (r)
> /* bad news, how to tell it to userspace ? */
> dev_info(adev->dev, "GPU reset failed\n");
> - }
> + else
> + dev_info(adev->dev, "GPU reset successed!\n");
>
> return r;
> }
More information about the amd-gfx
mailing list