Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796108801; b=JRgPVI4ozCPtiayeuvWDGGy2bzH+iMKGgx9vZiL8b1z9j+imOczwwYYbjWcrxASNT1Cv DI4/tQvBAqjsDoG/YqvzQ14nzEiwqN3U6F0UZjPD21EM3Wx0JTN0xRanIGAF+Vc8FKbZV fv49XMszuWvcFC1FnaMcQn3SGRmc9rHhIZA1bhDPOC+iqyrBWyz68UMqYzYDUPfSspUEn bAW8kWe42/2DxYQV6ZEZdV2XkJlt+YAgC85YCa43a6fT5yFkzjCt+glQtDcBEOfg+utxc yxV8wItKZRiRxtB50c09O0OkiYkK/pOzzTh/Aoff6A44ug7a4B/E4DOELD0idLrN2Wg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796108801; 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=fczJVoObOFnqRMZPMwAbSSN3CxNCiebFoISYH5iNnkQ=; b=bg5FmwrWFpyJk9VjD+rAATW2MtN+TNUrjkmj7J6fNEURG+enPrqKVd98+nfTSJR6qOfP At3LezVVxoayRLGCnjvmT3nLArH9Y2w4yc83kAILC9Ob3A6ICG7pDzZihioP6CmqRhiXH MNuKcnwImuVfjUwCraWsKacj/UKBvMh09vdkYqjDYkwEtdjiriYCjZ+2xlDHh480BVVpL Bhq7viXj8ALdZldw26opN4kPdQN2W8cZf3rbrr3Mtaqli4jCoYjKo5f7VJQ4Lhc4UnBNl DJE+pag2cNPbKgPpT3VjqHOEmd4ODeovJjA7MHyQB1I17dwWKHtl2UaaJhlx+CajvwA== 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=C5+bbkGY; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="SPX/K9HV"; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 D6BC3606A325 for ; Tue, 1 Dec 2026 07:06:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D6BC3606A325 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=C5+bbkGY; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=SPX/K9HV Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12LAh81043725 for ; Tue, 1 Dec 2026 07:06:40 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= fczJVoObOFnqRMZPMwAbSSN3CxNCiebFoISYH5iNnkQ=; b=C5+bbkGYAUNQlb2e fNYh46uU0jm/lH2G826fzczVTtUTq8zc0C3h5YRr/r1F1L3c0XouFN6crVzielWH 3qafnrxjtjcqpEW34hpzY3Cm0Y8gTtlTVjQeXUQDVNcRAuPGb/BbvSQiU1VV9ElK ZKg9oMAGpO/8FF0UHo6r+ErwGHIkGqNqRzGMagLWjJZkHR99nng5Eql45xYT7QuU MhxjyoyPtlB2i3HkLeHcOGB7PsGDQvgO2YUw2s0MDkmMJpZ+wADIR8qy0I32HzRS 0SOE1WockBwzsQoCxoEewKi0Vpvd2B2VZqvdRJNDZa77OeysOCQYFyPHXswxPBX4 7hLA8g== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9ke31bqk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 07:06:39 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-3869c59c491so792986eec.0 for ; Mon, 30 Nov 2026 23:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796108799; x=1796713599; 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=fczJVoObOFnqRMZPMwAbSSN3CxNCiebFoISYH5iNnkQ=; b=SPX/K9HV0lrOoODnJAHxltOWxUrW5gpkFglllffp5ytzgGeJi2zvd+WdQ+fdupMdyv cXGV3yDgI9kjk0IfyvMaqNE1ZkA2nMtFSBgw08buRXzsoLrg5Y9fkjy+ddRsq1w07omn XPD4X+KApfCGoWNCZoDeMuVXqQLgbMkGYRqMT01rpWzVnTQTXWA7oWJQWle9aimvTHbT EpQPm6n7wcdcjoGel8SUHDmcZtlsUL+mCveycqznKdgph9ff4Dfoy/LCyUmCKFMqeK5e cbX2qg7uzQ7bGvfiEfL6rxbXMk4D/5tb4yzGTTeICLv3eZor/OLeENiQ6Lbh7B+ZwNTP MWeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796108799; x=1796713599; 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=fczJVoObOFnqRMZPMwAbSSN3CxNCiebFoISYH5iNnkQ=; b=V52hUGRH+ZrhoP/O2ugXmx8mEouLj2HH5xMPa+Kfogy9p3TAzNa0P4ReJutEX0sjp2 24je9FBcoEPHwtDV1lG5LvuP/IlRvUvoHA8bNafCY3sUporP5BurGdPEjC9n9oJz1+iS 7HriDmngJLTF4vr0x3jn29i8DRQjA+GUpA1BegXBo9n+kfkKco5srisbtFu6TlkoQ3qI T1ucBwLuUHl293k/Z/0zrSScK9Oz28jKKTUhiYmoLA4G9xFjUyVQcAfQU4Ds/h3JPQsx RMfsoy966tNjp2siFbjmmY+6b2Hs3t8u5etgH/Jn4LisqnDmeQbNWBLW24c70pA+lmhI ghpQ== X-Forwarded-Encrypted: i=1; AL+hErEoCi+ctjN0OIwWAGOcXSolT38drL9sayDitw35ftr+7aQwWP0uVvwX2DneBBySVy6nrbmWE//vjouXK9rT@vger.kernel.org X-Gm-Message-State: APuU4Z+S7r0KvrAV2XILwZq6QB3SjDLDBu+F1kgolsXJFPPl5xhXn/LJ yQdQ8G1L6FIGS+iUmeOErE0XAe/QYsdF6f4eMpSYjsNRV+qa78QfYrAJ404n28umVDqQ6eQw6L9 eHelG4Y96P2X4/D8zAQe8P28T+fLbnhNvVUiK9s+v8VWigxcxX2XNj+IjE/QYrzkCFC/G X-Gm-Gg: AZFdTZfbPEW04WJobNBg1uMrxNE/QKg5ZitNd+i0dEZeL2X0nPD/Hawgd8IFRqtA8V5 NtGduXj/7178fjv6Sy0dJSapHBKRKPqyV/EVww3er5OB1KshAMjx2Lb8DGkOEerpYvv0ThkEB8x V1C//fMz8GHtO31AEYvmcteQpQSfxFmbgIM8yS1ccsD4RbnJIMAkzxEXJ9z1NsW4KEBSEsJJMjR lZIpqohQGuCPKYVq6PaRIvG8g2uFhyCB7scAAPaMkdCU9fwnzLLawKZptDrr+RfmQBElHMRx5AJ XLSgzF4rfGYCG/nYytvvSn33zOEDW0DvTUmKao3so1e8VnhL8a9MmU5AuE2WJ0I2VjUVBe7RPxP IL77L+tSxkyOPnbZhaN2ok5C99w8VFo0o0xXzh/fKm8Idx13KvEKndAZCnUQswi5ZJQpEUgW8FB Tuq8RsDOR2zxqRqP4UMb9kCi8d8O3DoECvI/+4 X-Received: by 2002:a05:7300:16a3:b0:36d:5fbc:8c8d with SMTP id 5a478bee46e88-3856ef457b6mr51331508eec.2.1796108798568; Mon, 30 Nov 2026 23:06:38 -0800 (PST) X-Received: by 2002:a05:7300:16a3:b0:36d:5fbc:8c8d with SMTP id 5a478bee46e88-3856ef457b6mr51331290eec.2.1796108794451; Mon, 30 Nov 2026 23:06:34 -0800 (PST) Received: from [10.110.62.177] (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385666e7fc3sm94146367eec.8.2026.11.30.23.06.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 23:06:33 -0800 (PST) Message-ID: Date: Mon, 30 Nov 2026 23:06:31 -0800 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: 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: Deepa Guthyappa Madivalara In-Reply-To: <20261125-fix_dec_seek-v3-1-66c9889def2a@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: gSBpD71VTLfmovr5SOX1ESn5_M7jmQyd X-Proofpoint-GUID: gSBpD71VTLfmovr5SOX1ESn5_M7jmQyd X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyOCBTYWx0ZWRfX3Q5UcZE7aWLy itzQ+Uxm7jPGwtGRVNTX+dlTUYLMxUKaKd2J9vgkLtFneQU5sUNIuhbOI24Lquyk98hYxB5PHVV uVhiBaPe41hk8pGemT+LsB7rJxTUgxB7XuSiEBz0XVaemqIb5TNeGKzdiqizmvktxzs9t2PRAcl kXr7JE8yvChz8/YulAxTe72ZKjOJr7PPjLvjoIBffjnyJJzKI+EEjgwMcKOo8DB2vmjgRPzUtxO PoSa+liO0l/9zcRnuzAYYo3lk+vovTKmkXZiP/esQyeKqyUxuaReDp3EbiUuItscY7/kKuJ0sn7 JxHOnkvRzmqMM2ND8ZMAcmc84SYBBqk2xOYnrkONyTw1FzjkIPv0EE6epo3ZZyFi/ZWZZuyCFof 9OsPzzj/s+3CW9rajHnQcYbg18V9h/1xI8npzas4H6iIuwoubUJomBgIO+M+M0ZwsNtLifRywO4 Q2fCX/AeuUiBqIe0v1w== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyOCBTYWx0ZWRfX8f8a5fghm6EH DwDqVYgJWgsq2OGAN2AfOpML6cdNZivuv/0+1AjsYQsiTGow/Zp1xFXopVzpVg+UAxDadpF8BXC dyFhHHHgii2R7vjupD1wpztuVEbW9Qg= X-Authority-Analysis: v=2.4 cv=H8BOUOYi c=1 sm=1 tr=0 ts=6b0e71ff cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=mlXsRdEEtOUYqRu7wIQA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5: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 spamscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 adultscore=0 impostorscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010028 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