Linux-mediatek Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Irui Wang (王瑞)" <Irui.Wang@mediatek.com>
To: "robh+dt@kernel.org" <robh+dt@kernel.org>,
	"wenst@chromium.org" <wenst@chromium.org>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"nicolas.dufresne@collabora.com" <nicolas.dufresne@collabora.com>,
	"hverkuil-cisco@xs4all.nl" <hverkuil-cisco@xs4all.nl>,
	"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-mediatek@lists.infradead.org"
	<linux-mediatek@lists.infradead.org>,
	"Longfei Wang (王龙飞)" <Longfei.Wang@mediatek.com>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"Yunfei Dong (董云飞)" <Yunfei.Dong@mediatek.com>,
	Project_Global_Chrome_Upstream_Group
	<Project_Global_Chrome_Upstream_Group@mediatek.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2 0/6] Add support for MT8196 video encoder
Date: Tue, 3 Jun 2025 03:33:42 +0000	[thread overview]
Message-ID: <5b7db0c0a766b77eb62318d212ce675bebce5d53.camel@mediatek.com> (raw)
In-Reply-To: <7a372c544c370d64b916a7092aabac555710d7c5.camel@collabora.com>

Dear Nicolas,

Thank you for your reply.

the failed case is VIDIOC_(UN)SUBSCRIBE_EVENT

                fail: v4l2-test-controls.cpp(1171): node->codec_mask &
STATEFUL_ENCODER
        test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL

because encoder driver is not register v4l2_ioctl_ops
.vidioc_(un)subscribe_event


The full report is below:

v4l2-compliance -d /dev/video3
v4l2-compliance 1.28.1, 64 bits, 64-bit time_t

Compliance test for mtk-vcodec-enc device /dev/video3:

Driver Info:
        Driver name      : mtk-vcodec-enc
        Card type        : MT8196 video encoder
        Bus info         : platform:38020000.video-codec
        Driver version   : 6.6.76
        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/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
                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/video3: 47, Succeeded: 46, Failed:
1, Warnings:0

On Fri, 2025-05-30 at 10:40 -0400, Nicolas Dufresne wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> Hi,
> 
> Le mercredi 28 mai 2025 à 14:36 +0800, Irui Wang a écrit :
> > This patch series add support for MT8196 video encoder.
> > patch 1~3: Add a new encoder driver interface for new VCP firmware.
> > patch 4~6: Add MT8196 encoder driver platform data.
> > 
> > About adding new driver support, the v4l2-compliance report shows:
> > "Total for mtk-vcodec-enc device /dev/video3: 47, Succeeded: 46,
> > Failed: 1, Warnings: 0"
> > The 1 Failed case is not caused by current patch set.
> 
> We really want to see the full report, simply reply to this cover
> letter with
> the entire report to fix it.
> 
> Nicolas
> 
> > 
> > This patch set depends on "media: mediatek: vcodec: support video
> > decoder in mt8196"[1]
> > 
> > [1] 
> > https://urldefense.com/v3/__https://patchwork.linuxtv.org/project/linux-media/list/?series=15232__;!!CTRNKA9wMg0ARbw!ne2002IRjhf6EKghCo-bSq_d-P_FNNtNZblQ1BHNJvvRejenXTbX2xvZNG93GyFWHSdydW_3ek9M_8kHU4BI_ZhTiofyWkQ$
> > 
> > Change in v2:
> >  - Add support for VCP encode process.
> >  - Add MT8196 encoder driver platform data.
> >  - Rebase encoder patch onto decoder's patch set.
> >  - Fix some review comments in v1.
> > 
> > Irui Wang (6):
> >   media: mediatek: encoder: Add a new encoder driver interface
> >   media: mediatek: encoder: Add support for common firmware
> > interface
> >   media: mediatek: encoder: Add support for VCP encode process
> >   media: mediatek: encoder: Add a new platform data member
> >   dt-bindings: media: mediatek: encoder: Add encoder dt-bindings
> > for
> >     MT8196
> >   media: mediatek: encoder: Add MT8196 encoder compatible data
> > 
> >  .../media/mediatek,vcodec-encoder.yaml        |  12 +
> >  .../mediatek/vcodec/common/mtk_vcodec_fw.c    |  19 +
> >  .../mediatek/vcodec/common/mtk_vcodec_fw.h    |   2 +
> >  .../vcodec/common/mtk_vcodec_fw_priv.h        |   1 +
> >  .../vcodec/common/mtk_vcodec_fw_vcp.c         |   6 +
> >  .../platform/mediatek/vcodec/encoder/Makefile |   1 +
> >  .../mediatek/vcodec/encoder/mtk_vcodec_enc.c  |  37 +-
> >  .../vcodec/encoder/mtk_vcodec_enc_drv.c       |  28 +
> >  .../vcodec/encoder/mtk_vcodec_enc_drv.h       |  15 +-
> >  .../vcodec/encoder/venc/venc_common_if.c      | 678
> > ++++++++++++++++++
> >  .../vcodec/encoder/venc/venc_h264_if.c        |   8 +-
> >  .../mediatek/vcodec/encoder/venc_drv_if.c     |   3 +-
> >  .../mediatek/vcodec/encoder/venc_drv_if.h     |  11 +-
> >  .../mediatek/vcodec/encoder/venc_ipi_msg.h    |  26 +
> >  .../mediatek/vcodec/encoder/venc_vpu_if.c     |  51 +-
> >  15 files changed, 843 insertions(+), 55 deletions(-)
> >  create mode 100644
> > drivers/media/platform/mediatek/vcodec/encoder/venc/venc_common_if.
> > c

      reply	other threads:[~2025-06-03  3:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-28  6:36 [PATCH v2 0/6] Add support for MT8196 video encoder Irui Wang
2025-05-28  6:36 ` [PATCH v2 1/6] media: mediatek: encoder: Add a new encoder driver interface Irui Wang
2025-05-28  6:36 ` [PATCH v2 2/6] media: mediatek: encoder: Add support for common firmware interface Irui Wang
2025-05-28  6:36 ` [PATCH v2 3/6] media: mediatek: encoder: Add support for VCP encode process Irui Wang
2025-05-28  6:36 ` [PATCH v2 4/6] media: mediatek: encoder: Add a new platform data member Irui Wang
2025-05-28  6:36 ` [PATCH v2 5/6] dt-bindings: media: mediatek: encoder: Add encoder dt-bindings for MT8196 Irui Wang
2025-06-05 18:26   ` Rob Herring
2025-06-06  2:19     ` Irui Wang (王瑞)
2025-06-05 18:27   ` Rob Herring
2025-06-06  2:21     ` Irui Wang (王瑞)
2025-05-28  6:36 ` [PATCH v2 6/6] media: mediatek: encoder: Add MT8196 encoder compatible data Irui Wang
2025-05-30 14:40 ` [PATCH v2 0/6] Add support for MT8196 video encoder Nicolas Dufresne
2025-06-03  3:33   ` Irui Wang (王瑞) [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=5b7db0c0a766b77eb62318d212ce675bebce5d53.camel@mediatek.com \
    --to=irui.wang@mediatek.com \
    --cc=Longfei.Wang@mediatek.com \
    --cc=Project_Global_Chrome_Upstream_Group@mediatek.com \
    --cc=Yunfei.Dong@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil-cisco@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=nicolas.dufresne@collabora.com \
    --cc=robh+dt@kernel.org \
    --cc=wenst@chromium.org \
    /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