From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796129627; b=eE3dwfal1rCUQZ7f0DdiDRxHF/bTorVKylzhX7S6VhK8AlULf7oI7AjgjQZ9hcc0DRGj Ua3JGCKK6Cd8DYy4kiEStv7qCY+kLomYwb+/jSrm0dlPiHlDLwK4Pft54jiD6viFZj32U NTov2mmA0KuKkvHi00lnUtwxFZkg5hoD6h5luLrbU/ARbASE0wYmU392tEb64mYa0HZZ5 sg0hRBtbW0CZjTP2JeSaoyZxyLfoIUOUoqGDrWfzuKqaVvy7A/Pc7gLdKLhYzK8yxaJqL dTGPX7/Shj8X92Dq8Oh15aoCrNl0f3mducqA4ZH/vR1UiVwJhrR3Lz9IGOJUOkoXICA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796129627; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=Ifa/x6HjY7VSDJLiRIi4Vnq79fhLKXJdRHRhLmjYna8=; b=UXKVGJro+GPCjo51WJYH8oxLr0hD/2y1JtzOGRbUEO13KF74rgPN6y862gp3LZvIR4iU wWiJVt1lEgUlSTiTdSrG1225R3oIn8b2UG2BlY8vyMpWP+7wdc7/LPIGA960XIggj8Plk b779PqRXeyE7loLeUAoB+RgUtTvb+FdvqYd6IrsE40iH4oeCyQNl+NMpiHxFIm/NWEnIg O4oa0UhablZOARFOmCJ8dOSWwcEM4R0pYNlyyfGWG9lv9uuHxc/S36oiGUXJO0XFHm+tA Z39K9bG05HRQnhdhjwxIefnHsHJ28YjS0i4OZehlg+qG6k+hHG2qZRxl+911P3y8Fdw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="b/1HVhFH"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C93EA606A31A; Tue, 1 Dec 2026 12:53:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=b/1HVhFH Received: by smtp.kernel.org (Postfix) with ESMTPSA id E61441F00893; Tue, 1 Dec 2026 12:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796129627; bh=Ifa/x6HjY7VSDJLiRIi4Vnq79fhLKXJdRHRhLmjYna8=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=b/1HVhFH3UC4JeenHEFiQPirALKvXm5DFpgjHFNTcJ3KgJu8WFLZ4uXR+uTybZ+xf OPsthddywX/79xMgso+nYuDPOTdHYz4slQP48xF5vNenFI+8Z/X+/QTI6ggofQ89tb jziz5ol2cl1BbSdBXIbRaIRsgytPxHF9/STeY9yh5YFpB2HwsOTmGXndfdynYz7Zc7 G/hGiz1JntoGDNSiKAMIqp6tc1RataasYOYLdascEd0NHS/S4lsftO+AM+schzRHVl LuKkbYwGkrtHB9H0IjdpaA8J1gAyqYfCdmu74QoY2DQTUcNTSdUCavCJLQ/eL5rVnh lh445Ui78VqjA== Message-ID: <81343316-a3d5-4210-838b-ea524f666c38@kernel.org> Date: Tue, 1 Dec 2026 13:53:43 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/7] media: s5p-mfc: fix seeking and some v4l2-compliance failures To: y-asai.0816@docomonet.jp, Marek Szyprowski , Andrzej Hajda , Mauro Carvalho Chehab , Kyngmin Park , Kamil Debski , Philipp Zabel Cc: linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261130-s5p-mfc-seek-v1-0-6787e278c1d1@docomonet.jp> From: Hans Verkuil Content-Language: en-US, nl In-Reply-To: <20261130-s5p-mfc-seek-v1-0-6787e278c1d1@docomonet.jp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 > --- > 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 > > >