public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: Marek Vasut <marex@denx.de>, Tom Rini <trini@konsulko.com>
Cc: Sumit Garg <sumit.garg@linaro.org>,
	Caleb Connolly <caleb.connolly@linaro.org>,
	u-boot@lists.denx.de, u-boot-amlogic@groups.io,
	u-boot-custodians@lists.denx.de, sjg@chromium.org,
	robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	conor@kernel.org, neil.armstrong@linaro.org, ff@shokubai.tech,
	daniel.thompson@linaro.org, dgilmore@fedoraproject.org,
	pbrobinson@gmail.com, ilias.apalodimas@linaro.org,
	maxim.uvarov@linaro.org, b.galvani@gmail.com, xypron.glpk@gmx.de,
	seanga2@gmail.com, rasmus.villemoes@prevas.dk, peng.fan@nxp.com,
	jh80.chung@samsung.com, rfried.dev@gmail.com, mibodhi@gmail.com,
	bb@ti.com, mark.kettenis@xs4all.nl
Subject: Re: [PATCH v4 00/11] An effort to bring DT bindings compliance within U-Boot
Date: Fri, 26 Jan 2024 08:04:54 +0100	[thread overview]
Message-ID: <115d5376-8cf9-474a-9344-223df4ee1d6a@amd.com> (raw)
In-Reply-To: <0d4ed462-a5ec-4114-84ab-d2e2a6d79b69@denx.de>



On 1/26/24 03:10, Marek Vasut wrote:
> On 1/26/24 00:19, Tom Rini wrote:
>> On Thu, Jan 25, 2024 at 05:38:23PM +0100, Marek Vasut wrote:
>>> On 1/25/24 16:04, Tom Rini wrote:
>>>> On Thu, Jan 25, 2024 at 12:54:22PM +0530, Sumit Garg wrote:
>>>>
>>>> [snip]
>>>>> But at this point we have to move away from apprehensions about DT ABI
>>>>> breakages and provide real examples of the DT ABI breakages in the
>>>>> past. Are you aware of any DT ABI breaking change backported to Linux
>>>>> stable releases? This is the sort of information we would like to make
>>>>> DT bindings maintainers aware about.
>>>>
>>>> Well, how far back are we going? There was a serial related one, but it
>>>> was probably closer than not to 10 years ago and lessons have been
>>>> learned from it already.
>>>>
>>>> The real breakage comes in the form of (from the Linux kernel):
>>>> commit 37685f6a63eeca2135d1f704e7638409a071b1f6
>>>> Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
>>>> Date:   Tue Feb 19 08:46:33 2019 -0800
>>>>
>>>>       ARM: dts: am335x-evm: Fix PHY mode for ethernet
>>>>
>>>>       The PHY must add both tx and rx delay and not only on the tx clock.
>>>>       The board uses AR8031_AL1A PHY where the rx delay is enabled by default,
>>>>       the tx dealy is disabled.
>>>>
>>>>       The reason why rgmii-txid worked because the rx delay was not disabled by
>>>>       the driver so essentially we ended up with rgmii-id PHY mode.
>>>>
>>>>       Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
>>>>       Signed-off-by: Tony Lindgren <tony@atomide.com>
>>>>
>>>> And this is of the style "the DTS was wrong before so we can break it".
>>>> This is the specific example (as the board is in my lab) that comes most
>>>> clearly to mind but there have been similar examples in 2022/2023.
>>>>
>>>> The other just as painful examples I think may be where Marek is
>>>> concerned and it's around nodes being renamed for correctness. We've had
>>>> a number of cases where a - turned to _ (or vice versa?) and whoops,
>>>> platform stops booting. Down the line, tooling would catch that, and
>>>> it's a problem of not being able to use better tooling until we have the
>>>> updates that might break the boards that need the better tooling.
>>>>
>>>> And really this gets to the crux of the problem, how much testing do we
>>>> insist happens prior to a re-sync being merged? Do we want to go with
>>>> the whole of the dts files are re-synced, or do we leave it per vendor?
>>>
>>> I'd much prefer to leave it per vendor, with the recommendation to use
>>> synced DTs. Eventually things will stabilize and vendors will start
>>> switching over.
>>
>> To be clear, every SoC (or really, board) has to opt-in to OF_UPSTREAM
>> to start with. With that, I see switching to OF_UPSTREAM meaning that
>> there's a commitment to keeping up with dts change in upstream dts that
>> might lead to issues within U-Boot. Do you still feel it would be better
>> to have the re-sync _also_ be per custodian tree? That might be a bit
>> harder to handle.
> 
> Maybe the best thing we can do is just give it a try and see how it works out, 
> esp. since it is opt-in per board .
> 
> It would still be good to solve the part about pulling in fixes from 
> linux-stable though .

I would let board owners/custodians to deal with their boards.
There is very high chance that if you do it globally that it is question of time 
when something will break.
It make sense to talk about how to do that transition and describe that steps 
and having tools/script to help with.

Thanks,
Michal

  reply	other threads:[~2024-01-26  7:05 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-10 10:35 [PATCH v4 00/11] An effort to bring DT bindings compliance within U-Boot Sumit Garg
2024-01-10 10:35 ` [PATCH v4 01/11] CI: Exclude devicetree-rebasing subtree for CONFIG checks Sumit Garg
2024-01-10 10:35 ` [PATCH v4 02/11] Makefile: Add support for DT bindings schema checks Sumit Garg
2024-01-10 10:35 ` [PATCH v4 03/11] scripts/Makefile.lib: Statically define *-u-boot.dtsi files location Sumit Garg
2024-01-10 10:35 ` [PATCH v4 04/11] Makefile: Allow upstream DT subtree to provide DT includes Sumit Garg
2024-01-10 10:35 ` [PATCH v4 05/11] dts: Add alternative location for upstream DTB builds Sumit Garg
2024-01-10 10:35 ` [PATCH v4 06/11] dts: Add script to uprev dts/upstream subtree Sumit Garg
2024-01-10 10:35 ` [PATCH v4 07/11] doc: devicetree: Align documentation to use Kconfig options Sumit Garg
2024-01-10 12:31   ` Fabio Estevam
2024-01-10 12:40     ` Sumit Garg
2024-01-10 10:35 ` [PATCH v4 08/11] doc: devicetree: Updates for devicetree-rebasing subtree Sumit Garg
2024-01-10 10:35 ` [PATCH v4 09/11] MAINTAINERS: Add myself as devicetree-rebasing maintainer Sumit Garg
2024-01-10 10:35 ` [PATCH v4 10/11] dts: meson-gxbb: Switch to using upstream DT Sumit Garg
2024-01-10 10:35 ` [PATCH v4 11/11] dts: meson-gxbb: Drop redundant devicetree files Sumit Garg
2024-01-19 15:56 ` [PATCH v4 00/11] An effort to bring DT bindings compliance within U-Boot Nishanth Menon
2024-01-24  7:15   ` Sumit Garg
2024-01-21 14:33 ` Marek Vasut
2024-01-21 22:41   ` Caleb Connolly
2024-01-22  0:01     ` Tom Rini
2024-01-24  7:36       ` Sumit Garg
2024-01-22  0:14     ` Marek Vasut
2024-01-24  8:16       ` Sumit Garg
2024-01-25  2:03         ` Marek Vasut
2024-01-25  7:24           ` Sumit Garg
2024-01-25 15:04             ` Tom Rini
2024-01-25 16:38               ` Marek Vasut
2024-01-25 23:19                 ` Tom Rini
2024-01-26  2:10                   ` Marek Vasut
2024-01-26  7:04                     ` Michal Simek [this message]
2024-01-31 12:56                       ` Sumit Garg
2024-01-31 14:13                         ` Tom Rini
2024-01-22 11:45 ` Andre Przywara
2024-01-22 16:49   ` Tom Rini
2024-01-23  0:58     ` Andre Przywara
2024-01-23 16:42       ` Rob Herring
2024-01-24  9:03         ` Sumit Garg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=115d5376-8cf9-474a-9344-223df4ee1d6a@amd.com \
    --to=michal.simek@amd.com \
    --cc=b.galvani@gmail.com \
    --cc=bb@ti.com \
    --cc=caleb.connolly@linaro.org \
    --cc=conor@kernel.org \
    --cc=daniel.thompson@linaro.org \
    --cc=dgilmore@fedoraproject.org \
    --cc=ff@shokubai.tech \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jh80.chung@samsung.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=marex@denx.de \
    --cc=mark.kettenis@xs4all.nl \
    --cc=maxim.uvarov@linaro.org \
    --cc=mibodhi@gmail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=pbrobinson@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=rfried.dev@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot-amlogic@groups.io \
    --cc=u-boot-custodians@lists.denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox