linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: "Kyrie Wu (吴晗)" <Kyrie.Wu@mediatek.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"George Sun (孙林)" <George.Sun@mediatek.com>,
	"Tiffany Lin (林慧珊)" <tiffany.lin@mediatek.com>,
	"nhebert@chromium.org" <nhebert@chromium.org>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"hverkuil@xs4all.nl" <hverkuil@xs4all.nl>,
	"Yunfei Dong (董云飞)" <Yunfei.Dong@mediatek.com>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"Irui Wang (王瑞)" <Irui.Wang@mediatek.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"sebastian.fricke@collabora.com" <sebastian.fricke@collabora.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
	"christophe.jaillet@wanadoo.fr" <christophe.jaillet@wanadoo.fr>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"arnd@arndb.de" <arnd@arndb.de>,
	"Andrew-CT Chen (陳智迪)" <Andrew-CT.Chen@mediatek.com>,
	"AngeloGioacchino Del Regno"
	<angelogioacchino.delregno@collabora.com>
Cc: "andrzejtp2010@gmail.com" <andrzejtp2010@gmail.com>,
	 "neil.armstrong@linaro.org" <neil.armstrong@linaro.org>,
	yunfei.dong@mediatek.com
Subject: Re: [PATCH v2 0/8] Enable video decoder & encoder for MT8189
Date: Tue, 19 Aug 2025 08:36:14 -0400	[thread overview]
Message-ID: <1ecd2849e727a0a1fed52ef0a96c4ef45d81da44.camel@collabora.com> (raw)
In-Reply-To: <39c4e3684a4821c057316259971387d5e6e1062a.camel@mediatek.com>

[-- Attachment #1: Type: text/plain, Size: 15017 bytes --]

Dear Kyrie,

Le mardi 19 août 2025 à 08:26 +0000, Kyrie Wu (吴晗) a écrit :
> On Mon, 2025-08-11 at 10:43 -0400, Nicolas Dufresne wrote:
> > Hi,
> > 
> > Le lundi 11 août 2025 à 11:26 +0800, Kyrie Wu a écrit :
> > > This series have the follow changing:
> > > Firstly add mt8189 video decoder compatible, profile and level to
> > > support
> > > MT8189 kernel driver.
> > > Secondly fix some bugs, including vp 4K profile2 and media device
> > > node
> > > number bug.
> > > Lastly, add mt8189 video encoder compatible.
> > > 
> > > This series has been tested with MT8189 tast test.
> > 
> > As requested previously, please provide summary of the fluster tests
> > results.
> > This has been a requirement for quite some time now. This will serve
> > as
> > reference if this board get added to Kernel CI, which utilize fluster
> > for
> > decoder coverage. The tast tests are unfortunately bound to ChromeOS
> > (or Android
> > eventually as the first get decommission) and is very hard to
> > reproduce with a
> > mainline kernel.
> > 
> > regards,
> > Nicolas
> 
> Dear Nicolas,
> 
> I have executed fluster test of H264 decoder, but all cases are failed.
> However, I noticed that many bitstreams are used in both the tast and
> fluster tests. The decoding tests for these bitstreams pass in the tast
> test but fail in the fluster test. I compared the md5_checksum values
> for these bitstreams in the xxx.json file and found them to be
> completely different between the two tests.
> 
> The tast test results are recognized by Google. Based on the above
> analysis, I believe the golden md5_checksum values in the fluster test
> are incorrect.
> 
> Should I still need to attach all the fluster test results?

The requirement are the same for all submitters, You likely have a problem in
your test setup. Other Mediatek developers have successfully run through this
test using GStreamer as a backend, I also accept results using ffmpeg backend
with LibreELEC patches, or other backend upstreamed into fluster. Google did
wrote a decoder utilizing the Chromium internals, but devs left before this was
made upstream fluster.

I believe you can seek help from Yunfei Dong <yunfei.dong@mediatek.com> who
successfully provided these results on many other variants. I believe he used a
Debian testing root file system for that purpose since ChromeOS Gentoo fork was
too old (and now in maintenance only mode).

If you want support from this mailing list, make sure to describe how it failed,
and show that you have investigated the problems, and how far you have gone
through it. At the very minimum you should have visually inspected the raw
output using the -k (keep) command line option on at least one of the stream.

regards,
Nicolas

> 
> Thanks.
> 
> Regards,
> Kyrie.
> > 
> > > Encoding and decoding worked for this chip.
> > > 
> > > Patches 1-2 Add decoder compatible.
> > > Patches 3 Add profile and level supporting.
> > > Patches 4 Add core-only VP9 decoding supporting.
> > > Patches 5-6 fix some bugs.
> > > Patches 7-8 Adds encoder compatible.
> > > 
> > > ---
> > > v4l2-compliance test results:
> > > v4l2-compliance -d /dev/video2
> > > v4l2-compliance 1.28.1, 64 bits, 64-bit time_t
> > > 
> > > Compliance test for mtk-vcodec-enc device /dev/video2:
> > > 
> > > Driver Info:
> > >         Driver name      : mtk-vcodec-enc
> > >         Card type        : MT8189 video encoder
> > >         Bus info         : platform:17020000.video-codec
> > >         Driver version   : 6.6.88
> > >         Capabilities     : 0x84204000
> > >                 Video Memory-to-Memory Multiplanar
> > >                 Streaming
> > >                 Extended Pix Format
> > >                 Device Capabilities
> > >         Device Caps      : 0x04204000
> > >                 Video Memory-to-Memory Multiplanar
> > >                 Streaming
> > >                 Extended Pix Format
> > >         Detected Stateful Encoder
> > > 
> > > Required ioctls:
> > >         test VIDIOC_QUERYCAP: OK
> > >         test invalid ioctls: OK
> > > 
> > > Allow for multiple opens:
> > >         test second /dev/video2 open: OK
> > >         test VIDIOC_QUERYCAP: OK
> > >         test VIDIOC_G/S_PRIORITY: OK
> > >         test for unlimited opens: OK
> > > 
> > > Debug ioctls:
> > >         test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
> > >         test VIDIOC_LOG_STATUS: OK (Not Supported)
> > > 
> > > Input ioctls:
> > >         test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
> > >         test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
> > >         test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
> > >         test VIDIOC_ENUMAUDIO: OK (Not Supported)
> > >         test VIDIOC_G/S/ENUMINPUT: OK (Not Supported)
> > >         test VIDIOC_G/S_AUDIO: OK (Not Supported)
> > >         Inputs: 0 Audio Inputs: 0 Tuners: 0
> > > 
> > > Output ioctls:
> > >         test VIDIOC_G/S_MODULATOR: OK (Not Supported)
> > >         test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
> > >         test VIDIOC_ENUMAUDOUT: OK (Not Supported)
> > >         test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
> > >         test VIDIOC_G/S_AUDOUT: OK (Not Supported)
> > >         Outputs: 0 Audio Outputs: 0 Modulators: 0
> > > 
> > > Input/Output configuration ioctls:
> > >         test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
> > >         test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
> > >         test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
> > >         test VIDIOC_G/S_EDID: OK (Not Supported)
> > > 
> > > Control ioctls:
> > >         test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
> > >         test VIDIOC_QUERYCTRL: OK
> > >         test VIDIOC_G/S_CTRL: OK
> > >         test VIDIOC_G/S/TRY_EXT_CTRLS: OK
> > >                 fail: v4l2-test-controls.cpp(1171): node-
> > > > codec_mask &
> > > STATEFUL_ENCODER
> > >         test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
> > >         test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
> > >         Standard Controls: 16 Private Controls: 0
> > > 
> > > Format ioctls:
> > >         test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
> > >         test VIDIOC_G/S_PARM: OK
> > >         test VIDIOC_G_FBUF: OK (Not Supported)
> > >         test VIDIOC_G_FMT: OK
> > >         test VIDIOC_TRY_FMT: OK
> > >         test VIDIOC_S_FMT: OK
> > >         test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
> > >         test Cropping: OK
> > >         test Composing: OK (Not Supported)
> > >         test Scaling: OK (Not Supported)
> > > 
> > > Codec ioctls:
> > >         test VIDIOC_(TRY_)ENCODER_CMD: OK
> > >         test VIDIOC_G_ENC_INDEX: OK (Not Supported)
> > >         test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)
> > > 
> > > Buffer ioctls:
> > >         test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
> > >         test CREATE_BUFS maximum buffers: OK
> > >         test VIDIOC_REMOVE_BUFS: OK
> > >         test VIDIOC_EXPBUF: OK
> > >         test Requests: OK (Not Supported)
> > > 
> > > Total for mtk-vcodec-enc device /dev/video2: 47, Succeeded: 46,
> > > Failed: 1,
> > > Warnings: 0
> > > 
> > > v4l2-compliance -d /dev/video3
> > > v4l2-compliance 1.28.1, 64 bits, 64-bit time_t
> > > 
> > > Compliance test for mtk-vcodec-dec device /dev/video3:
> > > 
> > > Driver Info:
> > >         Driver name      : mtk-vcodec-dec
> > >         Card type        : MT8189 video decoder
> > >         Bus info         : platform:16000000.video-codec
> > >         Driver version   : 6.6.88
> > >         Capabilities     : 0x84204000
> > >                 Video Memory-to-Memory Multiplanar
> > >                 Streaming
> > >                 Extended Pix Format
> > >                 Device Capabilities
> > >         Device Caps      : 0x04204000
> > >                 Video Memory-to-Memory Multiplanar
> > >                 Streaming
> > >                 Extended Pix Format
> > >         Detected Stateless Decoder
> > > Media Driver Info:
> > >         Driver name      : mtk-vcodec-dec
> > >         Model            : mtk-vcodec-dec
> > >         Serial           : 
> > >         Bus info         : platform:16000000.video-codec
> > >         Media version    : 6.6.88
> > >         Hardware revision: 0x00000000 (0)
> > >         Driver version   : 6.6.88
> > > Interface Info:
> > >         ID               : 0x0300000c
> > >         Type             : V4L Video
> > > Entity Info:
> > >         ID               : 0x00000001 (1)
> > >         Name             : mtk-vcodec-dec-source
> > >         Function         : V4L2 I/O
> > >         Pad 0x01000002   : 0: Source
> > >           Link 0x02000008: to remote pad 0x1000004 of entity 'mtk-
> > > vcodec-dec-
> > > proc' (Video Decoder): Data, Enabled, Immutable
> > > 
> > > Required ioctls:
> > >         test MC information (see 'Media Driver Info' above): OK
> > >         test VIDIOC_QUERYCAP: OK
> > >         test invalid ioctls: OK
> > > 
> > > Allow for multiple opens:
> > >         test second /dev/video3 open: OK
> > >         test VIDIOC_QUERYCAP: OK
> > >         test VIDIOC_G/S_PRIORITY: OK
> > >         test for unlimited opens: OK
> > > 
> > > Debug ioctls:
> > >         test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
> > >         test VIDIOC_LOG_STATUS: OK (Not Supported)
> > > 
> > > Input ioctls:
> > >         test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
> > >         test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
> > >         test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
> > >         test VIDIOC_ENUMAUDIO: OK (Not Supported)
> > >         test VIDIOC_G/S/ENUMINPUT: OK (Not Supported)
> > >         test VIDIOC_G/S_AUDIO: OK (Not Supported)
> > >         Inputs: 0 Audio Inputs: 0 Tuners: 0
> > > 
> > > Output ioctls:
> > >         test VIDIOC_G/S_MODULATOR: OK (Not Supported)
> > >         test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
> > >         test VIDIOC_ENUMAUDOUT: OK (Not Supported)
> > >         test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
> > >         test VIDIOC_G/S_AUDOUT: OK (Not Supported)
> > >         Outputs: 0 Audio Outputs: 0 Modulators: 0
> > > 
> > > Input/Output configuration ioctls:
> > >         test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
> > >         test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
> > >         test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
> > >         test VIDIOC_G/S_EDID: OK (Not Supported)
> > > 
> > > Control ioctls:
> > >         test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
> > >         test VIDIOC_QUERYCTRL: OK
> > >         test VIDIOC_G/S_CTRL: OK
> > >         test VIDIOC_G/S/TRY_EXT_CTRLS: OK
> > >         test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
> > >         test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
> > >         Standard Controls: 15 Private Controls: 2
> > >         Standard Compound Controls: 13 Private Compound Controls: 0
> > > 
> > > Format ioctls:
> > >         test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
> > >         test VIDIOC_G/S_PARM: OK (Not Supported)
> > >         test VIDIOC_G_FBUF: OK (Not Supported)
> > >         test VIDIOC_G_FMT: OK
> > >         test VIDIOC_TRY_FMT: OK
> > >         test VIDIOC_S_FMT: OK
> > >         test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
> > >         test Cropping: OK (Not Supported)
> > >         test Composing: OK
> > >         test Scaling: OK (Not Supported)
> > > 
> > > Codec ioctls:
> > >         test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
> > >         test VIDIOC_G_ENC_INDEX: OK (Not Supported)
> > >         test VIDIOC_(TRY_)DECODER_CMD: OK
> > > 
> > > Buffer ioctls:
> > >         test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
> > >         test CREATE_BUFS maximum buffers: OK
> > >         test VIDIOC_REMOVE_BUFS: OK
> > >         test VIDIOC_EXPBUF: OK
> > >         test Requests: OK
> > > 
> > > Total for mtk-vcodec-dec device /dev/video3: 48, Succeeded: 48,
> > > Failed: 0,
> > > Warnings: 0
> > > 
> > > scp upstream link:
> > > 
> https://patchwork.kernel.org/project/linux-mediatek/patch/20250811015922.32680-1-huayu.zong@mediatek.com/
> > > 
> > > Changes compared with v1:
> > > --add v4l2-compliance test results
> > > --add scp upstream link
> > > --add HW difference discriptions for dt-bindings commit messages
> > > 
> > > This series patches dependent on:
> > > [1]
> > > 
> https://patchwork.linuxtv.org/project/linux-media/cover/20250510075357.11761-1-yunfei.dong@mediatek.com/
> > > [2]
> > > 
> https://patchwork.linuxtv.org/project/linux-media/cover/20250528063633.14054-1-irui.wang@mediatek.com/
> > > 
> > > Kyrie Wu (8):
> > >   dt-bindings: media: mediatek: decoder: Add MT8189
> > >     mediatek,vcodec-decoder
> > >   media: mediatek: vcodec: add decoder compatible to support MT8189
> > >   media: mediatek: vcodec: add profile and level supporting for
> > > MT8189
> > >   media: mediatek: vcodec: Add core-only VP9 decoding support for
> > > MT8189
> > >   media: mediatek: vcodec: fix vp9 4096x2176 fail for profile2
> > >   media: mediatek: vcodec: fix media device node number
> > >   dt-bindings: media: Add MT8189 mediatek,vcodec-encoder
> > >   media: mediatek: encoder: Add MT8189 encoder compatible data
> > > 
> > >  .../media/mediatek,vcodec-encoder.yaml        |  2 ++
> > >  .../media/mediatek,vcodec-subdev-decoder.yaml |  1 +
> > >  .../vcodec/decoder/mtk_vcodec_dec_drv.c       |  9 +++++-
> > >  .../vcodec/decoder/mtk_vcodec_dec_drv.h       |  1 +
> > >  .../vcodec/decoder/mtk_vcodec_dec_stateless.c |  4 +++
> > >  .../vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 32 ++++++++++++---
> > > ----
> > >  .../vcodec/encoder/mtk_vcodec_enc_drv.c       | 14 ++++++++
> > >  7 files changed, 50 insertions(+), 13 deletions(-)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

      reply	other threads:[~2025-08-19 15:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-11  3:26 [PATCH v2 0/8] Enable video decoder & encoder for MT8189 Kyrie Wu
2025-08-11  3:26 ` [PATCH v2 1/8] dt-bindings: media: mediatek: decoder: Add MT8189 mediatek,vcodec-decoder Kyrie Wu
2025-08-11  8:07   ` Krzysztof Kozlowski
2025-08-16  1:47     ` Kyrie Wu (吴晗)
2025-08-11  3:26 ` [PATCH v2 2/8] media: mediatek: vcodec: add decoder compatible to support MT8189 Kyrie Wu
2025-08-11  3:26 ` [PATCH v2 3/8] media: mediatek: vcodec: add profile and level supporting for MT8189 Kyrie Wu
2025-08-11  3:26 ` [PATCH v2 4/8] media: mediatek: vcodec: Add core-only VP9 decoding support " Kyrie Wu
2025-08-11  3:26 ` [PATCH v2 5/8] media: mediatek: vcodec: fix vp9 4096x2176 fail for profile2 Kyrie Wu
2025-08-11  3:26 ` [PATCH v2 6/8] media: mediatek: vcodec: fix media device node number Kyrie Wu
2025-08-11  3:26 ` [PATCH v2 7/8] dt-bindings: media: Add MT8189 mediatek,vcodec-encoder Kyrie Wu
2025-08-11  8:07   ` Krzysztof Kozlowski
2025-08-16  1:54     ` Kyrie Wu (吴晗)
2025-08-11  3:26 ` [PATCH v2 8/8] media: mediatek: encoder: Add MT8189 encoder compatible data Kyrie Wu
2025-08-11 14:43 ` [PATCH v2 0/8] Enable video decoder & encoder for MT8189 Nicolas Dufresne
2025-08-16  1:58   ` Kyrie Wu (吴晗)
2025-08-19  8:26   ` Kyrie Wu (吴晗)
2025-08-19 12:36     ` Nicolas Dufresne [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=1ecd2849e727a0a1fed52ef0a96c4ef45d81da44.camel@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=Andrew-CT.Chen@mediatek.com \
    --cc=George.Sun@mediatek.com \
    --cc=Irui.Wang@mediatek.com \
    --cc=Kyrie.Wu@mediatek.com \
    --cc=Yunfei.Dong@mediatek.com \
    --cc=andrzejtp2010@gmail.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=arnd@arndb.de \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil@xs4all.nl \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=nhebert@chromium.org \
    --cc=robh@kernel.org \
    --cc=sebastian.fricke@collabora.com \
    --cc=tiffany.lin@mediatek.com \
    /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;
as well as URLs for NNTP newsgroup(s).