From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796116544; b=sIMzN9NiyAjrKeDGk7bldtbcFmUsdvXDNQwUO/Bq7HlmvVEemwJpOZUFLSF5mV0VOTRH eflUHb+PXe/IoiSVvXUpxqWfWEbCsfuDG0RoBH80R0u2leUhcg7kG7acbONE2tElK/5kJ Pmxm3JJygAWE8h9++7469Ec34YD8NqWCrhPCZ2MpcT2mqPoFcO4iHPaxKzYR5Z/vjEoA4 qHUYBCNI5cA/yKsIDZaZ43sEXdgPK6IRYemc6OcJ/g9dG8DBELwKVDehTHoF4ATSDTvMv 7sSCy0qQvjsmAhSd2ibfQSgqag23QFhnFT3a0v0NpCk/VOfH8vVHmDwcfG4Ovuggosg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796116544; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=ERV88ipZ860seBrLDnUOnvqfHOqWyx+ABSzD9CJXGDY=; b=G99sgDzp2bkg50FxX571VxA7vIyMdwnH1P2qnFA3Hs5BMXz8TaMWBQs+elabCRTIU6RQ ZfFo1RLzqZyfx9M95ay6LJjPq39FEhqaohb2Pp+0IpxotWrepzGAnNdG0J529GzehrljZ pep7DQC8u5r/BuHSRcz5tL2jzWcyPvuEYGdaDdcYAgQveWiO5U2R6iOAevV72JVQHF5QD a/z9YJ+SyWqHY/jvuZ3AxNwXlp6d/s606Osy16v3UIQIQyRx+7y4AN2f4RAxx1MNDw8tO Ipkst7S4p/VRFMLpmmtHumvkekDfwXnn+f1Vmp/0LN+eYCBr3/svldmAIddN+Gd0R5A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=iHAtcgFv; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=XxEI38H0; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2344606A329 for ; Tue, 1 Dec 2026 09:15:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C2344606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=iHAtcgFv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=XxEI38H0 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B157iCJ3936338 for ; Tue, 1 Dec 2026 09:15:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ERV88ipZ860seBrLDnUOnvqfHOqWyx+ABSzD9CJXGDY=; b=iHAtcgFvd2JSqvsf ylQFn5KMKAlNamhg1XBD3/Fnv+/RqurXjqENLcUtoviz7TyQCcDehLjst/c7+TED 4SkBX1UEAFExQQ7TgOEpg5TZNlZd6YqqSaT8apbVevbMXM3wA6B1NugAOA9gIojD o6KB+foAK4aufVnZ7l4X+LeDPnxJCpBrkrSDqUjCHL361KwczNY3InG3Zd4ixTbU Kgpy8R0THo7Uzt9pxmxO1N5q9y8OhIX5qXos5slouM0cSwtp/kbFyQl2exNeJjdv 9FT5BhzhLSWrp961a0Lv9IfTFyUJKWjU5x8VfSVnxD6kZTOjjaHJ7ixnSktkr0++ es6Uew== Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9qth0yh0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 09:15:42 +0000 (GMT) Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-9212b7c455fso24682706d6.0 for ; Tue, 01 Dec 2026 01:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796116542; x=1796721342; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ERV88ipZ860seBrLDnUOnvqfHOqWyx+ABSzD9CJXGDY=; b=XxEI38H0adpxi0UFfOwQagQSAMRnO5I4HlkXFFp1ka2f2CGkaakbbIpx19EkEQzD4V TkeSTFxGUHfohLQXGKWx3YQrdJx50aNuNO4DlmHJ620JidF0VRxUYqPtKN57d350Ha0H 05wIVwXwOPqXtgwjEoBih6VU6+cMCaCeaLohFIerSpgnoFlnRqUyUTK2fXjkbDJx0v0e AqOnNZ6HS2SL31ye3KBG45FX9/XNvZv6fPEHgHaqXg7ONF8sV46xTwocbwTzApUM0r1e a0z3WnYlvkwM9KIIzGdACgWOUOCtpT/oKQ2PQo0nSTCU0yrApTvjmZnTv334WNObY+rx /1lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796116542; x=1796721342; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ERV88ipZ860seBrLDnUOnvqfHOqWyx+ABSzD9CJXGDY=; b=M8gHFqYXehncOQ9o+3zJ0u/whCchFNV7nr8Q06rC9QtpR5jS3JONJxgyov9HgkC4Vq lRZ5LvM5P+XqOjNZ3g5mROdsNE1wloJiWyc96c2JNryCM54pcKGuiPGY1oCJcy6hdZAx BTHsLdneuFJTm7m8VxPmz+s8Ft/JLMywb2eru44wUFdpnN7hNOwO+qCCU55w+KH3IvJ4 R2fgmQguWf2yx/h2nIlfFs3mosmNpAI7md8nfdymt/rvYGuH4EEl9NVThjH1BtzV3xdk sNryklS8QK5mLtrvLJ+iXAzUALUSxfzdSpwNGcTjeQFFu6oCm4eWf3dzR2gJUWJTUIAJ q35w== X-Forwarded-Encrypted: i=1; AL+hErEzVzlN7ofFkhfw/WWRKfryl4uKpnJnycndKqQQvAO8+1232mKVtdz6rLDWd+voPUPxbx8DJ35YKZJ8Ne0=@vger.kernel.org X-Gm-Message-State: APuU4Z9WQONppU0Qp7/UDFIsYk+0wV5UMEIdJSK2EGomU+BB4x8YrbIM gAdVE7t7qvG7oaZTNVifZivSMyq16u1z/7v/xAESTK2hghTMoIZ/S7jpGMkF8/OmeqQbnOqlxJZ Bt2Nbf/Q+6uKpVKNQwoscfw9O8lwmnEKdoEVTpaAumLJ0cIEsrQRlUUOPsJwc21RHOdw= X-Gm-Gg: AZFdTZcL9k5dD/bb95cR5CmYjkVrdWV03D4moNpHXI/R/6ebGcr8HsdlgLaiUUnrq2h F5U/WEy5c21CxxJUnUCKySy2y+lWWb3JFHZHfvvXlXWIfP5WzsxzI8uZnGA3ZvhQEHX4i6nUp4F Q+2QRcxj9Z9R2vLPML47UejNi61KaNNA8vq2XTXp21+CatOQ1FRwoZl8SOzcN7pii925B6716oQ YPQGxnumCY0Z8DZmb3tNA/eTRC+teKmv4dxIL7SXNFdMHO5xUvCqPDaN3Vej3YKH/NtA61DQ4Pw tAslXaAkg8R/HjcPLax2XcTOTrtsD4FvN6So4wRipPMNFrgcUaBpv21bZQ9Hl01ymPxF478TYIt 97EnM4SfEwxK/it8MIzW62xwZ9f0768RQ4RMogYeXNM0k54eh7lMShbkdioPz/BIhs2LUZg== X-Received: by 2002:a05:620a:8f0e:b0:949:95d6:4038 with SMTP id af79cd13be357-949bab34d21mr5685156585a.5.1796116541972; Tue, 01 Dec 2026 01:15:41 -0800 (PST) X-Received: by 2002:a05:620a:8f0e:b0:949:95d6:4038 with SMTP id af79cd13be357-949bab34d21mr5685151885a.5.1796116541509; Tue, 01 Dec 2026 01:15:41 -0800 (PST) Received: from [192.168.226.72] ([178.235.128.140]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c51beef91efsm602010666b.14.2026.12.01.01.15.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 01:15:40 -0800 (PST) Message-ID: <8def4a25-da94-4de9-a75f-7a0380954f61@oss.qualcomm.com> Date: Tue, 1 Dec 2026 10:15:37 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/3] media: iris: Skip redundant decoder input config params To: Deepa Guthyappa Madivalara , Vishnu Reddy , Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Vedang Nagar , Hans Verkuil , Stefan Schmidt , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , stable@vger.kernel.org References: <20261125-fix_dec_seek-v3-0-66c9889def2a@oss.qualcomm.com> <20261125-fix_dec_seek-v3-1-66c9889def2a@oss.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: 697FyVjMotybxFW4UfPEAbmsKyl3w3eD X-Proofpoint-GUID: 697FyVjMotybxFW4UfPEAbmsKyl3w3eD X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAzNiBTYWx0ZWRfX8CE3t5SyevpK wChp3dmdrtZ312PUIFk+m7WIFmDXyHRN6ex1qGId0XnUWdJxMsovILi4obTrpEi2DyC8nkO1J49 CQzK0YSzdZuijPguOuizK/nmylRv2Xs= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAzNiBTYWx0ZWRfX/2hOZ+ZYRVvd 0D7pUEGC7rSFkX9zboCXWBLrGGBQpcU99CAgyCQ6CWxfhLNhIIKZSS7bEHG4G0X8LDej2+Bxpdq Pz3jz9QfQWu9ByAYRCYvyCyrrQRw8KdfdkNoP9zkmsJSbig8znnTqTemHuYaG75FCsQH8BTcT7w vUkJYU5BumH+0Ogddm+3DBacbFuULj2y3EFc2UkPXEJSzWemyZaZFcsBFYS0JTL5PqhYGIkWrsI LLirbZQgMfiSOpTzh2J441wVmzIMEeaGpka6A0t25bNzsGhKMIAp9hc7vfjANAH/d9qgtqjD+CA gBeMom7ycWsdEtT5JJJEtWjoZmeE/rypYdsV8VMj6xL4u6XhgPswGNPKdCYsntDkNqjilnVYIZU +MjK3DrfE4otJXSNT0BOpPsifJJ0obB/UZg/jO7MXxv30bdAcaxe/8u075vC+ngGiyufAkUykLw DmHETKRGjGpFU/tqQYA== X-Authority-Analysis: v=2.4 cv=MLn1C8Zl c=1 sm=1 tr=0 ts=6b0e903e cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=m7crKbNxQj6qPXEp_eoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=OIgjcC2v60KrkQgK7BGD:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 suspectscore=0 clxscore=1015 malwarescore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010036 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@vger.kernel.org >> Signed-off-by: Vishnu Reddy >> --- >>   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 Please fix up your copy-paste - missing space after the colon and two instances of @oss.q Konrad