From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796121887; b=h1xpeq4EDVaJzr3mYn6AWN4yx3tRoPQPJzgGnyRJL1idAIzff7FmFvR8Jyr70z5Ot4xR W8z1RfdA5z1+8Dy3PYGHKE2cE6z7uQXEPl5/YiFL/cOvFqDPH+qJqSIbv4ShI3R5xM3Ad DKL6g6PrTt5FlHCPum0VXaT6Lw9D3RRiZ4HBq0Lkk+Bf1sBqn41oullTB0Wq83Mimqn2U RqKhzvf6awRtDam8A9szNUL2EbE8VZ05R+zZSTtOnBXF3sOz6vIJ5EHalPMaomni5PAL9 bO4hh2+7hyFjkKtbJDR54KQMSh/fAEZ56mQxH5nHD7gt11hpFSmQ1fkLM1EWzdHTq9Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796121887; h=Received:DKIM-Signature:MIME-Version:Content-Type: Content-Transfer-Encoding:Subject:From:To:Cc:In-Reply-To:References: Date:Message-Id:X-Mailer:X-Developer-Signature:X-Developer-Key; bh=XLghZcpqsdLsdOUGFdrSux0YkFpmhwsLumLihRkaeMs=; b=iCHVx1RxG/2Rjhgs65oTiHSdp36D2Qp0Ut81tJtckqu7yDnL0mp9zep7byeiw0qbCGll mIslh1WQImBC2SzSNLrtLra8ClJHsswCebORHJiRkL30X6u7aaYfj2tbHHfsIjB/T/5TA 7A0YQ2kJMbuSpdbmX3x12e3dD6unDAZvpbR5Kd+k9w4ggqoyJ/BnQjpUl0cEj23Gw+RN5 LWTUspByIgvHu0BCNUish4S1DYyyT8/Nn/Q/q00gYN9HglDhJDHAzHsbgLstvhWk9WyNt ne6/dUQIW+G6TYkpVdjlW7+4Kf3KMSIEDTiX2SqgMhyKbITMB/rFjPvr7TsZcVCqMmw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="LnuKgw/u"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5EEA606A31A; Tue, 1 Dec 2026 10:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LnuKgw/u Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C2D01F00893; Tue, 1 Dec 2026 10:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796121887; bh=XLghZcpqsdLsdOUGFdrSux0YkFpmhwsLumLihRkaeMs=; h=Subject:From:To:Cc:In-Reply-To:References:Date; b=LnuKgw/udeYE0WBhbr0UWXRRULkNHhAbebNPjrBsBm+KB7MweDPGvLbx/WDid0M9Z nuQltX+eKo0MKDTTYw0ttGnBlgY1JCcHL4MIU0njLf1+3PMnM8l45+uZD549UuHdA9 epgyH8zEO3tdZm1cQUgEh7z0YqZGMzXAY4mQxU1t16zJoEi6zQk9RA3h+OSTxe3oax JxzM50ls90Xg/Nq4rjz7xXrFf85NcgQSU8YhHGN5b/GVNs5te9XnddZ4k4xPuuDu+f eKmVCLKI67uuhhWoiT9CLTzB/ZdoYXV7BDw0Y0cSsraVsOZqUBFRZ/Cd/aSRDdA6Q0 4LjfdUV7MxSig== 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 Subject: Re: [PATCH v3 2/3] media: iris: Skip redundant HFI_PROP_TIER updates From: bod@kernel.org To: Vishnu Reddy Cc: Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Vedang Nagar , Hans Verkuil , Stefan Schmidt , Hans Verkuil , Deepa Guthyappa Madivalara , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bryan O'Donoghue , stable@vger.kernel.org In-Reply-To: <20261125-fix_dec_seek-v3-2-66c9889def2a@oss.qualcomm.com> References: <20261125-fix_dec_seek-v3-0-66c9889def2a@oss.qualcomm.com> <20261125-fix_dec_seek-v3-2-66c9889def2a@oss.qualcomm.com> Date: Tue, 01 Dec 2026 10:44:41 +0000 Message-Id: <179612188192.1465785.17865667853769259491.b4-reply@b4> X-Mailer: b4 0.17-dev-cdd92 X-Developer-Signature: v=1; a=openpgp-sha256; l=2328; i=bod@kernel.org; h=from:subject:message-id; bh=RmER7GQXQ6mPJz3n1hwphKLR0qg+j9WPFyNPWn4QICY=; b=owEBbQKS/ZANAwAKASJxO7Ohjcg6AcsmYgBrDqUaRpMQQhBSWoGoO6lOIzz69LTbBqQPAw8a6 R6IOs0K8X6JAjMEAAEKAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaw6lGgAKCRAicTuzoY3I OsSiEACmDFo76TghTwQkku/o4P7tolbK7eetj6ex18NL1bxU7zf/NuZ2HASZAt/J/51IG49Fop9 yulsJQ/BbowhONDqO7cVBaWyA6siK585/EixsP6gTPZDaetCoHTKPlrUEYmcs5NttVor56XI6Pr FZ23MonF1HiTYjD7XMWtihFIdb4SHx2gd4v+iT4LWccrwMKjTCwtDjDCOOgkuyV+knZWvAT0RUe bUws2s9Ho9NtFGqkqF0SkTufHUf4swx4ocLaLSsb75lFPSTRyFr1qPv1YAGP95KgtcFiRAzgk0+ 9NjSfEL5lJPoCkvZrn3Yk7rWYSdRFed/bzfQ/UqhcOYvkDtDZiyWmTyqaL8TiFqF+5sAGpDp8yM qyeHoh39etI+UPsii3U2nMhN6TMGUpuok5qnb46Zese6AlDN0XfQMIiW6ZQ7DL48CIj2POuBA2a 0pN0mYBwYmuvP055z49/JSmmBI5fdphhSZEOgImIi/zlRGw0eZWTw+k4HeNqgolwLyluwXHYH2o PQ/0vvDNAtCYS4snpWlaMmtMwUWCMdTni3igy1I/0z7s8FAn+2cTq4fQdHw5eDWsr5/Z2eALP6w mgJMaGaVrznlE/Y2BRNuuxYXdE9HfOVpNYfdwluBUpksQMBplTO4fT1LTh1PfAfoi30qGpvV2/3 YO3Nm3b+CEeZkJA== X-Developer-Key: i=bod@kernel.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A On 2026-11-25 11:10 +0530, 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. This paragraph is still a bit too much - it smells of LLMese. I genuinely think a more just natural language log written by a human run through spell check - or with minimal LLM fixes for syntax and grammar is best. Or better yet retain the idea of giving the explanation but zap the prose-filler. Bullet points - A - B - C - iris_hfi_gen2_set_tier sends V4L2_CID_MPEG_VIDEO_HEVC_TIER - iris_set_properties walks fw_caps in cap id order TIER_AV1 comes before TIER Both TIER_AVI and TIER map to HFI_PROP_TIER - TIER and TIER_AVI have individual .set callbacks - Therefore when either TIER or TIER_AVI is set HFI_PROP_TIER is called ? What's the relationship between V4L2_CID_MPEG_VIDEO_HEVC_TIER and HFI_PROP_TIER ? The commit log doesn't describe I don't know I'm not capturing the full flow here but you see what I'm getting at. Less is more you want to provide information without filler. > 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 Once the commit log gets translated. Reviewed-by: Bryan O'Donoghue --- bod