drm/amd/display: Don't print error when bo_pin is interrupted
Subsystems (3)
PATCH v3 1/1 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 <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -1
@@ -2944,7 +2944,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; }
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20171027155114.21528-1-harry.wentland-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 27.10.2017 um 17:51 schrieb Harry Wentland:
Quoted 4 lines
v2: Also don't print for ERESTARTSYS or EAGAIN
v3: Best practice is to only ignore ERESTARTSYSSigned-off-by Harry Wentland <[email protected]>
Reviewed-by Christian König <[email protected]>.
Quoted 9 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +0
-0
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c static int dm_plane_helper_prepare_fb(struct drm_plane *plane, · line 2951
Quoted 9 lines
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2
-1@@ -2944,7 +2944,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; }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx