media: mediatek: vcodec: fix v4l2_ctrl_request_complete fail
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest5 patches 1 replyIn review
- v65 patches 9 repliesSuperseded
- v55 patches 2 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 7 patches | 13 replies | Superseded | |
| v3 | 7 patches | 0 replies | Superseded | |
| v2 | 4 patches | 3 replies | Superseded | |
| v1 | 1 patch | 2 replies | Superseded |
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | media: mediatek: vcodec: support manual request completiondrivers/ drivers/ | +19 | 1 reply | |
| 2/5 | media: mediatek: vcodec: change flush decode order when stream offdrivers/ | +23 | 0 replies | |
| 3/5 | media: mediatek: vcodec: remove media request checkingdrivers/ drivers/ | +7 | 0 replies | |
| 4/5 | media: mediatek: vcodec: Get SRC buffer from bitstream instead of M2Mdrivers/ drivers/ | +15 | 0 replies | |
| 5/5 | media: mediatek: vcodec: store current vb2 buffer to decode againdrivers/ drivers/ | +23 | 0 replies |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Chen-Yu Tsai |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | R-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v7 0/5] media: mediatek: vcodec: fix v4l2_ctrl_request_complete fail
User space attach the syntaxes and bit-stream buffer to a same media request for stateless decode, and the syntax controls are the only v4l2 control request. The request will be marked to complete status when the buffer is set to done, then request object will be cleaned form media request.
When v4l2_ctrl_request_complete() is later called, the control request
detect that there is no controls in the request object. It then creates
an empty control request object, but attaching an object to a completed
request is not allowed. Using manual request completion to handle the
request complete event.
---
depends on manual request completion patch:
[1] https://patchwork.linuxtv.org/project/linux-media/cover/[email protected]/
---
compared with v6:
- Using manual request completion for patch 1
- rebase on latest driver for patches 2/3/4/5
compared with v5:
- fix comments for patch 3
- fix smatch error for patch 1
compared with v4:
- re-write the commit message for cover-letter
- change patch 2/3/4/5 commit message
compared with v3:
- fix flush decoder issue when userspace stream off capture queue firstly
- fluster test result same with v3
compared with v2:
- add patch 5/6/7 to fix decode again issue
- add fluster test result with mt8195 platform(same with no changed):
1> ./fluster.py run -d GStreamer-VP8-V4L2SL-Gst1.0 -j1 -t 90
VP8-TEST-VECTORS 59/61
2> ./fluster.py run -d GStreamer-VP9-V4L2SL-Gst1.0 -j1 -t 90
VP9-TEST-VECTORS 276/305
3> ./fluster.py run -d GStreamer-AV1-V4L2SL-Gst1.0 -j1 -t 90
AV1-TEST-VECTORS 237/239
4> ./fluster.py run -d GStreamer-H.264-V4L2SL-Gst1.0 -j1 -t 90
JVT-AVC_V1 95/135
5> ./fluster.py run -d GStreamer-H.265-V4L2SL-Gst1.0 -j1 -t 90
JCT-VC-HEVC_V1 142/147compared with v1:
- add patch 2/3/4 to fix timing issue.
---
Yunfei Dong (5):
media: mediatek: vcodec: support manual request completion
media: mediatek: vcodec: change flush decode order when stream off
media: mediatek: vcodec: remove media request checking
media: mediatek: vcodec: Get SRC buffer from bitstream instead of M2M
media: mediatek: vcodec: store current vb2 buffer to decode again
.../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 43 ++++++++-------- .../vcodec/decoder/mtk_vcodec_dec_drv.h | 2 + .../vcodec/decoder/mtk_vcodec_dec_stateless.c | 51 ++++++++++++------- .../vcodec/decoder/vdec/vdec_av1_req_lat_if.c | 14 ++--- .../vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 15 +++--- 5 files changed, 72 insertions(+), 53 deletions(-)
Signature · 1 line
2.46.0