drm/amdgpu: print when gpu reset successed
authorChunming Zhou <David1.Zhou@amd.com>
Fri, 5 May 2017 02:50:09 +0000 (10:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:33 +0000 (17:40 -0400)
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Roger.He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 3c95e1858aa2ad5ba4a5dff48a6b68614a1620c7..ee0877342566da60e7a733a435652a7e8a58e9f0 100644 (file)
@@ -2867,10 +2867,11 @@ out:
        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;
 }