[PATCH v3] drm/amd/display: Don't print error when bo_pin is interrupted
Christian König
ckoenig.leichtzumerken at gmail.com
Fri Oct 27 16:13:12 UTC 2017
Am 27.10.2017 um 17:51 schrieb Harry Wentland:
> v2: Also don't print for ERESTARTSYS or EAGAIN
> v3: Best practice is to only ignore ERESTARTSYS
>
> Signed-off-by: Harry Wentland <harry.wentland at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>.
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> 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 cf15701f208d..8133711d85b9 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -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;
> }
>
More information about the amd-gfx
mailing list