Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: y-asai.0816@docomonet.jp,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Andrzej Hajda <andrzej.hajda@intel.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Kyngmin Park <kyungmin.park@samsung.com>,
	Kamil Debski <k.debski@samsung.com>,
	Philipp Zabel <p.zabel@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/7] media: s5p-mfc: fix seeking and some v4l2-compliance failures
Date: Tue, 1 Dec 2026 13:53:43 +0100	[thread overview]
Message-ID: <81343316-a3d5-4210-838b-ea524f666c38@kernel.org> (raw)
In-Reply-To: <20261130-s5p-mfc-seek-v1-0-6787e278c1d1@docomonet.jp>

On 30/11/2026 14:02, Shigeaki Asai via B4 Relay wrote:
> On the ODROID-XU4 (Exynos5422), MFC decoding stops after a seek in
> Kodi on LibreELEC, which uses the FFmpeg v4l2m2m decoder.
> 
> Patches 1, 2 and 4 fix seeking. FFmpeg drains the decoder with
> V4L2_DEC_CMD_STOP before a seek and resumes it with V4L2_DEC_CMD_START,
> but the driver did not handle this sequence correctly.
> (FFmpeg also needs a fix to queue the empty capture buffer again after
> a drain. I will send it to FFmpeg separately.)
> 
> Patch 3 reports the supported H.264 profiles, so that applications can
> use another decoder for profiles that the MFC cannot decode (e.g. High
> 10).
> (FFmpeg does not check this control yet. I will send a patch for it to
> FFmpeg separately.)
> 
> Patches 5, 6 and 7 fix failures found by v4l2-compliance.
> 
> Tested on the ODROID-XU4 (Exynos5422, MFC v8) with a 7.3.4 kernel
> (LibreELEC):
> 
> - Kodi plays and seeks H.264 and MPEG-2 videos, with no errors or
>   warnings in dmesg.
> - fluster, JVT-AVC_V1 with FFmpeg-H.264-v4l2m2m: 122/135 passed. The
>   other 13 use features that the MFC does not support (Extended
>   profile, FMO), are decoded wrongly by the MFC itself, or hit a crop
>   offset issue in FFmpeg.
> - v4l2-compliance 1.32.0: 42/49 passed without this series, 44/49 with
>   it. The remaining 5 failures come from reading controls and formats
>   before the stream header is parsed, and from the limit on the number
>   of instances.
> 
> The analysis, the code and the changelogs were prepared with the help
> of Claude (Anthropic), an AI assistant. I wrote this cover letter
> myself, and Claude checked my English. I reviewed the code and tested
> it on the hardware myself.

Nice series! Thank you for working on this, I'll merge it.

Regards,

	Hans

> 
> Signed-off-by: Shigeaki Asai <y-asai.0816@docomonet.jp>
> ---
> Shigeaki Asai (7):
>       media: s5p-mfc: clear the EOS flag when a buffer is queued
>       media: s5p-mfc: support V4L2_DEC_CMD_START
>       media: s5p-mfc: report the supported H.264 decoder profiles
>       media: s5p-mfc: keep the remaining capture buffers queued after a drain
>       media: s5p-mfc: support VIDIOC_TRY_DECODER_CMD
>       media: s5p-mfc: allow subscribing to control events
>       media: s5p-mfc: do not fail V4L2_DEC_CMD_STOP when not streaming
> 
>  drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c   | 17 ++++--
>  .../media/platform/samsung/s5p-mfc/s5p_mfc_dec.c   | 66 +++++++++++++++++++++-
>  2 files changed, 76 insertions(+), 7 deletions(-)
> ---
> base-commit: 0b19af378cd5004bdf6bfaf7b3809fbbb0711a9b
> change-id: 20261126-s5p-mfc-seek-10faff7c28e3
> 
> Best regards,
> --  
> Shigeaki Asai <y-asai.0816@docomonet.jp>
> 
> 
> 



      parent reply	other threads:[~2026-12-01 12:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 13:02 [PATCH 0/7] media: s5p-mfc: fix seeking and some v4l2-compliance failures Shigeaki Asai via B4 Relay
2026-11-30 13:02 ` [PATCH 1/7] media: s5p-mfc: clear the EOS flag when a buffer is queued Shigeaki Asai via B4 Relay
2026-11-30 13:02 ` [PATCH 2/7] media: s5p-mfc: support V4L2_DEC_CMD_START Shigeaki Asai via B4 Relay
2026-11-30 13:02 ` [PATCH 3/7] media: s5p-mfc: report the supported H.264 decoder profiles Shigeaki Asai via B4 Relay
2026-11-30 13:02 ` [PATCH 4/7] media: s5p-mfc: keep the remaining capture buffers queued after a drain Shigeaki Asai via B4 Relay
2026-11-30 13:02 ` [PATCH 5/7] media: s5p-mfc: support VIDIOC_TRY_DECODER_CMD Shigeaki Asai via B4 Relay
2026-11-30 13:02 ` [PATCH 6/7] media: s5p-mfc: allow subscribing to control events Shigeaki Asai via B4 Relay
2026-11-30 13:02 ` [PATCH 7/7] media: s5p-mfc: do not fail V4L2_DEC_CMD_STOP when not streaming Shigeaki Asai via B4 Relay
2026-12-01 12:53 ` Hans Verkuil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81343316-a3d5-4210-838b-ea524f666c38@kernel.org \
    --to=hverkuil+cisco@kernel.org \
    --cc=andrzej.hajda@intel.com \
    --cc=k.debski@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mchehab@kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=y-asai.0816@docomonet.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox