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 7DD13CD8CA8 for ; Tue, 16 Jun 2026 03:51:50 +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=0LLj4LGa+CEorWsXFdkROPtAy/btizr8qptWeMPKmQ0=; b=UEn7vK9Pww2jOVYXBQgTat7uyW XxRP7dL60eKMZucK2PZyzLoUrhZ5xr1URj2XPT/omVK8NXLRM0zVcREMRVy3s4BTRSFwYb9rFMucD gCX74AQiNG2jzStuq3iOub+Mb7S8SccWgd47quLVNLCZy9AAd/s4wlgKWfQYxA0vAOfaOTDraR5Gm lO3Uhq19nmxC8dOrWDlIrTMB6ORQVH93HmZuVF/CI6ABGETXofSoVg5xg9IuUsSDr8M8nMhJAUR8P L5NId9Iypgd8Z+DG/4v3SZHAXYFBOye/1ujpcmbFyXH8Jqan9sQ49sw6uAeKl2LfM/RUIgDhKnSaU 9mc8nRRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wZKpy-0000000FADJ-3WvP; Tue, 16 Jun 2026 03:51:42 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wZKpx-0000000FAD7-3qQN for linux-arm-kernel@lists.infradead.org; Tue, 16 Jun 2026 03:51:41 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id E7E3E43F27; Tue, 16 Jun 2026 03:51:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4373D1F000E9; Tue, 16 Jun 2026 03:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781581900; bh=0LLj4LGa+CEorWsXFdkROPtAy/btizr8qptWeMPKmQ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=nVj5KS8dmM6px34g0QjZi4/1Wq1JfYLMPwSqwR8qAPVxOE4KFryFGL/NPsr77lOE9 S1ZZt+Ne0GT+XH5So8VkuxbjNrbV075vkRN4kCCWXWrIX9rCGAQI1aijwuW8fGCzMv ceHkk9RDMYlMkieIcfOQimcbbQaAHVRtQUyP9vFZcyyFZwx65+nJlgqbFl0EyJ94Ch RMzeO5zFPKfqnqxpOKmHXJtXrI+fRF2Cc08uEC7RLxpzo70wRLUPkT5YztQAp+8jdm hnuqPOEbDrKh6zT+92WHog+xjOfK+cT7RoQQcZGokdjGVKsGroAQl1b0iNSaVUSKqz DOIP2VrKhkHbA== Message-ID: Date: Tue, 16 Jun 2026 05:51:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 7/8] dt-bindings: display: allwinner: Split H616 DE33 layer reg space To: =?UTF-8?Q?Jernej_=C5=A0krabec?= , wens@kernel.org Cc: samuel@sholland.org, mripard@kernel.org, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org References: <20260509190015.79086-1-jernej.skrabec@siol.net> <86943057-f5b4-4fae-9172-45f13814494f@kernel.org> <0r4us4OeRRWtJhxvps-bZw@gmail.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+wsGPBBMBCgA5AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJp2mE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6YLCmb39NgidD+7PmAr65lBNveIFynTgsja1rRQ4= In-Reply-To: <0r4us4OeRRWtJhxvps-bZw@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 15/06/2026 17:47, Jernej Škrabec wrote: > Dne ponedeljek, 15. junij 2026 ob 06:28:54 Srednjeevropski poletni čas je Krzysztof Kozlowski napisal(a): >> On 14/06/2026 16:08, Jernej Škrabec wrote: >>> Dne ponedeljek, 25. maj 2026 ob 14:10:38 Srednjeevropski poletni čas je Krzysztof Kozlowski napisal(a): >>>> On 24/05/2026 23:33, Chen-Yu Tsai wrote: >>>>> Hi, >>>>> >>>>> (resent from new email) >>>>> >>>>> On Thu, May 14, 2026 at 2:04 PM Krzysztof Kozlowski wrote: >>>>>> >>>>>> On Sat, May 09, 2026 at 09:00:14PM +0200, Jernej Skrabec wrote: >>>>>>> From: Jernej Skrabec >>>>>>> >>>>>>> As it turns out, current H616 DE33 binding was written based on >>>>>>> incomplete understanding of DE33 design. Namely, planes are shared >>>>>>> resource and not tied to specific mixer, which was the case for previous >>>>>>> generations of Display Engine (DE3 and earlier). >>>>>>> >>>>>>> This means that current DE33 binding doesn't properly reflect HW and >>>>>>> using it would mean that second mixer (used for second display output) >>>>>>> can't be supported. >>>>>>> >>>>>>> Remove layer register space, which will be represented with additional >>>>>>> node, and replace it with phandle, which will point to that new, shared >>>>>>> node. That way, all mixers can share same layers. >>>>>>> >>>>>>> There is no user of this binding yet, so changes can be made safely, >>>>>>> without breaking any backward compatibility. >>>>>> >>>>>> There is user. git grep gives me: >>>>>> drivers/gpu/drm/sun4i/sun8i_mixer.c >>>>>> >>>>>> which means this is a released ABI. As I understood, the old code was >>>>> >>>>> We held off on merging the DT changes so that we could rework this. >>>>> I can't find the actual request though. It was probably over IRC. >>>>> >>>>>> working fine but just did not support all use cases. Why this cannot be >>>>>> kept backwards compatible? >>>>> >>>>> AFAIK the "planes" block is shared between two display mixers. As the >>>>> commit message explains, this prevents using the second mixer, since >>>>> only one of them can claim and map the register space. And on the H700 >>>>> (which is the same die as the H616 discussed here but with more exposed >>>>> interfaces), there could actually be a use case for the second mixer. >>>> >>>> It explains why you want to make the changes but not why you cannot keep >>>> it backwards compatible. >>> >>> I guess it can be backward compatible, but I don't think it makes sense. >>> Yes, original driver implemented original DT bindings, but there is no node >>> which uses that binding. If there is no user of that, why would driver >> >> Did you check all out of tree users of the ABI? All vendor kernels, >> forks and all of them for which the ABI was made for? > > Since when do we care about out of tree users? I understand that drivers Since always? That is the meaning of ABI. Otherwise there is no point to discuss ABI at all. Why would it exist if you had all DTS inside kernel always matching the code? > must support old device tree files. Once they work, compatibility must > be carried forward. But that's not the case here. > > In any case, vendor kernels have completely different DT structure. This > was developed independently from them. Take a look at [1] how BSP DT looks > like, specifically Display Engine node. > > Of course there are some distros which grab WIP patches from mailing lists > soon after they are available. For example, I know that Armbian carried old > WIP patches which used old ABI. However, such distros generally don't care > about exact solution and ditch patches as soon as proper solution is merged > upstream or even when better WIP patches come around. DT files in such > distros get updated alongside kernel, they are not hidden in firmware. > I am not talking about BSP. I am talking about out of tree users for which we defined the ABI and called it that way. Best regards, Krzysztof