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=1796343414; b=2odtJYwOGSDyj5+gJ5OjzRWLCfkCqdfH2dd/TEGrfgJQTovklIKoEMQMTThgHCpJ3Det yoAxlw1ao3CAjyeteqASa/Kz9IL2xn8cI4aUAy4uWPFwmAE+snl49VVDYs7biLRxNC5QD W1RQok1blAnBWf0euKKxfKzxSz2LjUPGLNRT5IFVk+Z02kTKAeUmeHS/2Nkz259fubeq1 e6nqXt5xdl//2R0grQ6A+fWNnAEnyejXb8wBoyZKowa835qF3ny9qn5Fg3INhqMxxXfS6 TQNX8uyMMBEqnH3mPBCbsxXZar1hEXZSAEfvKvdCW7ptKRnzN3bK+qXu4GlR+k7RiKg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796343414; 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-Spam-Details-Enc: X-Proofpoint-Spam-Info:X-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=T9d5EOYou3Q0sWJcU0m/mKRVTwWYHWxUJ5bPBSJbe00=; b=Q7N8leaal9uCnEqEPhemj3CsKuEerndDIwFsuFUXCO6qnMInoVpJVvp1oiKv9UWa5tiW vWiPyVrn3uDARb7nXKWuFb9pzVkUpLxRJkSaMWht6o+CSBLduJmhHx39hJGXoT/BjG+AF 0duBJQAiq9cjLb+PSf+2kTjjU/hutcptz4pgfq16p1gg9eigtbXUtTncgJ/msPXyQeWQN OdJuJSMwSjYzP+SVobFqKZoXF+UshGTkmMzBXApUODCowFx6UlqETO/eBgVTK9HUfNqtL rbiUPAUl8HMMq2QTNWh6Inrt1BxsLuR9WQug0LXYqvgwHuhn4o6ob5+rwuE9+D+T6Xw== 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="gyBrPL/i"; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=Hj2OHlm9; 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 EAD77606A333 for ; Fri, 4 Dec 2026 00:16:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EAD77606A333 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=gyBrPL/i; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=Hj2OHlm9 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 6B3L6GiH1682707 for ; Fri, 4 Dec 2026 00:16:53 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= T9d5EOYou3Q0sWJcU0m/mKRVTwWYHWxUJ5bPBSJbe00=; b=gyBrPL/iDEQjd4eG J8ywhP9pjLMlfXf2bwgbMMKgWx2gjGsxa54o7MC61wvOAiMji5h2clFOYacugtMj J12lzkZaRnLs04HYqQBDLoU679I9Val86RMIW3jJp54NMsrea/GguPDULeOjC5QL BeSoKFgWbeON93XtpZ1n3tRDQFmYLNs4fKUJMu+4UZUsW7YFMIAEun6HUcz7VV/a nlsyNoGsDXzEGfL2ZHKFo39TfbbyUPVyNQMPJxmmwmyK4LtXWhEh7BVR+ajRqjfi GeggkNoNR9GMbx1WgN8m0lleqNW6Xojc1Vtr09acHjtbtfWo4FPfMdo580SieTet b7KktQ== Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jbg21rrq3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 04 Dec 2026 00:16:52 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-30c58d35c0aso66913eec.0 for ; Thu, 03 Dec 2026 16:16:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796343412; x=1796948212; 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=T9d5EOYou3Q0sWJcU0m/mKRVTwWYHWxUJ5bPBSJbe00=; b=Hj2OHlm9lTEhKSbXX1Gg3PzYIryb4U6lbEE7ImYqBacDg8qHyI1uGuHFtFpJLj12BP bADr/U/IOrxz7mGj2wgMaNDc7B0RVac5BWsJblVMHtIegcU/Nl5yhGIs8/1hV8mLrf/1 b+7HTD73mQ7QZYYEGrsGl7H8VaXKnEc2+y7YeokTOLZkbuA/mQZ/ja9URtOM7j9ZitOU dymv3oM+cMAGckU8n4I6RwXOg31pA/VUOB1F3nsD58KMe4nci9SNkgQNkcwbkRdkYXHH Fy0s0nP8J8oI6WOazGRRLKruKtiU64S+w+5RbXMgtydanwuseKpQb3mKeQzjZhsHrUdu w1jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796343412; x=1796948212; 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=T9d5EOYou3Q0sWJcU0m/mKRVTwWYHWxUJ5bPBSJbe00=; b=gtXZ2+R5SZiEm31AwWuT1BjGu39qj89xVOHa5VFzpc8/ETU5P3KixEI7WX2/NTqS2X FIZPtkiEZN7VYsbfPEe24mSaK1vlyVJDM0ZjCzeer7w/EXgS+zRHk9q5nB6TCdO0A5bY LmxIR63+aOsEYS2qcth0LaauOYNmYv2dbsL08E/M4lQp4gdB7m6IOz2jA9q4tJNAYx0/ 6x3QH2zZuX69TdLRUheDFVCqfgGYz6VA6IxXIZeoK1T2+C0Hu+CDWgig/Gom3yf3vFiN LAedf3n/NHu8LnUtCRyo00FMKpXUO3wr0ZhG29QgHVP1+HoowmEHfYp18Z7MwPqcIuBZ ignA== X-Forwarded-Encrypted: i=1; AL+hErGqmOfT8OKrwxjJihnmOGmNV2w6fNPOi0N4OWtG1kPi5xhF3xnoL/wS9MQnB6Twgy7z7G7WABN114c5cXKn@vger.kernel.org X-Gm-Message-State: APuU4Z+sZoGoB54UXK5krY9FRfD807HoSX4TRPYIImwG7wlHXvCh4Nk3 Dk/AHdbFL22vqE8rX9yLYN4Nxaz3ig1qH1KE5AZjO2XyGOgWxUVfCLv0WOA5Zi9mfRkgVit/12k bQ++dMOb+kSuOZWGmExnRa4Wyj9Mzw42IsJrJL0L7+bBy8svvBLhIm7tUIn/ypL/nPg/y X-Gm-Gg: AZFdTZduPopBUbNWfpdyszYdzem72AgubxC8ScVm9gvzutTghQXX55/V4mp5LgkpEPV 3POg0QDbN5ZnqjTVnsL9eqva6IfqKk4Kma5+JmK1GygHFE9zmhhJIca1lsYO90KYjs9+MMJ0LM0 hag4XikInyEkIJxh0yy4A00xYZwie64ElWZ2T7rke9Z/1gsRQNew4z+E57qZIuMzgweeoZxfJeh 69D55lE5ELkXVcajGljDip2/Tjtrq3pIG74nzLsY+E6Bn/aQZ3Nv3rhmwj2bLtBL8KnLJTNJuV2 Bd1eqDNMCRQuI93660CVzAfdOQaRJZ7W5+YhbfmHJWpTlcF+epCgbGqLjjZFvolY3ZfX62dHnMJ jFIYmxOMHBmHsyZvofb30fhDtqQy59tNLTnNoHlR2XXLXTxhBvQRyYvdlq+6qTNjxHuA7gW8XoO 1wlQdu4HIX1Xofw6feRVuUkITtJG2W5p3ElA== X-Received: by 2002:a05:7022:b19c:10b0:1b5:d170:5b5a with SMTP id a92af1059eb24-1b5d70b8b70mr679339c88.2.1796343411700; Thu, 03 Dec 2026 16:16:51 -0800 (PST) X-Received: by 2002:a05:7022:b19c:10b0:1b5:d170:5b5a with SMTP id a92af1059eb24-1b5d70b8b70mr679302c88.2.1796343410817; Thu, 03 Dec 2026 16:16:50 -0800 (PST) Received: from [10.110.118.8] (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b5d643dbd2sm1818487c88.6.2026.12.03.16.16.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 16:16:50 -0800 (PST) Message-ID: <96b13037-296c-4408-a6ab-4070c51351ea@oss.qualcomm.com> Date: Thu, 3 Dec 2026 16:16:48 -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 2/3] media: iris: Skip redundant HFI_PROP_TIER updates 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-2-66c9889def2a@oss.qualcomm.com> Content-Language: en-US From: Deepa Guthyappa Madivalara In-Reply-To: <20261125-fix_dec_seek-v3-2-66c9889def2a@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA0MDAwMCBTYWx0ZWRfXwUVU9npILF4z MsrzWQ4yCfP4DqS0JC6iNsTUUocqUAgKfjjaqocxSu85wVjL4xM+hSzzW00ZinVwE0X+RrpG4D1 BXfe9LKlNiUe8uo4iWepCb69e92PbOq20Zk1JcDP1M4iR8szQZm3o1kAAliV6NYQz9JE3qR1bXZ yRnxvuBf4UvLI1lGtRiipoQR2JqhUdQhKxF+PSMlPGgSRZ1iK3k2EJzAm75fMsxhKr/RXmXCxUg hNjHgULD7bw9d9/m5SnL7+Mt3fZgzcGu0zj5f0xXKZhHnSGVK4234n91yfyHk6TnYbWFIoiG/iY G4UdZEAINSdyHn1c6Z+y4hEh5wPrRZ82sfjUFBHQQhIgyzAoPlYGF7PUYoiAZI/XQ2HMQLH+DAi OFEYezFfx35ZKa3g+k/jXgAkngzb7maiD53COlqryTUPo8zPVe+xsw5lJeb/LpV/qwtgFuLLYmF UJlFXQi+XOawRH7xXHQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA0MDAwMCBTYWx0ZWRfX4712913+6ddW X0VGw2hKf1fpR0AipedSzEim5uPOZogttZeF+wozIXptPt6rP2VXo3osBlqC/JNGTosCsGVRUL2 kugNxBJrdzGYZhFbhQMLCCvWKcx0o/M= X-Authority-Analysis: v=2.4 cv=Nr9E4MdJ c=1 sm=1 tr=0 ts=6b120674 cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==: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=TdMb-4CGHAFORaJU8_IA:9 a=QEXdDO2ut3YA:10 a=bBxd6f-gb0O0v-kibOvt:22 X-Proofpoint-GUID: zaKVa5VMR_wDwfoZ9rXX-ZpYasEQWfJj X-Proofpoint-ORIG-GUID: zaKVa5VMR_wDwfoZ9rXX-ZpYasEQWfJj 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-03_05,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2612010000 definitions=main-2612040000 On 11/24/2026 9:40 PM, Vishnu Reddy wrote: > 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, Reviewed-by: Deepa Madivalara