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=VJGWqdUFwN/Haz0D3Xy9FDE26wZ9sCd8atZ6b9QDNnojnedipJn2Y+dmJEr6DjJHx8iH MniW+mKMlEWlDJbi2fViG1p+xF3GLkxg1JrO/+wiOmLjqhKFVCgkHmeULxv5KGdCOPM/+ jFK1/RuusaRm9adU9IU5YH8Wulm15Mwrdia0vvhcQKmW8s8P0HWT/s+uPIogi0AabHbYU bqLAb4eQS/LioH3jjLLYHzDi0bMc7H4juAccE9CPAVYq+VEaLmv51r4deh6nHRR0paYl3 HPkK/nSzXM9q7nQILAUiw9Nqmwf8ZVWWhzmpn5ik83Sl8uqMxz3fFU3PazeElw5rzFA== 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-Details-Enc:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=ERV88ipZ860seBrLDnUOnvqfHOqWyx+ABSzD9CJXGDY=; b=a+ClNahWQRGMSbESr5jGSHFvTji8Br5U5SI9559uTi0ZfrUYmiNiI6zOJKZN2LOj6/XP O3Afy2f0BfQoFN3gQkGJ0n4AxaIT10c6gDRd9N0Bun7SG7EVpS/ifqlo+DokY4/f7EGMm MlQs55pHe9zBwPwYONt3ZInv6qe1uONxHatBtL1nz16xbFuOMJfjCIqvQge4Qzj7/Io6P VRk3cGLvJSPEq0drRPM4Kyy9gCpVq+0/ZVFocWnE1BvYa7EPdaOlDBzl5Wr+4t6Rv96Ol 09ZvFEAC17IqzrUoXz6GxU9a0HBZB/8Gf8etRxrx7cunI/CvqmU34O1nT2ulKal2E6w== 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 C2314606A325 for ; Tue, 1 Dec 2026 09:15:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C2314606A325 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B18LR9m3573230 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-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9tng07w4-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-f72.google.com with SMTP id 6a1803df08f44-921288e18b9so20153856d6.3 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=DnUGP4bHrs4G1YWlFc34yEsxeRgNs3FIOC+N7WRhy8hP++6tJ/EQc+fE5lCAptH/Me uwSCBDmlEnsfg6YLJSwYvB0RHAn07VstzrU4Fa8TkGWx0bNUgC43Tpe7ioMsSnZrVxH1 D7sL+o1Z8b/BODvW/D9VN8syKaJws4gnzQ0tgTvsHoH8w7DAV7rV0N4eR7gGAsaAzHLp XBM4pQUbUQvQu7nTfC1DENXHcAcmvSXO9t20IH3mK/ZSpAubRUq+OGodAcbei5wntWER +NRQWoRZJTu559vz6HYjXQQMEB9NB4dTdrIs+QK7kklCKj+eTAJ1+eBVc2EHSt76mO24 Wg7w== X-Forwarded-Encrypted: i=1; AL+hErFC3Njfrgzw1zY8paVXM/Zh24wJQWFiRfNbGQSAnnhqWKQ3I+D364uCdBoLiXgOTp9TaeEx5oYcCq6WADC5@vger.kernel.org X-Gm-Message-State: APuU4Z9EouFKATzSQb5ynB3vsjXn3V/9yZdB519viife7WKgjForIJ85 7LciCUL25j7N0qGjchNDe/Da5YceI8yCECUpBcmxMuqUk2e9xMW186DEIEJO/YeCeIgoWLIw41h cUHXsi3GZxLAyYeNiE49QDGrVfUL079epGhc3FZy2J7UHyJ5oGOx5Tud3eppirljcw9Pr X-Gm-Gg: AZFdTZc8kcrtrWigmmlymvhoV3aCNVOIBCrFt+f95xN6F9Zjjma9myWupBY4nCL2Vmn yE8O5dPS9DVSMWGpA89gYoh482BHiqIpjKi+VUbY3Y/1iQxK6qMIxvUGFQ+HUnLb8ootif7zTye AesmrptaguJnQFAcdd+vSmfLmGYQtC0JNNgMBdA14utsauZnDPpb344IrDChkEXM7fbmbyG+3Fz PWgF9wS+LxZmsIgnF/V3KGJqdHJuBrvA47uRs6ThPgbuIP9hQQAsHa5DqqGBH5h79maaB9wlBC0 Qjo5p5XbHZKD6suNYR8S20QHw2ZJcREV0bkjhxuzLIrdo/wAVqJVYvUZ+CBjCpk/XAqNC6I9S2Z 9PQvqzbZfZUDprqpBq/BEOVvj3jqBCYJfu5Zvlo8vrg5BcOGt7jERk00eq0o/Sb3DWMU3zg== X-Received: by 2002:a05:620a:8f0e:b0:949:95d6:4038 with SMTP id af79cd13be357-949bab34d21mr5685156885a.5.1796116541979; 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-arm-msm@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: NA06lk8ELkXF-X5SEXy6zzFGY_Dz7v9z X-Proofpoint-GUID: NA06lk8ELkXF-X5SEXy6zzFGY_Dz7v9z X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAzNiBTYWx0ZWRfXx/cCZ28TXgTM sYgB9lVkmhaELbEEga5/gHBejFYd5QPLTPPWSb7l9zwN1Ew3l434x0I7a2dLujGqpJ1vYketxXE o759s7qFeSlaOz8kBFTwzx0IjHAhTlnybL7GktwKTvI+kK0n8/o4ccDJVhN014rBrzTJsIg+wB/ Nm6eJb1Xg6/98qiQ830fd4uH3soFrdvuhMLQLGUbcHXxx536Y7lsj2HaewJiBmRlWUcykzjDdbX Y97bXvWQ9VVgwbH1llTYQU90Xpa4XkD35hlEFFQ2Q0ZdHBp0I1itAjeFXBosdRQ4Tz22yOyL+gi YpIxvu8qQk0aESQLxVa9SdNLVlx3GK4RGs5ES2g8Hxm8FHWVkMoev8DfLp4GAXxd4nXEp3CjRCY 5adyfg5xr5BXPpOE6OV6lCXRL/cbXFrUkV2QuqTuv61DfFnHBjjbjtP88ZqxjhTnrkYuBqPT+uw QIPj/zkJo1ij8M6V6jg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAzNiBTYWx0ZWRfX6PLJlCUGdw0s Gm/rc4ZBPpBwKYtoSJzkxgD5F5o/3y9+U5MhbGN800Gw1jzsF2P8ChJfKHacHLIKV0xdIAEDZuH uXY4+jJz0X/bQzMVD4zyZOims4IJ8NQ= X-Authority-Analysis: v=2.4 cv=O5ysLx9W c=1 sm=1 tr=0 ts=6b0e903e cx=c_pps a=7E5Bxpl4vBhpaufnMqZlrw==:117 a=PRfkaYvzSr8QmIIGAkY2Sg==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=m7crKbNxQj6qPXEp_eoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=pJ04lnu7RYOZP9TFuWaZ: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 clxscore=1015 malwarescore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 adultscore=0 impostorscore=0 spamscore=0 suspectscore=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