Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2575329pxb; Tue, 24 Aug 2021 02:22:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMTcIDAj1kIw5u46M+LS9vO/CLltW1OOr+Z+McAl6tI7WUuGmtJN2SccIk5AZbdP5GRZWJ X-Received: by 2002:a17:906:909:: with SMTP id i9mr38745635ejd.16.1629796971807; Tue, 24 Aug 2021 02:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629796971; cv=none; d=google.com; s=arc-20160816; b=ZtIKmGMJD8Je55zrXZGnebzJj8FNGKyvYRY4ZmMngD5yHfgtlulSL2aZEjaFj3CZ+A 2e1cI8G5BvQrVJ3YlN9qemzD4W8X/5Nyqp9CswOatJxQ5br03UeQp3pRiZHMbcr8m99T VZ/kARbfSB5sKS54KMJlv/RWxR/dKqTvS2aZXBTcl+dQ76QAje7ciXxXW1HMlAEITItr 6Kl5LpuA31GOGRGjQbu3HzpcyHUF5xBbdmE5oF0EbSH41FRJMXAGcgYwmoBwcAjkDQk8 z+EaI9TK0JKEyTUCk/s54vscEkxffRYQBOjZO0e2ko2s7qyNYoJ9zmdKEAGQnE3vh9u0 S/7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=co/l04akHW3etWgSy2OztNXt7PMFZ7ZHbsWH7CoJ+gE=; b=jM3WS2NGJAwC2MeKkMbSh/CxztqnYdH+o04Jd8VRYTRvShx2nG5JyXIHqe+R7HPqHg iuKhEpkBFx0LSt3vOSyd8h7rYeS4ym+vJzN7HAZYL+ziIzxdabKR8rONU/Kp+qWyvnVS E0ilRA+yYz8nAqKUGC0m8sPjje8CI/LgLoS1gATA1DcIdDBjl3nXcWnTfqxbzTPLHaTL ztTs0DdJhPXT2HwoXazIYi9FTp59t09pcNjkWRTV3YlTg0WWZDpk6lsWFwr1LB1/wlAY 1y3kssseetgFLn8Qx5thVimA1sT1aD6HCQcbdRqtGN3xZ8SSf4b9tT/94A669mx5U3G3 LMbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si16445238eds.548.2021.08.24.02.22.27; Tue, 24 Aug 2021 02:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235604AbhHXJVj (ORCPT + 99 others); Tue, 24 Aug 2021 05:21:39 -0400 Received: from mail-ua1-f51.google.com ([209.85.222.51]:44729 "EHLO mail-ua1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233910AbhHXJVh (ORCPT ); Tue, 24 Aug 2021 05:21:37 -0400 Received: by mail-ua1-f51.google.com with SMTP id x6so7017366uai.11; Tue, 24 Aug 2021 02:20:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=co/l04akHW3etWgSy2OztNXt7PMFZ7ZHbsWH7CoJ+gE=; b=gGXd/9s92Xbo+qZx0v2VaK1u2ZNNZbwaaLTK7HKQq4hLD8OQzZaZLQEPyUr29XG7Bc cw/G2vVq/0KZW5Dg5xpIgsQirv52ywALIFlcvDhnMTRYFPG4Qtote3BW95yLG/Pyn1Eu a8BOdB+0xdIgV4gudTenHVEJsNM4jAmCg+59tw4m9Fyrj0ZN7mObhMa8fOx0zeGDhbb9 tfFoVB85hJkari8G9X8eUiqslwLNTsB6pIdS3dcKFhN8dqYEtZlr+heicqgXedjbxnjZ nGNUN3af0BNbq+wnqWflo9AA8EYzcaLEL8no4nLS0JGisGsBwVPVUHJRFY1ZRJVSvdLD 75Dw== X-Gm-Message-State: AOAM532/vyopPqAeP12107Q+aROpIcqV/dNt286mQjbyRKlI6zuTUFpP CDPYIDrNmn5qvMNrwqqDPuTgQTOhZ0DRjVCQ8aYiBI9G X-Received: by 2002:a67:c789:: with SMTP id t9mr27382818vsk.60.1629796853308; Tue, 24 Aug 2021 02:20:53 -0700 (PDT) MIME-Version: 1.0 References: <20210324223713.1334666-1-frowand.list@gmail.com> <20210327174035.GA291160@robh.at.kernel.org> <3e6710e7-08ac-7d1b-aa69-bcd36f0d932a@gmail.com> <20210526061144.yvoaurpz75a3bsjr@vireshk-i7> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 24 Aug 2021 11:20:41 +0200 Message-ID: Subject: Re: [PATCH 1/1] of: unittest: rename overlay source files from .dts to .dtso To: David Gibson Cc: Frank Rowand , Viresh Kumar , Rob Herring , Masahiro Yamada , Michal Marek , Vincent Guittot , Michal Simek , Anmar Oueja , Bill Mills , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kbuild , Linux Kernel Mailing List , Pantelis Antoniou Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 22, 2021 at 11:44 AM Geert Uytterhoeven wrote: > On Sat, May 29, 2021 at 12:16 PM Geert Uytterhoeven > wrote: > > On Sat, May 29, 2021 at 7:16 AM David Gibson > > wrote: > > > On Thu, May 27, 2021 at 09:21:05AM +0200, Geert Uytterhoeven wrote: > > > 65;6401;1c> On Thu, May 27, 2021 at 3:48 AM David Gibson > > > > wrote: > > > > > On Wed, May 26, 2021 at 04:21:48PM -0500, Frank Rowand wrote: > > > > > > On 5/26/21 1:11 AM, Viresh Kumar wrote: > > > > > > > On 22-04-21, 13:54, Frank Rowand wrote: > > > > > > >> On 4/22/21 3:44 AM, Geert Uytterhoeven wrote: > > > > > > >>> On Mon, Mar 29, 2021 at 9:23 PM Frank Rowand wrote: > > > > > > >>>> On 3/27/21 12:40 PM, Rob Herring wrote: > > > > > > >>>>> On Wed, Mar 24, 2021 at 05:37:13PM -0500, frowand.list@gmail.com wrote: > > > > > > >>>>>> From: Frank Rowand > > > > > > >>>>>> > > > > > > >>>>>> Add Makefile rule to build .dtbo.o assembly file from overlay .dtso > > > > > > >>>>>> source file. > > > > > > >>>>>> > > > > > > >>>>>> Rename unittest .dts overlay source files to use .dtso suffix. > > > > > > >>>>> > > > > > > >>>>> I'm pretty lukewarm on .dtso... > > > > > > >>>> > > > > > > >>>> I was originally also, but I'm warming up to it. > > > > > > >>> > > > > > > >>> What's the status of this? > > > > > > >> > > > > > > >> I was planning to resend on top of the upcoming -rc1. > > > > > > > > > > > > > > Ping. > > > > > > > > > > > > > > > > > > > Thanks for the prod... > > > > > > > > > > > > The .dtso convention was added to the dtc compiler, then a patch was > > > > > > accepted to revert one mention of .dtso ,though there still remains > > > > > > two location where .dtbo is still recognized (guess_type_by_name() in > > > > > > dtc and the help text of the fdtoverlay program). > > > > > > > > > > > > It seems that the general .dtso and .dtbo were not popular, so I'm > > > > > > going to drop this patch instead of continuing to try to get it > > > > > > accepted. > > > > > > > > > > AFAICT .dtbo is moderately well established, and I think it's a good > > > > > convention, since it matters whether a blob is an overlay or base > > > > > tree, and it's not trivial to tell which is which. > > > > > > > > Indeed. > > > > > > > > > .dtso is much more recent, > > > > > > > > Is it? > > > > > > Well, I wouldn't bet money on it, I just seem to remember encountering > > > .dtbo for some time before .dtso was mentioned. > > > > > > > The oldest reference I could find is from May 2015: > > > > "[PATCH/RFC] kbuild: Create a rule for building device tree overlay objects" > > > > https://lore.kernel.org/linux-devicetree/1431431816-24612-1-git-send-email-geert+renesas@glider.be/ > > > > > > Hm, I think .dtbo is even older than that, but again, I wouldn't swear > > > to it. > > > > Sure. My work is based on Pantelis' work for BeagleBoard capes. > > His code (from 2013?) used .dtbo and .dts: > > > > overlay/v3.10/merge:firmware/Makefile:$(obj)/%.dtbo: $(obj)/%.dts > > | $(objtree)/$(obj)/$$(dir %) > > > > So I might be the one who introduced .dtso... > > > > > > I have always used dtbo/dtso in my published overlays branches, > > > > referred from https://elinux.org/R-Car/DT-Overlays, and used by > > > > various people. > > > > > > > > > and I think there's much less value to it. > > > > > > > > IMHO the same reasoning as for dtb vs. dtbo applies to dts vs. dtso. > > > > It matters if the resulting blob will be an overlay or base tree, > > > > as the blob will have to be called .dtb or .dtbo. > > > > As dtc outputs to stdout by default, the caller has to provide the > > > > output filename, and thus needs to know. > > > > Even if dtc would name the output file based on the presence of > > > > "/plugin/" in the input file, the build system still needs to know > > > > for dependency tracking. > > > > > > Hm, fair point. I was thinking of the the /plugin/ tag as the > > > distinction, whereas dtb is binary and the distinction isn't even > > > marked in the header. But you're right that even readable text labels > > > inside the file don't really help make(1). So, I retract that > > > assertion. > > > > Thanks! > > > > > > We also do have .dts vs. .dtsi. > > In the mean time, we're at rc7 again? That was v5.13-rc7. Now we're at v5.14-rc7... Will we live with the inability to e.g. let make distinguish between DT includes and overlays forever? Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds