From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796108802; b=mnZj5Y56+iyDa6LxhtEnUgy8yVL6ZogBZr88u5iq4VyPiNQBuI7rDoAK94s3WRIxVejt 5MW05I+x09H/vJJesBFbeV562uxeXzjBSx9TXHmqd3sybvLncijA32T24Q7nYxOHXYR4t S8FBbx84vdd+R4LDk5/WuDNLjADpMbRWHFzLyIzS1fReiA7XAr/7LZTYaTITDZnG6ueoc raiiJceSMwgKE0V0H6F8ApeA17lB9lTqpAoFxLfXZDdh1R2XIdlny6cFG0HcTUQG7arZG 9wub04bx1EuxAeVAuzd8nwmo59IiYeNcqMzmLDvqXpujJoP0mIz4Eaiv2wbkqd/lsGA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796108802; 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-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=fczJVoObOFnqRMZPMwAbSSN3CxNCiebFoISYH5iNnkQ=; b=f6Icd8Ch5RuvDvoM6zW/zk2TV1wGs5DL9/C/E+K2rwiFvbBZFv1hj8O5rTP4E3xhnqzF JtpZxFcOiW6oyX028Tix8JcjH4kCaZHBK62aH4roF1rnd4pgDCY0ZeGcqpdWgwydtXnrl X6ON+SM2+UD7YyOdnwUdcNtL3oFRpAXSGj3d24yqRynCxR0hji8Fr8nvl8NUHE9VSfmHw ijxLWpGLyv/DKr8IIOgW6UYGsZUWigpwFSIjbP0tTDislpfPlbm9V3aep0SNDnqoSf4W+ AZwsW9TQDGIJ4jvVs4ijdMwGSerBUXN3OSCWeydK+kLL2Vh6HpK3EfICCefdUji+KIg== 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 D6CBA606A327 for ; Tue, 1 Dec 2026 07:06:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D6CBA606A327 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B16mhse469114 for ; Tue, 1 Dec 2026 07:06:39 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 4j9sa202k2-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-3869ab689c6so1003701eec.1 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=szW7YBoaaEsD6e4onv5O64Uyo9PCKou5Ij8qfE4K4pr5tByv8UOzoRl1OWrq0Z9JHn VF58b5aUzPy70lTAsKedbZ3faRruHuGxeM5ec8O7+d26tPjW3r6qfRslHa3+smY/1D7M HFgDJclHGJn7dpnR8ta7fvQErELMfuF/jNALtEqVbc118LzCbNRcR6ekYoTf7RbJPoTX x0Tk7sEZ/HXf/WmG6408FaPz8n8xaDV4oqwrvEt7REErgR19NQ/zkBFypApHmLQL5z8T UkLz4aVEgiouYE+wfX2IMzeA5Y3RQp0OexZe42oREht+ujQ+Zrb77rk9lWnbMNHsRLHi 3hGQ== X-Forwarded-Encrypted: i=1; AL+hErFbuDCUj0eXn2Z2vJF4HTfgH877YkoCjhvsHeDo9XiNksZKFmB9oHEov06x6Yv4t7JudrDKVBGizCaVBVQ=@vger.kernel.org X-Gm-Message-State: APuU4Z8KbynubSptKsXdFby9Wcz9CWVUdIkRBlcVj6zGfksgxlZ/c2g2 GxvwR/nlWiVrzJpMR6Pdf7aZFceyMNUBzYE36KYF7C6yI0SGvsltH3Gf5y+5jKaAR3hYAoV0vau eoX+g/3YG0/bB6Pq3M2rqRYS3lcz09l5nwIvK8MVpOMSiE6LHByvcJnZa0DHU8KZnx2w= X-Gm-Gg: AZFdTZeBG6HCZasPKLzhqzSEbmOVvg1N0QyBovVVJcFUQGi/yRWZqEXJaqpZVl6+XcN nZmNJupiX8Pyr+jlAV4f/MZKm/DL2jR2h1+fPRQzECgc9CiFN4nQVg2gy/QKquXrrgDjgH1CqMg Z1KE5QKjA91XpHb5BRIFa9OuwRO1JiBFBaANrddoMGOh7Pzru6YI9TmnbvgTuQricca8RN6sGDI ZBUfEpFtgCxSZLcTi1SEcjcuavGD+78pqE490/Zd1o34CyI5YqXywekZaD3J6M4Gr3YeXZCwwcr TtH2Kdazk3Gdd5O4rSjb46mibkFj93Ls0xRQNvcnAhql4YIkSnHTKqdp8SvCotzcX5sYFt3yYb2 HTFpJ/PaWY+/vGCNCegCPSJT2bQTBXaKUN0ZLUN6snbjjxpPo5r/jErbUyETZOxvUbg+2vppjNJ gUsRhEyhe6CJWhRwg5xhdaj8RDwiPJj787NkPH X-Received: by 2002:a05:7300:16a3:b0:36d:5fbc:8c8d with SMTP id 5a478bee46e88-3856ef457b6mr51331502eec.2.1796108798547; 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-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: 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-Authority-Analysis: v=2.4 cv=A8/5rKWG 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=yx91gb_oNiZeI1HMLzn7:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=mlXsRdEEtOUYqRu7wIQA:9 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-GUID: 7OC0EbZu6Klzd-wnGb7Q7lePlsY2qUE3 X-Proofpoint-ORIG-GUID: 7OC0EbZu6Klzd-wnGb7Q7lePlsY2qUE3 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyOCBTYWx0ZWRfX/8UcCLKd2Rru kbTqe1q7DgrmK11YQ3sagvu7aJxAtcgyT1BFPwuybu3VGLXzZsVYbEmzwW9MrqcjdxVQ3k1d+Fi oKya69/jxkaozyRtTUnkc+KNnB2dk20= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyOCBTYWx0ZWRfX3H9YrbwmHCgT BM54IE1H2oUfWrgzYFhv6McxfoPgdu0Cu5zCsyPaHrlMCmTyjoYyv8VlZpVMBRd0ncT4E7vn/jU EJM4xShQ7HUVUbADm8M/GV/WvskhxObHrI9c3Fpf4BTQrHIQZBPnxLY4iwD57W/kxmsXjsX+a85 3FwJzqJbyjDWgUAU+PklG8h7bhGCdcU2lSMkzSPWY0poeELauPLRHbwEn//Me1euhrwx/0yVVGL u6PqG+s7Ibu0cnqKu2gkOeg9gg7NZHX27HsNfytcYpIS0p//q60FKLeGWlngIdjuUcuDqAKM7q2 fcjFagesmelx//zUdzLsHrQetR1I+MY7YKhRFQcXZPrQO5JruwIKhypX8b/EJEdhrLKi1gzi42W wB4VCO+4OTgKmyRWdb/tgi+s7NLJw7IeNuLp3L18omVU/E1kIznCZfFDx8B6ah8PbWwtlH0u0BV bnAYsGeoWBPkQgCrqBA== 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 impostorscore=0 phishscore=0 priorityscore=1501 bulkscore=0 spamscore=0 malwarescore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 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