From: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
To: Xilin Wu <sophon@radxa.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
dragon@radxa.com, Chris Obbard <chris.obbard@oss.qualcomm.com>,
Deepak Sikri <sikrid@qti.qualcomm.com>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Loic Minier <loic.minier@oss.qualcomm.com>,
Jason Pettit <jason.pettit@oss.qualcomm.com>,
sakimidare <ssmzhn@163.com>,
Nicolas Dufresne <nicolas.dufresne@collabora.com>
Subject: Re: [PATCH v2 1/5] media: iris: support decode-order output on HFI gen2
Date: Fri, 27 Nov 2026 18:51:17 +0530 [thread overview]
Message-ID: <79980587-fe29-4b6a-a1f1-0cfba7da492c@oss.qualcomm.com> (raw)
In-Reply-To: <20261127-iris-va-fixes-v2-1-385e8636c22d@radxa.com>
On 11/27/2026 5:10 PM, Xilin Wu wrote:
> Venus implements V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY_ENABLE and
> V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY, which let a client ask for
> decoded pictures in decode order instead of waiting for display
> reordering. Iris does not expose them on HFI gen2.
>
> Add both controls for HFI gen2 decoders. Enabling the display delay
> with a delay of zero, the only supported value, selects decode-order
> output through HFI_PROP_DECODE_ORDER_OUTPUT. Display-order output
> stays the default.
>
> Tested-by: sakimidare <ssmzhn@163.com>
> Acked-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
> Signed-off-by: Xilin Wu <sophon@radxa.com>
> ---
> drivers/media/platform/qcom/iris/iris_ctrls.c | 8 ++++++++
> drivers/media/platform/qcom/iris/iris_hfi_gen2.c | 20 ++++++++++++++++++++
> .../media/platform/qcom/iris/iris_hfi_gen2_command.c | 18 ++++++++++++++++++
> .../media/platform/qcom/iris/iris_hfi_gen2_defines.h | 1 +
> .../media/platform/qcom/iris/iris_platform_common.h | 2 ++
> 5 files changed, 49 insertions(+)
>
> diff --git a/drivers/media/platform/qcom/iris/iris_ctrls.c b/drivers/media/platform/qcom/iris/iris_ctrls.c
> index 4f2633bbb49f..0b59fc79971c 100644
> --- a/drivers/media/platform/qcom/iris/iris_ctrls.c
> +++ b/drivers/media/platform/qcom/iris/iris_ctrls.c
> @@ -163,6 +163,10 @@ static enum platform_inst_fw_cap_type iris_get_cap_id(u32 id)
> return SLICE_MAX_BYTES;
> case V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB:
> return SLICE_MAX_MB;
> + case V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY_ENABLE:
> + return DISPLAY_DELAY_ENABLE;
> + case V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY:
> + return DISPLAY_DELAY;
> default:
> return INST_FW_CAP_MAX;
> }
> @@ -314,6 +318,10 @@ static u32 iris_get_v4l2_id(enum platform_inst_fw_cap_type cap_id)
> return V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES;
> case SLICE_MAX_MB:
> return V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB;
> + case DISPLAY_DELAY_ENABLE:
> + return V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY_ENABLE;
> + case DISPLAY_DELAY:
> + return V4L2_CID_MPEG_VIDEO_DEC_DISPLAY_DELAY;
> default:
> return 0;
> }
> diff --git a/drivers/media/platform/qcom/iris/iris_hfi_gen2.c b/drivers/media/platform/qcom/iris/iris_hfi_gen2.c
> index 79bbd06ef8d2..7a1204da17ca 100644
> --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2.c
> +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2.c
> @@ -1106,6 +1106,22 @@ static const struct platform_inst_fw_cap inst_fw_cap_sm8550_dec[] = {
Take care for adding other platforms too
> .flags = CAP_FLAG_INPUT_PORT,
> .set = iris_set_u32,
> },
> + {
> + .cap_id = DISPLAY_DELAY_ENABLE,
> + .min = 0,
> + .max = 1,
> + .step_or_mask = 1,
> + .value = 0,
> + .hfi_id = HFI_PROP_DECODE_ORDER_OUTPUT,
> + .flags = CAP_FLAG_INPUT_PORT,
> + },
> + {
> + .cap_id = DISPLAY_DELAY,
> + .min = 0,
> + .max = 0,
> + .step_or_mask = 1,
> + .value = 0,
> + },
> };
>
> static const struct platform_inst_fw_cap inst_fw_cap_sm8550_enc[] = {
> @@ -1818,6 +1834,7 @@ static const struct platform_inst_fw_cap inst_fw_cap_sm8550_enc[] = {
> };
>
> static const u32 sm8550_vdec_input_config_params_default[] = {
> + HFI_PROP_DECODE_ORDER_OUTPUT,
No need to add them under these array, which gets picked as subscription
"iris_hfi_gen2_subscribe_change_param" property by driver to firmware.
Please use .set callback to set these parameters.
Regards,
Vikash
next prev parent reply other threads:[~2026-11-27 13:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 11:40 [PATCH v2 0/5] media: iris: HFI gen2 features and fixes for VA-API Xilin Wu
2026-11-27 11:40 ` [PATCH v2 1/5] media: iris: support decode-order output on HFI gen2 Xilin Wu
2026-11-27 13:21 ` Vikash Garodia [this message]
2026-11-27 11:40 ` [PATCH v2 2/5] media: iris: allow larger capture buffer pools " Xilin Wu
2026-11-27 13:31 ` Vikash Garodia
2026-11-27 11:40 ` [PATCH v2 3/5] media: iris: Add deblocking filter controls for " Xilin Wu
2026-11-27 11:40 ` [PATCH v2 4/5] media: iris: Preserve timestamps on error buffers Xilin Wu
2026-11-27 13:44 ` Vikash Garodia
2026-11-27 11:40 ` [PATCH v2 5/5] media: iris: Recycle decoder buffers for non-display pictures Xilin Wu
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=79980587-fe29-4b6a-a1f1-0cfba7da492c@oss.qualcomm.com \
--to=vikash.garodia@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=chris.obbard@oss.qualcomm.com \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dragon@radxa.com \
--cc=hverkuil@kernel.org \
--cc=jason.pettit@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=loic.minier@oss.qualcomm.com \
--cc=mchehab@kernel.org \
--cc=nicolas.dufresne@collabora.com \
--cc=sikrid@qti.qualcomm.com \
--cc=sophon@radxa.com \
--cc=ssmzhn@163.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
all inboxes | Powered by JetHome®