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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFCCAC433FE for ; Wed, 11 May 2022 16:10:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344390AbiEKQKX (ORCPT ); Wed, 11 May 2022 12:10:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344366AbiEKQKR (ORCPT ); Wed, 11 May 2022 12:10:17 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 597BE2375E9 for ; Wed, 11 May 2022 09:10:10 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id t5so3091715edw.11 for ; Wed, 11 May 2022 09:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mtUTymC8Y9rwA+nR5RnPnabs1W1L3QArgmlQfxUtvi0=; b=KejbTgIcaTbt/QNzcRpsI//433QGnVimyV9DcWdNpVyg/b3Kgu3p8PCPgMJjwVjHja fmVl95gma0wX465mkoUCKlfmdRJ1uKxPyyvDWJ24BWigQSe90s3rHSWWhAg9y0arb5Yk sVhhxBQYSc+q6vFjLDE4wZZ6IJrYYIhtcbwPc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mtUTymC8Y9rwA+nR5RnPnabs1W1L3QArgmlQfxUtvi0=; b=5lQm+C1uIRVtzHOAuuXBOttyCkJetgvFqoJjO0zKuIKEhqG8TnmOI/kRy7+A7KqQYk H3so4WxvQIm3xzYZkSQDTGV3JfB5TrbMS5HnK8pmKBXCJoP5RgXh8FuBqM2+xBZMVAm/ QnzNcqcxGkZ6bPoiIqODJLnEahBBVCERWqFTm0JlktYkvp+y1vfrpxAKrx0fhyaMiPWW RxYZySsi8yMwwXVPPj6K7D/JM//VZSE1XKo2LR96ZFkUpr/H2ZAzXmUuAtcBIQT2yGEp 7KIgibUk64nJSV/7oqHa5D6CaPHxH5sL26v+zA6t3Bypbm+y93FdMcYiifNpkgZQmggL cR9A== X-Gm-Message-State: AOAM532OJ1idzDHIK/4Mrnhm/+yVXlXAmj9VwbcAi0ZSlf10X65Qet4K 5j6TmLxDx6mivbtQDquD3tn3me2pq6KQPO69p+0= X-Google-Smtp-Source: ABdhPJy04viqoESytgI4q1Ek4SakkjxKeyiJRVWX39gCRhrk82njx9ouqO/hNdK7w9VbNyVq8quLcw== X-Received: by 2002:aa7:df0a:0:b0:425:d4bf:539 with SMTP id c10-20020aa7df0a000000b00425d4bf0539mr29812050edy.24.1652285408679; Wed, 11 May 2022 09:10:08 -0700 (PDT) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com. [209.85.221.54]) by smtp.gmail.com with ESMTPSA id ot17-20020a170906ccd100b006f3ef214dcdsm1087806ejb.51.2022.05.11.09.10.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 May 2022 09:10:07 -0700 (PDT) Received: by mail-wr1-f54.google.com with SMTP id t6so3694395wra.4 for ; Wed, 11 May 2022 09:10:07 -0700 (PDT) X-Received: by 2002:adf:f50d:0:b0:20a:e096:ef with SMTP id q13-20020adff50d000000b0020ae09600efmr23211050wro.679.1652285406324; Wed, 11 May 2022 09:10:06 -0700 (PDT) MIME-Version: 1.0 References: <20220330090947.9100-1-chenxiangrui@huaqin.corp-partner.google.com> <606cc762-a0c2-49a4-3e5d-d2dbd4595bc7@linaro.org> <55dcf917-7ac0-efe9-8531-b77be682125a@linaro.org> In-Reply-To: <55dcf917-7ac0-efe9-8531-b77be682125a@linaro.org> From: Doug Anderson Date: Wed, 11 May 2022 09:09:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] CHROMIUM: arm64: dts: qcom: Add sc7180-gelarshie To: Krzysztof Kozlowski Cc: Julius Werner , =?UTF-8?Q?Krzysztof_Koz=C5=82owski?= , Mars Chen , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, May 11, 2022 at 12:20 AM Krzysztof Kozlowski wrote: > > On 11/05/2022 04:39, Julius Werner wrote: > >> Wait, we agreed that you don't consider them identical, didn't we? If > >> they are identical, you do not need rev4 at all. So they are not > >> identical... > > > > Well, they are identical until they're not. We intend them to be > > identical. But for practical purposes it does sometimes happen that > > two board revisions which were meant to be indistinguishable by > > software end up needing to be distinguished at a later point, when > > both the hardware and firmware can no longer be changed. We need to > > allow an escape hatch for that case. It does not happen often, so just > > treating them all as separate boards from the start is not a scalable > > solution. DTBs are not free when they all need to be packaged in the > > same kernel image. > > You split more important part of my message, ignoring the point. > > So you choose they are not identical, fine. Why insisting on adding > fallback compatible while not keeping bindings updated? Just don't add > the compatible and work on rev3 or rev4. Doug even once wrote "_we don't > know_ if -rev7 and -rev8 are compatible", so don't make them compatible. > Don't add fallbacks or some generic unspecified front-compatibles and > just work on revision. Somehow, it seems like we keep talking past each other here and it feels like folks are getting upset and we're not moving forward. Maybe the right way to make progress is to find some face-to-face time at a future conference and sit in front of a white board and hash it out. That being said: * Without changing our bootloader or having a big explosion in the number of dts files, we really can't change our scheme. The best we can do is document it. * If we want to change our scheme, we'd need to sit down and come to an agreement that satisfies everyone, if such a thing is possible. That would only be able to affect future boards. We don't want to change the bootloader dts loading scheme on old boards. > >> Right now it's not possible to validate QCOM DTSes against DT bindings > >> because they throw big fat warnings about undocumented top compatibles. > >> This is a downside for us. > > > > But that's a solvable problem, right? As I understand, what Doug was > > initially just asking was whether it made _sense_ to document all of > > these... not that we couldn't do it. Then this whole thread went down > > a rabbit hole of whether our compatible assignments are allowed in the > > first place. If we can compromise on this discussion by just doing > > whatever needs to be done to make the tool happy, I think(?) we can > > provide that. > > None of recent patches from Chromium were doing it, even after > complaining from my side, so why do you suddenly believe that it is > "doable"? If yes, please start doing it and fix the DTSes which you > already submitted without bindings. > > To remind - entire discussion started with Doug saying it is pure > overhead for him. I mean, to be fair I said it _seems_ pure overhead and then said that we could do it if it makes some tools happy. ...but before doing that, I wanted to make sure it was actually valuable. I still have doubts about the assertion that the most specific compatible is guaranteed to uniquely identify hardware. So if the whole reason for doing this is to make the validation tools happy and there's no other value, then at least it's plausible to argue that the tools could simply be fixed to allow this and not shout about it. Now, certainly I'm not arguing that yaml validation in general is useless. I'm in agreement that we want dts files to be able to be formally validated because it catches typos, missing properties, and bugs. I am _only_ saying that I still haven't seen a good argument for why we need to validate the top-level compatible string. Since there no properties associated with the top-level compatible string, it's mostly just checking did some one copy-paste the compatible string from one file (the dts file) to the other file (the yaml file) correctly. To me, that does not feel like a useful check. The other thing I wanted to make sure was that we weren't just going to get NAKed later if/when we had to adjust compatible strings on existing dts files. In any case, I guess I'll make an attempt to document the compatibles for existing Chromebooks and we'll see what happens. I'm still not convinced of the value, but as long as we're not going to get NAKed for documenting reality it's fine. -Doug -Doug