From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB186FEE4E9 for ; Sat, 28 Feb 2026 09:54:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=928b7PSvHdVLdLi0mE/NSooz4uHAisfjQR3JZLk2c44=; b=qBDkqzGSQLB815ZfFGMJdFwBrk FAezOnmPcZVJSth+zJO/8RwzqcbVSrldzdHsEjv3dw8iJudfjMhiOg1LMwCmyrKErrIAmhp41IyQg WDL1a0o2xIQcKQYJxKoaCt5TnpBtGKY9BoE5cRftUv+26IO2oI5+kv9iKlZjqfyiRc1RYfHerJ81Y 4dyuuhKoM1frzQIEbuXkWSjgWhWinnyDHnWXjjcwpBXwIUrnOvVzLCHN4qR9xM3Gj2bTW6wIws6QZ 4zFY4Ll4UkOvHnG2W2YX+hRD4kFLd1Fr8+uVyGpQKCMHp9pADa6bOUx6tCksOL7g0eAOX/WvKxars ++x4T5cA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwH1z-00000009hr3-21WW; Sat, 28 Feb 2026 09:54:40 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vwH1w-00000009hqa-499W; Sat, 28 Feb 2026 09:54:38 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 8AC51434BD; Sat, 28 Feb 2026 09:54:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7A02C116D0; Sat, 28 Feb 2026 09:54:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772272475; bh=YouXqvnP0taKGHklJH5cIaDhX7R1/igobBji1f49w58=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=eLr0iciQqYzyeJegC9ou3JYzCPQGiRD6iyZk/FvAPJn7LjWxoZCtM9mZr+ncM/IW/ LSnEl+FRkXITDqIyh9SAOPbl9xIV1MhTl6JHOZ/Y16XydHloEF/vqe4/qieBsfx8wE Ta9hdkqnPNzXNldxX2Rut8glRmPPoF/Nvo8TFkfURHkH+pam8Nm2TMgcEOwV2RQQlo 0rVWcx05ELDSSA0FDwZD6aglEUC65FLDa42tIqHqIZ8iOq2mEU1leUp3TCLVmKshfI WRodMOJvn8/UeHbzi1v6FWPd1rRBW9qr+AIGBBG9Q8rxs2pxGu3OSGNjPbc1+z+M4r yp2ft605pTPuw== Message-ID: <1fe5529f-cd9f-4960-b6dd-96a2d02b8d86@kernel.org> Date: Sat, 28 Feb 2026 10:54:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/3] media: dt-bindings: rockchip,vdec: Add alternative reg-names order for RK35{76,88} To: Cristian Ciocaltea , Conor Dooley Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Detlev Casanova , Ezequiel Garcia , Mauro Carvalho Chehab , Nicolas Dufresne , Hans Verkuil , kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Conor Dooley , linux-media@vger.kernel.org References: <20260226-vdec-reg-order-rk3576-v4-0-b8d72dc75250@collabora.com> <20260226-vdec-reg-order-rk3576-v4-1-b8d72dc75250@collabora.com> <20260227-observant-roaring-ara-ef7eb0@quoll> <20260227-omission-stoic-417d7109ad4d@spud> <3ab4f91e-37d0-4950-af88-01920705d31a@collabora.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQ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NOpbW7yRNivaCnfZz6dTawXw XRIV/KDsHQiyVxKvN73bThKhONkcX2LWuD928tAR6XMM2G5ovxLe09vuOzzfTWQDsm++9UKF a/A= In-Reply-To: <3ab4f91e-37d0-4950-af88-01920705d31a@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260228_015437_105678_4672F1B5 X-CRM114-Status: GOOD ( 22.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 27/02/2026 18:42, Cristian Ciocaltea wrote: > On 2/27/26 7:13 PM, Conor Dooley wrote: >> On Fri, Feb 27, 2026 at 01:37:17PM +0200, Cristian Ciocaltea wrote: >>> Hi Krzysztof, Conor, >>> >>> On 2/27/26 9:46 AM, Krzysztof Kozlowski wrote: >>>> On Thu, Feb 26, 2026 at 12:46:53PM +0200, Cristian Ciocaltea wrote: >>>>> With the introduction of the RK3588 SoC, and RK3576 afterwards, two more >>>>> register blocks have been provided for the video decoder unit. >>>>> >>>>> However, the binding does not properly describe the new hardware layout, >>>> >>>> As you shown me last time with excerpt of address spaces from >>>> datasheet/manual, the binding correctly describes the hardware and above >>>> sentence is not true. >>>> >>>>> as it breaks the convention expecting the unit address to indicate the >>>>> start of the first register range, i.e. 'function' block is listed >>>> >>>> Imprecise wording. "start of the main or primary register range" >>>> >>>> (if you have 0x1000 with one reg and 0x20000000 with everything, the >>>> unit address will be 0x20000000). >>>> >>>>> before 'link' instead of the opposite. >>>>> >>>>> Since the binding changes have been already released and a fix would >>>>> bring up an ABI break, mark the current 'reg-names' ordering as >>>>> deprecated and introduce an alternative 'link,function,cache' listing >>>>> which follows the address-based ordering according to the TRM. >>>>> >>>>> Additionally, drop the 'reg' description items as the order is not fixed >>>>> anymore, while the information they offer is not very relevant anyway. >>>> >>>> This is fine for me. >>> >>> Thanks for the additional feedback! >>> >>> If I'm not mistaken (please correct me), the only remaining (hard) >>> blocker for the series would be to improve this commit message. >> >> No, you also need to fix the problem I pointed out about reg-names being >> optional on the devices you're relying on reg-names for. > > My only concern is that by marking reg-names as required we would break the ABI, You are ALREADY BREAKING the ABI. Really, for absolutely non-important cosmetic change in unit address, where I asked you repeatedly to fix the unit address, you change the ABI affecting kernel and DTS users. This is barely acceptable, but I am just annoyed already explain it to you multiple times. But now you claim, you can break ABI for cosmetic unimportant change, but actually doing something meaningful is a no-go? At least use correct arguments if you want to discuss. > since the RK3588 related changes in the binding (not the DTS ones) got already > released (i.e. since v6.17). That's also the reason we went with this deprecated > order approach. > >> The new commit >> message I am happy with, provided you also add the information Nicolas >> provided about the impact on users. > > Nicolas, can you please provide here the statement so that we can agree on the > wording? > > Thanks, > Cristian > >> >>> >>> How about the following: >>> >>> With the introduction of the RK3588 SoC, and RK3576 afterwards, three >>> register blocks have been provided for the video decoder unit instead of >>> just one, which are further referenced in the datasheet by 'link table', >>> 'function' and 'cache'. The former is present at the top of the >>> listing, starting at video decoder unit base address. >>> >>> However, while documenting RK3588, the binding broke the convention >>> expecting the unit address to indicate the start of the primary register >>> range, i.e. the 'function' block got listed before the 'link' one. >>> >>> Since the binding changes have been already released and a fix would >>> bring up an ABI break, mark the current 'reg-names' ordering as >>> deprecated and introduce an alternative 'link,function,cache' listing >>> which follows the address-based ordering according to the TRM. >>> >>> Additionally, drop the 'reg' description items as the order is not fixed >>> anymore, while the information they offer is not very relevant anyway. >>> >>> Regards, >>> Cristian > Best regards, Krzysztof