From: Harry Wentland Date: Thu, 26 Oct 2017 19:35:14 +0000 (-0400) Subject: drm/amd/display: Don't print error when bo_pin is interrupted X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=30b7c6147d18d77c6120a8f689d04d2518d3f5e4;p=linux.git drm/amd/display: Don't print error when bo_pin is interrupted v2: Also don't print for ERESTARTSYS or EAGAIN v3: Best practice is to only ignore ERESTARTSYS Signed-off-by: Harry Wentland Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index fd3e995fc4266..b94987bb6af95 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -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; }