From: Deepa Guthyappa Madivalara <deepa.madivalara@oss.qualcomm.com>
To: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>,
Vikash Garodia <vikash.garodia@oss.qualcomm.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>,
Vedang Nagar <quic_vnagar@quicinc.com>,
Hans Verkuil <hverkuil@kernel.org>,
Stefan Schmidt <stefan.schmidt@linaro.org>,
Hans Verkuil <hverkuil+cisco@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>,
stable@vger.kernel.org
Subject: Re: [PATCH v3 2/3] media: iris: Skip redundant HFI_PROP_TIER updates
Date: Thu, 3 Dec 2026 16:16:48 -0800 [thread overview]
Message-ID: <96b13037-296c-4408-a6ab-4070c51351ea@oss.qualcomm.com> (raw)
In-Reply-To: <20261125-fix_dec_seek-v3-2-66c9889def2a@oss.qualcomm.com>
On 11/24/2026 9:40 PM, Vishnu Reddy wrote:
> HFI_PROP_TIER is applicable only to HEVC decoding. For HEVC, the driver
> programs it more than once while setting up the session, and the value
> that ends up in the firmware is wrong.
>
> First, iris_hfi_gen2_set_tier(), called from session_set_config_params(),
> sends the tier selected through V4L2_CID_MPEG_VIDEO_HEVC_TIER on
> HFI_PORT_BITSTREAM. After that, iris_set_properties() walks fw_caps[] in
> cap id order. TIER_AV1 comes before TIER there, and both caps map to
> HFI_PROP_TIER and define a .set callback. TIER_AV1.set sends its default
> value of 0 on HFI_PORT_BITSTREAM and overwrites the tier sent earlier.
> TIER.set then sends the tier on HFI_PORT_RAW, which does not restore the
> value on HFI_PORT_BITSTREAM. The firmware is left with tier 0 on the
> bitstream port instead of the selected tier.
>
> AV1 does not use the tier property. Drop the TIER_AV1 cap and its enum,
> and make iris_hfi_gen2_set_tier() read the value from the TIER cap. Also
> drop HFI_PROP_TIER from the AV1 input config params.
>
> Fixes: 2af481a459a4 ("media: iris: Define AV1-specific platform capabilities and properties")
> Cc: stable@vger.kernel.org
> Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
> ---
> drivers/media/platform/qcom/iris/iris_hfi_gen2.c | 11 -----------
> drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c | 3 +--
> drivers/media/platform/qcom/iris/iris_platform_common.h | 1 -
> 3 files changed, 1 insertion(+), 14 deletions(-)
>
> diff --git a/drivers/media/platform/qcom/iris/iris_hfi_gen2.c b/drivers/media/platform/qcom/iris/iris_hfi_gen2.c
> index 79bbd06ef8d2..3990e6562617 100644
> --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2.c
> +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2.c
> @@ -999,16 +999,6 @@ static const struct platform_inst_fw_cap inst_fw_cap_sm8550_dec[] = {
> .flags = CAP_FLAG_OUTPUT_PORT | CAP_FLAG_MENU,
> .set = iris_set_u32_enum,
> },
> - {
> - .cap_id = TIER_AV1,
> - .min = 0,
> - .max = 1,
> - .step_or_mask = 1,
> - .value = 0,
> - .hfi_id = HFI_PROP_TIER,
> - .flags = CAP_FLAG_INPUT_PORT,
> - .set = iris_set_u32,
> - },
> {
> .cap_id = DRAP,
> .min = 0,
> @@ -1856,7 +1846,6 @@ static const u32 sm8550_vdec_input_config_param_av1[] = {
> HFI_PROP_BUFFER_FW_MIN_OUTPUT_COUNT,
> HFI_PROP_PROFILE,
> HFI_PROP_LEVEL,
> - HFI_PROP_TIER,
> HFI_PROP_AV1_FILM_GRAIN_PRESENT,
> HFI_PROP_AV1_SUPER_BLOCK_ENABLED,
> HFI_PROP_SIGNAL_COLOR_INFO,
> diff --git a/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c b/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
> index fac61ece177e..9464543836c0 100644
> --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
> +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
> @@ -603,8 +603,7 @@ static int iris_hfi_gen2_set_tier(struct iris_inst *inst, u32 plane)
> {
> u32 port = iris_hfi_gen2_get_port(inst, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE);
> struct iris_inst_hfi_gen2 *inst_hfi_gen2 = to_iris_inst_hfi_gen2(inst);
> - u32 tier_cap = (inst->codec == V4L2_PIX_FMT_AV1) ? TIER_AV1 : TIER;
> - u32 tier = inst->fw_caps[tier_cap].value;
> + u32 tier = inst->fw_caps[TIER].value;
>
> inst_hfi_gen2->src_subcr_params.tier = tier;
>
> diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/drivers/media/platform/qcom/iris/iris_platform_common.h
> index cddab9a9c375..973a6f91a49b 100644
> --- a/drivers/media/platform/qcom/iris/iris_platform_common.h
> +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h
> @@ -135,7 +135,6 @@ enum platform_inst_fw_cap_type {
> LEVEL_VP9,
> PROFILE_AV1,
> LEVEL_AV1,
> - TIER_AV1,
> DRAP,
> FILM_GRAIN,
> SUPER_BLOCK,
Reviewed-by: Deepa Madivalara <deepa.madivalara@oss.qualcomm.com>
next prev parent reply other threads:[~2026-12-04 0:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 5:40 [PATCH v3 0/3] media: iris: Fix issues exposed during decoder seek Vishnu Reddy
2026-11-25 5:40 ` [PATCH v3 1/3] media: iris: Skip redundant decoder input config params Vishnu Reddy
2026-12-01 7:06 ` Deepa Guthyappa Madivalara
2026-12-01 9:15 ` Konrad Dybcio
2026-12-01 18:17 ` Deepa Guthyappa Madivalara
2026-12-01 10:26 ` bod
2026-11-25 5:40 ` [PATCH v3 2/3] media: iris: Skip redundant HFI_PROP_TIER updates Vishnu Reddy
2026-12-01 10:44 ` bod
2026-12-04 0:16 ` Deepa Guthyappa Madivalara [this message]
2026-11-25 5:40 ` [PATCH v3 3/3] media: iris: Use firmware reported count for output buffers Vishnu Reddy
2026-12-01 15:29 ` Deepa Guthyappa Madivalara
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=96b13037-296c-4408-a6ab-4070c51351ea@oss.qualcomm.com \
--to=deepa.madivalara@oss.qualcomm.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=busanna.reddy@oss.qualcomm.com \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=hverkuil+cisco@kernel.org \
--cc=hverkuil@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=quic_vnagar@quicinc.com \
--cc=stable@vger.kernel.org \
--cc=stefan.schmidt@linaro.org \
--cc=vikash.garodia@oss.qualcomm.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®