mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2,0/4] media: mediatek: vcodec: fix ctrl request complete fail
@ 2024-03-14 11:44 Yunfei Dong
  2024-03-14 11:44 ` [PATCH v2,1/4] media: mediatek: vcodec: setting request complete before buffer done Yunfei Dong
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Yunfei Dong @ 2024-03-14 11:44 UTC (permalink / raw)
  To: Nícolas F . R . A . Prado, Nicolas Dufresne, Hans Verkuil,
	AngeloGioacchino Del Regno, Benjamin Gaignard, Nathan Hebert,
	Sebastian Fricke
  Cc: Hsin-Yi Wang, Fritz Koenig, Daniel Vetter, Steve Cho,
	Yunfei Dong, linux-media, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek,
	Project_Global_Chrome_Upstream_Group

Moving v4l2_ctrl_request_complete to before of function
v4l2_m2m_buf_done to make sure the status of request correctly.

Replace v4l2_m2m_next_src_buf with v4l2_m2m_src_buf_remove to
make sure the src buffer won't be removed for some unknown
reason leading to buffer done error.

Patch 1 setting request complete before buffer done
Patch 3 flush decoder before remove all source buffer
Patch 2 change flush decode from capture to output when stream off
Patch 4 replace v4l2_m2m_next_src_buf with v4l2_m2m_src_buf_remove
---
compared with v1:
- add patch 2/3/4 to fix timing issue.
---
Yunfei Dong (4):
  media: mediatek: vcodec: setting request complete before buffer done
  media: mediatek: vcodec: change flush decode from capture to output
    when stream off
  media: mediatek: vcodec: flush decoder before remove all source buffer
  media: mediatek: vcodec: replace v4l2_m2m_next_src_buf with
    v4l2_m2m_src_buf_remove

 .../mediatek/vcodec/decoder/mtk_vcodec_dec.c  | 52 +++++++++----------
 .../vcodec/decoder/mtk_vcodec_dec_drv.h       |  3 +-
 .../vcodec/decoder/mtk_vcodec_dec_stateless.c | 28 +++++++---
 .../vcodec/decoder/vdec/vdec_av1_req_lat_if.c | 28 +++++-----
 .../decoder/vdec/vdec_h264_req_multi_if.c     |  3 +-
 .../decoder/vdec/vdec_hevc_req_multi_if.c     |  3 +-
 .../vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 37 ++++++-------
 .../mediatek/vcodec/decoder/vdec_msg_queue.h  |  2 +
 8 files changed, 84 insertions(+), 72 deletions(-)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-13  7:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-14 11:44 [PATCH v2,0/4] media: mediatek: vcodec: fix ctrl request complete fail Yunfei Dong
2024-03-14 11:44 ` [PATCH v2,1/4] media: mediatek: vcodec: setting request complete before buffer done Yunfei Dong
2024-03-14 11:44 ` [PATCH v2,2/4] media: mediatek: vcodec: change flush decode from capture to output when stream off Yunfei Dong
2024-03-14 11:44 ` [PATCH v2,3/4] media: mediatek: vcodec: flush decoder before remove all source buffer Yunfei Dong
2024-03-14 11:44 ` [PATCH v2,4/4] media: mediatek: vcodec: replace v4l2_m2m_next_src_buf with v4l2_m2m_src_buf_remove Yunfei Dong
2024-03-15 18:52   ` Daniel Almeida
2024-06-13  7:49     ` Yunfei Dong (董云飞)
2024-03-15 18:24 ` [PATCH v2,0/4] media: mediatek: vcodec: fix ctrl request complete fail Daniel Almeida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®