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=1795585272; b=D7gWs5iOWTM7H6606ep0mNiZTYMratJiXKhUj6fZ8XVz/PRarLaH8OvJH/GzX7x9Cjy0 yHIanlNMwzRGBouaa/MP2THtdEQj5mu80PRQF//QDCZgvbUzHsMmIxCHdbHweC0KqJ+Dr pVS2a4+ZZtJz6lGHJ2zJQ/39bx20LphO5XafEdMb4exu7HNc7TtV10IUBYwIg0vHnyGY+ Y0e2GppkcQlhByQPFwf9PV4MR9Qi2AZmoZ3ZF81Z6jjrbLFSRRkeAVp9fIU/bKiPj9Fwi t2bb0rVyUt7xurVqSpIjRy1WGNZJyILoUfD+Bs53d1mZSskSsw5LAnux6LFhQkFz1Pw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795585272; 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:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-GUID: X-Authority-Analysis:X-Proofpoint-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-ORIG-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=WOUYKmrQld8mCVl16/QeMoDjRGy0Iu9lf4Huq0GJo1I=; b=uny/Jezb4biAgT1jtw5IrJlkrDdTbY02mCiPZycxX5nC10Ip2QIGYZwEWBTHXtauA/gO Ik3+u51s44fVlx9ETCwfNoYwimltZIXiQjIF24d4WCdRcGicEg27MQ6nQgRFpQD8p/0J2 sxzE9q+8QakMMp47hJOpYunl7oUgAGnjz92Q7c3FvT/YUIsJVBOb59tcpNVhDLn4OxqGx yteDRE9Q8OpKIc/VKWpJztn7m5th3c16em8FaBmE1XDxVHiJaxK69m6YKu80MX0MTf136 BvdgZoH75BwAMpHM+AEpP7GFt/GZie7JKY9oi59104fJUFv3B6jdXSX5C458xnV5uzA== 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=UaY22IWK; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=LiDMreLb; 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 A1E78606A323 for ; Wed, 25 Nov 2026 05:41:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1E78606A323 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=UaY22IWK; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=LiDMreLb Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AP2BWW72597392 for ; Wed, 25 Nov 2026 05:41:10 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= WOUYKmrQld8mCVl16/QeMoDjRGy0Iu9lf4Huq0GJo1I=; b=UaY22IWKFO3grm6R C2APnp2c7le9G46I+snK8p5oWbtOlM1gFBPJOTSeXQTCX66Zk5yqM3IX6sWLd02d XVRlBip3vi6yL65uZc7/+Yn184pi8SPpy9ixD59gRv2SaS43tx9oNSOBtPwMZthW abPYU3RqE9KFKJSnvXtcTV8onVqruUCbT9EJyGG2YkE8XC2+SMt7hkY/WzM+yVdn YrE8116rmYd3ePr9CaKZoiT/7EkGWIcCB3ia9JvHno9DQUFojSAOEaUAS+H6bRQt SjVRMj1JNxXiYpxMtQ2dAtPFdjOK5NtfY0XvWBf0+bpwXccYLzzYiQkC7EJZ4Ldg 3DOUhA== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j5gns9vpv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 25 Nov 2026 05:41:10 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3b3fd219d07so4330062a91.3 for ; Tue, 24 Nov 2026 21:41:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795585270; x=1796190070; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=WOUYKmrQld8mCVl16/QeMoDjRGy0Iu9lf4Huq0GJo1I=; b=LiDMreLbNVkvOmE8Bk21iCDtyJ5sYcGOhnFHcW/HehnYBAaiBoW+zDPTK4MxEa9vHX M4sS7a0qOrfbL6I3JYVdD2Ka9hnXT+HDzTzN3KkpBB76e8e5xr3VeECIWXPfUtksXqKq k1SZT2Qss/E3nHRfc0va4H0RmHPcjC7P2eGziyB/wbx2tyGdyMALn1y4LwKdAyUUDE17 oecJm01520ZCuyydY9b3fx39oYwzjQF4CIFId8KJhLEG5NlhZC0YpC/RsB2bb0e5Y2ee P4bT2/zaUUmeuC2syraa5WKjB3PdDpHuo1G4RlOTqUcdg64Mg1EV+/hVviu4SB1ABqpZ zHeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795585270; x=1796190070; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=WOUYKmrQld8mCVl16/QeMoDjRGy0Iu9lf4Huq0GJo1I=; b=CfFx8bsss1qWiWluDLQMHlIPaNkOlyA41MYI48bH1WsL1wB9b5SW3hZ2ZqqINqTVus VussKJu2ToS+qchlEQgrAoR8tzDJf9gAK1kl4fr8OEjyoopI+Cd+OXZX5kpWvr3kYIfX L3q4YbuA0DgJEykVRKrH0B2Sgt1hXg3FHwPRZsja52IRv1v53FmiPmhHI6PvrOuasx92 RgH2A5pDNdBdZgXlgpLw1rR3C2+iox/Ga5sarKk8WEStpUHzOk7nsE/UhmIhtiWl/Np8 JM+QODZfP6Db7LJ4Vw1mlp7SyJ8zQ6tkBeArIPe7pwzMwwVv970J0U0UprEwtUhYulFf Qv1A== X-Forwarded-Encrypted: i=1; AL+hErG+UnjSww5qDrueBJNIRP0iRzjS5C8+lBXAiL9A/gxNQ+QL9StDWMGFiLws7h0d+vkxhDixZiMYfOKBYKs=@vger.kernel.org X-Gm-Message-State: APuU4Z92KWYKGxctag0FoHA7OG85fL8KFuMwyZ3Ity7hqhv+QboSKiS5 Fk4OmjRyyU+zjBuzWm3w35v8E6INUJUnGTd5zd/bXfaZkAxmp/vgYkjePfnwpwhIB6ppOvwDwXa FEqCjSgRnnE+AjxF4C73FvWi8drbs6tz01KmdYjCYAtU4zAa+H/1LtnpfV34THCpfjXg= X-Gm-Gg: AZFdTZdV70Dy1uVJXEB9AQYVu+taWFc0iIxU3IC2ViwM0gqtUheHbIKoHZwVOvly7NC OKkE3cpzZ0+FSvlA0/WvI+D/DHiPkmipgbBA44xkh8gooG240c79RF8hXUA47VDwieV6gCSxw/Q yoDebI0aVxrLjiFjdrH7CRb2MxJh66e1HSImxshG2LPMTrRiMhnoafndp16+HFv+MNg9h3hlHAA rVS2r0gfbQUjwqxq1tylNRcJy3dOvJQ6NNXdCaP3LJ0tZ9NCSllo+nnrw9JYdn+kjZR0mOZ8LFv LmNVqaPA/8O1Z89upduL7VuWeENO2CJAZTV+xwaA8Q51igG/Te1dVuX0NDIMWfV3edfLp4K3/jb WMcTdSJwksmO7H4HzqMRhRjxi/OFnMA9Xcx7JZ5QxX1EhzK350iZJIILEoN9P6nyAQ/Ca70XpWQ Iyxxi3dxo= X-Received: by 2002:a17:90b:4a48:b0:3b0:a757:e372 with SMTP id 98e67ed59e1d1-3b41c987b44mr14792636a91.47.1795585269914; Tue, 24 Nov 2026 21:41:09 -0800 (PST) X-Received: by 2002:a17:90b:4a48:b0:3b0:a757:e372 with SMTP id 98e67ed59e1d1-3b41c987b44mr14792608a91.47.1795585269438; Tue, 24 Nov 2026 21:41:09 -0800 (PST) Received: from hu-bvisredd-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b409330ae8sm28897957a91.7.2026.11.24.21.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 21:41:09 -0800 (PST) From: Vishnu Reddy Date: Wed, 25 Nov 2026 11:10:24 +0530 Subject: [PATCH v3 2/3] media: iris: Skip redundant HFI_PROP_TIER updates 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261125-fix_dec_seek-v3-2-66c9889def2a@oss.qualcomm.com> References: <20261125-fix_dec_seek-v3-0-66c9889def2a@oss.qualcomm.com> In-Reply-To: <20261125-fix_dec_seek-v3-0-66c9889def2a@oss.qualcomm.com> To: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Vedang Nagar , Hans Verkuil , Stefan Schmidt , Hans Verkuil , Deepa Guthyappa Madivalara Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , Vishnu Reddy , stable@vger.kernel.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795585253; l=3643; i=busanna.reddy@oss.qualcomm.com; s=20260216; h=from:subject:message-id; bh=PWf0zZ80U0SrIVRIver3rsh9ZUObLDb12FRCcI6fO6k=; b=44arFO5aIJXrsBMjCm/NVGTdoItmIXAdSq3+cyxBTE5nSUzbNdqTAXgAHCrfC9e1gk3lpVdEu ZH7fIKf3V6CAbleiQapZalqPlgMUrRbyh3EKpJiMy52YW448os5IauK X-Developer-Key: i=busanna.reddy@oss.qualcomm.com; a=ed25519; pk=9vmy9HahBKVAa+GBFj1yHVbz0ey/ucIs1hrlfx+qtok= X-Proofpoint-GUID: 77-z5me3JY2jYX1pI2_SYj1lStOACRli X-Authority-Analysis: v=2.4 cv=G+SJgNk5 c=1 sm=1 tr=0 ts=6b0674f6 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=gy7Or5v-rkSGZgkmUG0A:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI1MDAyMiBTYWx0ZWRfX774QzXrSbOCY SbZtfy4gycjtKrj3j+C+Aw63L9YUImOgltd+tZ38Y6EhLBnsIRiw/MFkmSVrUyAeh/+mZSQBzUg /3wBj/tiJ8ddjfM8UQTDoBiw3DPGeYg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI1MDAyMiBTYWx0ZWRfX0fzVfYmuj3jI 9T31iDJoCSK1wt3ZfVgSnmchFF51B+dNQJMUGxVcXDd+2sh2DxSJRHaG+eTOoR6T/0WcqWAoMcv 1UHyKFtVayghH5IMoKSu3uqOpPFsxOcOkAiToV54Uar7bENzuBy8hLzRdWexy3EQ5PCcATtFGhP FKorZo4fzRpkW5KKWT2EYwtU+1KIXseNQSM1RkQ4J287IGJHZNOuf1vlF7nM0tS8KuBwqFZ2d4U xHPntAH12sOZXuMlIJDCU6c+PUEowlX+n8ZlxyIKje8ezKMywIMdvHb9k+/MLb6vC+Wez4TwRrr 9OeTLIN8xjZRS4CrYhbTEvw1B3/JsQbs1e4U9WAFdxYU14XvPWxmO+wjKPg8OB5e7Jv9ncyZuUa l0rSvxK5h9YFleKOLaHgU7fTM+ARuMNT8TBIKA4c0+Sfi9phgS0d15reiB6LM6lfc3f7eaAF183 yo8Gp+1Zd/VUD5AtVcw== X-Proofpoint-ORIG-GUID: 77-z5me3JY2jYX1pI2_SYj1lStOACRli 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-11-25_01,2026-11-23_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 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-2611250022 HFI_PROP_TIER is applicable only to HEVC decoding. For HEVC, the driver programs it more than once while setting up the session, and the value that ends up in the firmware is wrong. First, iris_hfi_gen2_set_tier(), called from session_set_config_params(), sends the tier selected through V4L2_CID_MPEG_VIDEO_HEVC_TIER on HFI_PORT_BITSTREAM. After that, iris_set_properties() walks fw_caps[] in cap id order. TIER_AV1 comes before TIER there, and both caps map to HFI_PROP_TIER and define a .set callback. TIER_AV1.set sends its default value of 0 on HFI_PORT_BITSTREAM and overwrites the tier sent earlier. TIER.set then sends the tier on HFI_PORT_RAW, which does not restore the value on HFI_PORT_BITSTREAM. The firmware is left with tier 0 on the bitstream port instead of the selected tier. AV1 does not use the tier property. Drop the TIER_AV1 cap and its enum, and make iris_hfi_gen2_set_tier() read the value from the TIER cap. Also drop HFI_PROP_TIER from the AV1 input config params. Fixes: 2af481a459a4 ("media: iris: Define AV1-specific platform capabilities and properties") Cc: stable@vger.kernel.org Signed-off-by: Vishnu Reddy --- drivers/media/platform/qcom/iris/iris_hfi_gen2.c | 11 ----------- drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c | 3 +-- drivers/media/platform/qcom/iris/iris_platform_common.h | 1 - 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/media/platform/qcom/iris/iris_hfi_gen2.c b/drivers/media/platform/qcom/iris/iris_hfi_gen2.c index 79bbd06ef8d2..3990e6562617 100644 --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2.c +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2.c @@ -999,16 +999,6 @@ static const struct platform_inst_fw_cap inst_fw_cap_sm8550_dec[] = { .flags = CAP_FLAG_OUTPUT_PORT | CAP_FLAG_MENU, .set = iris_set_u32_enum, }, - { - .cap_id = TIER_AV1, - .min = 0, - .max = 1, - .step_or_mask = 1, - .value = 0, - .hfi_id = HFI_PROP_TIER, - .flags = CAP_FLAG_INPUT_PORT, - .set = iris_set_u32, - }, { .cap_id = DRAP, .min = 0, @@ -1856,7 +1846,6 @@ static const u32 sm8550_vdec_input_config_param_av1[] = { HFI_PROP_BUFFER_FW_MIN_OUTPUT_COUNT, HFI_PROP_PROFILE, HFI_PROP_LEVEL, - HFI_PROP_TIER, HFI_PROP_AV1_FILM_GRAIN_PRESENT, HFI_PROP_AV1_SUPER_BLOCK_ENABLED, HFI_PROP_SIGNAL_COLOR_INFO, 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 fac61ece177e..9464543836c0 100644 --- a/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c +++ b/drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c @@ -603,8 +603,7 @@ static int iris_hfi_gen2_set_tier(struct iris_inst *inst, u32 plane) { u32 port = iris_hfi_gen2_get_port(inst, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); struct iris_inst_hfi_gen2 *inst_hfi_gen2 = to_iris_inst_hfi_gen2(inst); - u32 tier_cap = (inst->codec == V4L2_PIX_FMT_AV1) ? TIER_AV1 : TIER; - u32 tier = inst->fw_caps[tier_cap].value; + u32 tier = inst->fw_caps[TIER].value; inst_hfi_gen2->src_subcr_params.tier = tier; diff --git a/drivers/media/platform/qcom/iris/iris_platform_common.h b/drivers/media/platform/qcom/iris/iris_platform_common.h index cddab9a9c375..973a6f91a49b 100644 --- a/drivers/media/platform/qcom/iris/iris_platform_common.h +++ b/drivers/media/platform/qcom/iris/iris_platform_common.h @@ -135,7 +135,6 @@ enum platform_inst_fw_cap_type { LEVEL_VP9, PROFILE_AV1, LEVEL_AV1, - TIER_AV1, DRAP, FILM_GRAIN, SUPER_BLOCK, -- 2.34.1