summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-10-26 22:35:14 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-11-02 19:58:25 +0300
commit30b7c6147d18d77c6120a8f689d04d2518d3f5e4 (patch)
tree8619de6db7b4b15c5e169196953e5cbfa3846df4
parentcc57306f426e3953118f1fcf8a7254dbad46c5f6 (diff)
downloadlinux-30b7c6147d18d77c6120a8f689d04d2518d3f5e4.tar.xz
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 <harry.wentland@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c3
1 files changed, 2 insertions, 1 deletions
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 fd3e995fc426..b94987bb6af9 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;
}