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=1796149065; b=OLGlS1R1jaG6gRMykXNLIb2q2/AapRrXUEaqK4zBEwsAXGreNDvRGdSl23camtvX890X mpS7T3hF55CYiyfJqht/SZnydaRMAAv9XwfYkeSjmE3BqW18RbwndnAXBIZBay6YU1hn8 pBvTRAeHJpxEws5QH6jN5Q22UwaGe8nunbmfyHmU6bXCRmRSAWbCmcK63LmbGhJUhUbbn VAqUauAN/zVP0dAWeP1l54OInzz8hwdpNykHbbO6lmVQN+8zbKBWoZrjlA8QVCaj9rYcd 2urlGapLlAQIm5lkJnNeETURllX/IJgeL2eHkl3sqVa96ORe4RZO4GrXnOai05padtw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796149065; 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:From:To:Cc:References: Content-Language: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=6Q0sR3mIG3a3CWA1rtOtAJTI+QTQVO5MCLbh2yzZ6FA=; b=tCXcsRZ07/xLunTk26c9D2Ouo4/SoM6mfC6ihp+6wkIZm+3+4f52WAnwUfsi4v7URvWi zCPLjvym3qta5PekO5RsunK6E5X4fiSQ//6/HoHzf/tzwenx/kS/fVqn1JFBIXHgN0qua sMzLGpazMN2Y+hfHOGIXEAXjfmzOdFxFJRdCzFjDv2frzGeZgwNr8eHMD4XsgWBLBn/1y UWIkExyZKyNdUg6qYdTGpxWguC1FuntQJXj7cMsQAFLTAQBAjYqNfNzWVi7fZ5kIo0oEn E60oXrsZV2GW/+9nKyWsSvao1yTDs9joFdOiv5VM5dmStVvwJB8hZnGlpbbRddLL7kg== 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=LYaO8NZv; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jNImG46A; 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 3098E606A320 for ; Tue, 1 Dec 2026 18:17:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3098E606A320 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=LYaO8NZv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jNImG46A 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 6B1F6pq91079514 for ; Tue, 1 Dec 2026 18:17:44 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= 6Q0sR3mIG3a3CWA1rtOtAJTI+QTQVO5MCLbh2yzZ6FA=; b=LYaO8NZv3Eu0PMub pvFdydQGVCJHSXXMxq9JvrK1UcZKKu4NLR5jLrTT4R4mN6ev+mCA9Pg02+BRlXbj ZjYGTK74sK1cPWjzasBfy4DNudTkjF2zE6akvMIGku28oU8A0KSWjikb9AoYDPSn qoYxHXlNU9jwEYIJPq4OlCbE6v517jOdtshGE2eZAP8h+jbSUlzEqRwrwCt6FF3i tu5q4H1S5RO7KJWLDTbG50Thi7pnqpQY9LYBXJ89LfJ6UiMprpeVUt+2RPEzCjcE 6rnubJzX44DBbW8gFA8OhywPdUkVg33SkthVAq8VpEhrYCB7sR8Tq7rwTexOJynb ztGNwg== Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9qth3bss-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 18:17:44 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-3869c59c491so860699eec.0 for ; Tue, 01 Dec 2026 10:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796149064; x=1796753864; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=6Q0sR3mIG3a3CWA1rtOtAJTI+QTQVO5MCLbh2yzZ6FA=; b=jNImG46AAucq+CpFmyuPypLt984E5Bvq+21lBfV9Py2WzQRl9v9R6fD27EFYgyLzil r92wCKdxY8vT2QcEBxWcFXsuVHlWkB09kxMylja1K8JM+yqa8Op3bX41ATB6/Wl1MRIe 6JPv7Oo89Oa6VBvukCYmrgjKcQfsMqS3iXczo2ohn5i+EUlxOhsf1MzrAUgmvYTzefwj P/dbcJCWSMp40hVOdnO2SCvxpzjaCzx1Tvf3FdqRE35NXgWSPeWZ0EbIAYF3s4pmRCnZ LZlhsQxX0pe5MikQv6WehourCobfZ1HM6CfOsSGg3+pPUcwnL3i3zWTFxVZ7Be9T0K2m 3dmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796149064; x=1796753864; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:from: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=6Q0sR3mIG3a3CWA1rtOtAJTI+QTQVO5MCLbh2yzZ6FA=; b=Q1KfjemIwolluWhgv6FdjTzMf0OWOD9IERLdvui1nHBt4+PJ0lSHrXVbjAVSBn8JPz nJDcqFbL2MqxutDvMyrbTWXGVD5n5GiJlMHXtPBSMDxdu7f+B71jBgsAIfqBAakYum7R MIZyCedEML07vvpP/7KG1mOtumZ3/a6CsaXFgJa73NBYxBTIajHiaS2wCwKODpkzEzuc SQAwNl6ASM4211SOBpMVBOC4TnyC/QBV9xckyu6zklEjwemHhFJTN1Aucwtn2AXVLF1h T8kGjHEiwl2SAvz7jtej6oT9bLc1CFEaJ1R1NDLu2iAyfXasiyh/Gf1/z55YZqKmYvzE iNQA== X-Forwarded-Encrypted: i=1; AL+hErF9UF98OTpWlczqlXNDFSX+ZSPQMEjbE0izTgSpLmgmTb8ReWZv0A6hxc9EPOPbi4yKiuuU5i4bwQBQN+0=@vger.kernel.org X-Gm-Message-State: APuU4Z/S1NNTFzdRmJ2nxoF+euLuiWCEYb2YLcwRm1wJW2WiWsMnTG0/ 8MtlYDEic/2UjXSjyrJCwUwm1YtfqHLC3IkS63UE242zB4ABIKEHsXB0xM2Jc8BpfnB2OfIEbs9 urAEEqIlYdB0u9ZxfidNlvH+nvaTyy52Ndjmvq7ne/94M5oKT9pjopQY6mQJoaQSCZ9A= X-Gm-Gg: AZFdTZe1SbGbn/fHg85HowkLV9dNXUlzBnkFVRK9LeBeiqsQdObeTCDdAhJMz3xAFTo PDmsdia2huAc2vqsOU5j9/UbzE9WovWNi7yabeLb4JQCAg6tc0WLlzJWJz7XeqSOtPcfncc7IEs /SXBVFZRiSWvXLJ9+OjEaqtklXN/VWTYAx+2iHRA3KnPCviqsJC2wKeBdFTiAJVNcjgwE9c8PpO +d+vFVO9EnDsGXmKh4qRxNA880wfoDg9p9B8nHf//ZPYbgJ4EGEZ0o/ggoUsAaaC1y6IX1I23mQ r+pcu8mpp+wnU6NGtSBDGqHMIOqQMzc2W8N+gkWcqeSeKavDDQvPOmPA/JI5F4PIIX7DEpZ6zYS v3DJ+yg1YluMvexHuHLKdWErr5Gi7svAS/Ebo8v5cB3ZFP6kLwwXBWrS+YUTlBzsRs/a3myomKy MX3kdwi1HPxASr4ZGclPkmkO7aSlA+kzvlnoU= X-Received: by 2002:a05:701b:4554:10b0:1b5:4596:8371 with SMTP id a92af1059eb24-1b5566e72c7mr53515895c88.0.1796149063450; Tue, 01 Dec 2026 10:17:43 -0800 (PST) X-Received: by 2002:a05:701b:4554:10b0:1b5:4596:8371 with SMTP id a92af1059eb24-1b5566e72c7mr53515846c88.0.1796149062779; Tue, 01 Dec 2026 10:17:42 -0800 (PST) Received: from [10.110.62.177] (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55684c85fsm136182668c88.14.2026.12.01.10.17.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 10:17:42 -0800 (PST) Message-ID: <1fafc346-d7a0-4fcb-b5f8-1aea9ddd29d1@oss.qualcomm.com> Date: Tue, 1 Dec 2026 10:17:40 -0800 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 From: Deepa Guthyappa Madivalara To: 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 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: 5k5RyYZYnbhTbeycZ7HIcE2t3A1OGAoA X-Proofpoint-GUID: 5k5RyYZYnbhTbeycZ7HIcE2t3A1OGAoA X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDA3MiBTYWx0ZWRfX9KqELmxS1B6y fQ6ln3g8dRt92NRsGKKypXhdmEbu+QlU4IeW8ZeOj4ctzY7V/tx1L2jiVaaMQOgsHCRHJqbVAp5 CLka17zMyrMPWFaDrjNuBIRzvu0jb+0= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDA3MiBTYWx0ZWRfXxqxLXTa8PRcV 4QzlypuXGeeHzzCINZoiQEUWlWglrkubTOeUp2ndNZhOEGWgKTqVLvLtqtQ7XgZsAgk6nOTU2H3 Vg/d7/AX/JsjakBtZxxBu6MlITif+uVyNqgvEjlArUI6hXD7z/innTKX6sDIxV8U/fceyLpSM81 zrfjHdZTO3eMfYFZZsMnU987fCchXZRV00yG12Y3AJM+iKRcmKnL5DoW3S99Z97IClkYA793Dwc mZiTi5bbSuTLtSJoea5mec14sFpUD1S2GHXV45J+c1to2H7gnoOKlfDgxqH2LNnDc5ePgfkqW3b H9rBHiXKTWhnWSEwKAwNCsfXchFGSjpjt2fo4cvoAhMomWv9OXf55IKyY96cHA19CruggaBr0lI N7MDOjYtWjGmFF7+Z2Op8R7+pa8CYLNcPz9tEkm+yY5+KOgPVFADg8Hf1j2gjALLHbMejNKgnCz IG/GEK0m16MbT++tOEA== X-Authority-Analysis: v=2.4 cv=MLn1C8Zl c=1 sm=1 tr=0 ts=6b0f0f48 cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=JYp8KDb2vCoCEuGobkYCKw==: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=Epc6dumJ1TQJ2_HeESsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=6Ab_bkdmUrQuMsNx7PHu: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_03,2026-12-01_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-2612010072 On 11/30/2026 11:06 PM, 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 >