Re: [PATCH v3 2/3] media: iris: Skip redundant HFI_PROP_TIER updates
From: bod
Date: Tue Dec 01 2026 - 05:44:53 EST
On 2026-11-25 11:10 +0530, 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.
This paragraph is still a bit too much - it smells of LLMese. I genuinely
think a more just natural language log written by a human run through spell
check - or with minimal LLM fixes for syntax and grammar is best.
Or better yet retain the idea of giving the explanation but zap the
prose-filler.
Bullet points
- A
- B
- C
- iris_hfi_gen2_set_tier sends V4L2_CID_MPEG_VIDEO_HEVC_TIER
- iris_set_properties walks fw_caps in cap id order
TIER_AV1 comes before TIER
Both TIER_AVI and TIER map to HFI_PROP_TIER
- TIER and TIER_AVI have individual .set callbacks
- Therefore when either TIER or TIER_AVI is set HFI_PROP_TIER is
called ?
What's the relationship between V4L2_CID_MPEG_VIDEO_HEVC_TIER and
HFI_PROP_TIER ? The commit log doesn't describe
I don't know I'm not capturing the full flow here but you see what I'm
getting at.
Less is more you want to provide information without filler.
> 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@xxxxxxxxxxxxxxx
> Signed-off-by: Vishnu Reddy <busanna.reddy@xxxxxxxxxxxxxxxx>
Once the commit log gets translated.
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
---
bod