[PATCH] drm/amdgpu: add mjpeg check for uvd phycial mode msg buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Leo Liu
> Sent: Tuesday, August 15, 2017 4:13 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Liu, Leo
> Subject: [PATCH] drm/amdgpu: add mjpeg check for uvd phycial mode msg
> buffer
> 
> Signed-off-by: Leo Liu <leo.liu at amd.com>

We need to bump the driver version as well so userspace knows which versions of the kernel driver support this.  Please send a patch to bump the driver version as well, with that addressed:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
> index ff8ae50..b464f62 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
> @@ -588,6 +588,10 @@ static int amdgpu_uvd_cs_msg_decode(struct
> amdgpu_device *adev, uint32_t *msg,
>  		}
>  		break;
> 
> +	case 8: /* MJPEG */
> +		min_dpb_size = 0;
> +		break;
> +
>  	case 16: /* H265 */
>  		image_size = (ALIGN(width, 16) * ALIGN(height, 16) * 3) / 2;
>  		image_size = ALIGN(image_size, 256);
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux