> -----Original Message----- > From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf > Of Christian König > Sent: Wednesday, July 13, 2016 3:30 PM > To: amd-gfx at lists.freedesktop.org > Subject: [PATCH] drm/amdgpu: return -ENOSPC when running out of UVD > handles > > From: Christian König <christian.koenig at amd.com> > > This is a minor interface change, but clearly won't break anything. > > Signed-off-by: Christian König <christian.koenig at amd.com> Reviewed-by: Alex Deucher <alexander.deucher at amd.com> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c > index d819c78..130eddb 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c > @@ -659,7 +659,7 @@ static int amdgpu_uvd_cs_msg(struct > amdgpu_uvd_cs_ctx *ctx, > } > > DRM_ERROR("No more free UVD handles!\n"); > - return -EINVAL; > + return -ENOSPC; > > case 1: > /* it's a decode msg, calc buffer sizes */ > -- > 2.5.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx