]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: Remove a false-positive error message
authorJerry Zuo <Jerry.Zuo@amd.com>
Fri, 6 Oct 2017 19:08:07 +0000 (15:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:49:53 +0000 (16:49 -0400)
To avoid confusion, need to suppress the error message when get
-ERESTARTSYS error code. It is normal when getting interrupted
by signals in the process of a wait for the buffer to become
unreserved. Only propagate to user-mode for further action,
no need to pop up error message.

Signed-off-by: Jerry Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 17fb636648f4abd0079b3176f9fa542faf87f197..09163d8d9332b4c42a0cdb907ef9a9bdfdf8d221 100644 (file)
@@ -1790,7 +1790,9 @@ static int get_fb_info(const struct amdgpu_framebuffer *amdgpu_fb,
        int r = amdgpu_bo_reserve(rbo, false);
 
        if (unlikely(r)) {
-               DRM_ERROR("Unable to reserve buffer\n");
+               // Don't show error msg. when return -ERESTARTSYS
+               if (r != -ERESTARTSYS)
+                       DRM_ERROR("Unable to reserve buffer: %d\n", r);
                return r;
        }