drm/amd/display: Don't print error when bo_pin is interrupted
authorHarry Wentland <harry.wentland@amd.com>
Thu, 26 Oct 2017 19:35:14 +0000 (15:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Nov 2017 16:58:25 +0000 (12:58 -0400)
v2: Also don't print for ERESTARTSYS or EAGAIN
v3: Best practice is to only ignore ERESTARTSYS

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index fd3e995..b94987b 100644 (file)
@@ -2923,7 +2923,8 @@ static int dm_plane_helper_prepare_fb(struct drm_plane *plane,
        amdgpu_bo_unreserve(rbo);
 
        if (unlikely(r != 0)) {
-               DRM_ERROR("Failed to pin framebuffer\n");
+               if (r != -ERESTARTSYS)
+                       DRM_ERROR("Failed to pin framebuffer with error %d\n", r);
                return r;
        }