[PATCH v3 1/1] mtk-vcodec: check the vp9 decoder buffer index from VPU.

2017-03-07 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> VPU firmware has a bug and may return invalid buffer index for some vp9 videos. Check the buffer indexes before accessing the buffer. Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> --- drivers/media/platform/mtk-vcodec/mtk_vcode

[PATCH v3 0/1] mtk-vcodec: check the vp9 decoder buffer index from VPU

2017-03-07 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> v2: also check the result of vdec_if_decode in mtk_vdec_worker. v3: set buffer status to VB2_BUF_STATE_ERROR. Move printk out of lock. Wu-Cheng Li (1): mtk-vcodec: check the vp9 decoder buffer index from VPU. drivers/media/platform/mtk-

[PATCH v2 1/1] mtk-vcodec: check the vp9 decoder buffer index from VPU.

2017-03-07 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> VPU firmware has a bug and may return invalid buffer index for some vp9 videos. Check the buffer indexes before accessing the buffer. Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> --- drivers/media/platform/mtk-vcodec/mtk_vcode

[PATCH v2 0/1] mtk-vcodec: check the vp9 decoder buffer index from VPU

2017-03-07 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> This patch guards against the invalid buffer index from VPU firmware. v2: also check the result of vdec_if_decode in mtk_vdec_worker. Wu-Cheng Li (1): mtk-vcodec: check the vp9 decoder buffer index from VPU. drivers/media/platform/mtk-

[PATCH 1/1] mtk-vcodec: check the vp9 decoder buffer index from VPU.

2017-03-06 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> VPU firmware has a bug and may return invalid buffer index for some vp9 videos. Check the buffer indexes before accessing the buffer. Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> --- drivers/media/platform/mtk-vcodec/mtk_vcode

[PATCH v1 0/1] mtk-vcodec: check the vp9 decoder buffer index from VPU

2017-03-06 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> This patch guards against the invalid buffer index from VPU firmware. Wu-Cheng Li (1): mtk-vcodec: check the vp9 decoder buffer index from VPU. drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 6 + .../media/platform/mtk-vcode

[PATCH v1] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush

2016-12-01 Thread Wu-Cheng Li
From: Tiffany Lin <tiffany@mediatek.com> Also remove the code using size-0 OUTPUT buffer to flush. Singed-off-by: Tiffany Lin <tiffany@mediatek.com> Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> Reviewed-by: Kuang-che Wu <k...@chromium.org> --- drivers/m

[PATCH v1] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush

2016-12-01 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> This patch uses V4L2_DEC_CMD_STOP to implement flush -- requesting the remaining images to be returned to userspace. The old unofficial way was to use a size-0 input buffer and the code is removed. Tiffany Lin (1): mtk-vcodec: use V4L2_DEC_CM

[PATCH v1] mtk-vcodec: add index check in decoder vidioc_qbuf.

2016-11-09 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> vb2_qbuf will check the buffer index. If a driver overrides vidioc_qbuf and use the buffer index, the driver needs to check the index. Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c

[PATCH v1] mtk-vcodec: add index check in decoder vidioc_qbuf

2016-11-09 Thread Wu-Cheng Li
From: Wu-Cheng Li <wuchen...@google.com> This patch adds a buffer index check in decoder vidioc_qbuf. Wu-Cheng Li (1): mtk-vcodec: add index check in decoder vidioc_qbuf. drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 4 1 file changed, 4 insertions(+) -- 2.8.0.rc3.226.g3

[PATCH v1 0/3] Add V4L2_PIX_FMT_VP9

2016-05-24 Thread Wu-Cheng Li
This patch series add V4L2_PIX_FMT_VP9 and the documentation. Wu-Cheng Li (3): videodev2.h: add V4L2_PIX_FMT_VP9 format. v4l2-ioctl: add VP9 format description. V4L: add VP9 format documentation Documentation/DocBook/media/v4l/pixfmt.xml | 5 + drivers/media/v4l2-core/v4l2-ioctl.c

[PATCH v1 1/3] videodev2.h: add V4L2_PIX_FMT_VP9 format.

2016-05-24 Thread Wu-Cheng Li
This adds VP9 video coding format, a successor to VP8. Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 8f95191..a95f940

[PATCH v1 3/3] V4L: add VP9 format documentation

2016-05-24 Thread Wu-Cheng Li
Add documentation for V4L2_PIX_FMT_VP9. Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> --- Documentation/DocBook/media/v4l/pixfmt.xml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml b/Documentation/DocBook/media/v4l/pixfmt.xml

[PATCH v1 2/3] v4l2-ioctl: add VP9 format description.

2016-05-24 Thread Wu-Cheng Li
VP9 is a video coding format and a successor to VP8. Signed-off-by: Wu-Cheng Li <wuchen...@chromium.org> --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 2