Re: [PATCH v3 1/3] media: iris: Skip redundant decoder input config params
From: Konrad Dybcio
Date: Tue Dec 01 2026 - 04:15:49 EST
On 12/1/26 8:06 AM, Deepa Guthyappa Madivalara wrote:
>
> On 11/24/2026 9:40 PM, Vishnu Reddy wrote:
>> When a decoder session starts, the driver sends the input configuration
>> to the firmware on streamon of the output plane. This includes the
>> aligned frame size and the default property settings. The firmware
>> parses the frames and raises an input port settings change (IPSC) event
>> if the stream properties differ from the programmed values. The capture
>> port is not started at this stage. The driver forwards the event to the
>> client as V4L2_EVENT_SOURCE_CHANGE. When the client then streams on the
>> capture port, the driver resumes the input port, starts the capture port
>> and decoding begins.
>>
>> On a seek, the client stops and restarts the output plane. The driver
>> sends the same aligned input configuration and the other input
>> properties again on the same session, and the firmware raises another
>> IPSC event. No PSC last flag is sent after this, as the stream
>> properties are the same as the ones already running. The client keeps
>> waiting for the last flag and hangs.
>>
>> As per the firmware, the input configuration parameters must be set only
>> once per session, and not on every stop and start of the input port. Skip
>> sending the decoder input configuration once the input port properties
>> have been programmed, reusing the existing ipsc_properties_set state.
>>
>> Fixes: 025398e9121c ("media: iris: subscribe parameters and properties to firmware for hfi_gen2")
>> Cc: stable@xxxxxxxxxxxxxxx
>> Signed-off-by: Vishnu Reddy <busanna.reddy@xxxxxxxxxxxxxxxx>
>> ---
>> drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> 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 388a36ff2b07b..fac61ece177e9 100644
>> --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
>> +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
>> @@ -668,6 +668,7 @@ static int iris_hfi_gen2_set_super_block(struct iris_inst *inst, u32 plane)
>> static int iris_hfi_gen2_session_set_config_params(struct iris_inst *inst, u32 plane)
>> {
>> const struct iris_firmware_data *fdata = inst->core->iris_firmware_data;
>> + struct iris_inst_hfi_gen2 *inst_hfi_gen2 = to_iris_inst_hfi_gen2(inst);
>> u32 config_params_size = 0, i, j;
>> const u32 *config_params = NULL;
>> int ret;
>> @@ -693,6 +694,10 @@ static int iris_hfi_gen2_session_set_config_params(struct iris_inst *inst, u32 p
>> {HFI_PROP_AV1_SUPER_BLOCK_ENABLED, iris_hfi_gen2_set_super_block },
>> };
>> + if (inst->domain == DECODER && V4L2_TYPE_IS_OUTPUT(plane) &&
>> + inst_hfi_gen2->ipsc_properties_set)
>> + return 0;
>> +
>> if (inst->domain == DECODER) {
>> if (V4L2_TYPE_IS_OUTPUT(plane)) {
>> if (inst->codec == V4L2_PIX_FMT_H264) {
>
> Reviewed-by:Deepa Guthyappa Madivalara <deepa.madivalara@xxxxxxxxxxxxxxxx@oss.qualcomm.com>
Please fix up your copy-paste - missing space after the colon and
two instances of @oss.q
Konrad