Skip to content

RFC media: iris: decoder fixes for resolution changes

Christian Cortner linux-arm-msm linux-media 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 1 replyIn review
  2. v1 RFC5 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- 1/4: shorter log, with the traced firmware flags (Bryan)
- 2/4: shorter log (Bryan)
- 3/4: one helper for the EOS check (Bryan)
- 4/4: comment states the 500 ms limit, no domain check, warn on timeout (Bryan)
- v1 5/5 dropped: too much for stable, and broken (Bryan)

[1] https://lore.kernel.org/linux-media/[email protected]/
[2] https://lore.kernel.org/linux-media/[email protected]/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: iris: Don't flag an empty source change LAST buffer as an errordrivers/media/platform/qcom/iris/iris_hfi_gen2_response.c+6 -10 replies
2/4media: iris: Update the CAPTURE stride and size on S_FMT(OUTPUT)drivers/media/platform/qcom/iris/iris_vdec.c+33 -280 replies
3/4media: iris: Signal V4L2_EVENT_EOS only at the end of a draindrivers/media/platform/qcom/iris/iris_buffer.c drivers/media/platform/qcom/iris/iris_buffer.h drivers/media/platform/qcom/iris/iris_vb2.c+21 -120 replies
4/4media: iris: Let a resolution change drain before stopping CAPTUREdrivers/media/platform/qcom/iris/iris_instance.h drivers/media/platform/qcom/iris/iris_state.c drivers/media/platform/qcom/iris/iris_vb2.c +1 more+31 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/4] media: iris: decoder fixes for resolution changes

Four fixes for iris decoder problems at resolution changes, reworked after Bryan's review of v1 [1]. There is no Signed-off-by from me, since I'm not a kernel developer and can't vouch for the code; please take over whatever is useful. An AI assistant wrote the code and the logs (Assisted-by in each patch). I'm happy to test.

Tested on glymur (Zenbook A16, laptops tree 65f4ae73 with these four and the iris patches listed in [2]): v4l2-compliance passes, and GStreamer and a spec-following client decode bit-exact across resolution changes. ffmpeg's h264_v4l2m2m still stops at the first source change when it sets up CAPTURE early (problem 1 in [2]). Build-tested on media-committers next with W=1, sparse and smatch.

Changes in v2:
- 1/4: shorter log, with the traced firmware flags (Bryan)
- 2/4: shorter log (Bryan)
- 3/4: one helper for the EOS check (Bryan)
- 4/4: comment states the 500 ms limit, no domain check, warn on timeout (Bryan)
- v1 5/5 dropped: too much for stable, and broken (Bryan)

[1] https://lore.kernel.org/linux-media/[email protected]/
[2] https://lore.kernel.org/linux-media/[email protected]/

Christian Cortner (4):
media: iris: Don't flag an empty source change LAST buffer as an error
media: iris: Update the CAPTURE stride and size on S_FMT(OUTPUT)
media: iris: Signal V4L2_EVENT_EOS only at the end of a drain
media: iris: Let a resolution change drain before stopping CAPTURE

 .../media/platform/qcom/iris/iris_buffer.c    | 26 +++++---
 .../media/platform/qcom/iris/iris_buffer.h    |  1 +
 .../qcom/iris/iris_hfi_gen2_response.c        |  7 ++-
 .../media/platform/qcom/iris/iris_instance.h  |  3 +
 drivers/media/platform/qcom/iris/iris_state.c |  8 ++-
 drivers/media/platform/qcom/iris/iris_vb2.c   | 26 ++++++--
 drivers/media/platform/qcom/iris/iris_vdec.c  | 61 ++++++++++---------
 drivers/media/platform/qcom/iris/iris_vidc.c  |  1 +
 8 files changed, 91 insertions(+), 42 deletions(-)

base-commit: d7e7bca7169873b46e857c025c10f3336c1258d8

Signature · 1 line
2.56.0