Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp353767iob; Wed, 11 May 2022 16:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMFBA0JQd4GpKyIZEfHttIOBBuFDonqtIb5ocPeWpNNJ72HGq3OnLQ8h4eHWWNRnxw3nvd X-Received: by 2002:a63:751d:0:b0:3db:2e7b:f93 with SMTP id q29-20020a63751d000000b003db2e7b0f93mr3823405pgc.496.1652311233448; Wed, 11 May 2022 16:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652311233; cv=none; d=google.com; s=arc-20160816; b=Z+ghgvBLBS8e87M4wxmBeLzP2xqWxKTo+I/iMwW9VQoe8NEhwWwpnz+G2ruGZXgeVP REtKndXm7Usy+HH95xHrpWb/iyQRYBV6MRdNZkx/M8ka/V0mPszd+XD62dR4PZznp9ig klytE46niHOhPKjIbENuNavxfILSTEk2yKVf/gSzysmoF6foqjzE/7qg2od5Me+xMDMW 8hDwXRD0TTzRZ2mfIMR4ml7BfKJrlIp227VnPXRHY6v4ZtoPtONBBYKsLgvdIMNVWYDm zVvbypWEYwlZqm/LRmQSW+61Hz1v2BP11awo6XW4OicbpncRfEWMw4VXh3qQtxQi4H4d s/tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e3giz9a5p6PvP3nI2WSHt0o4PXurVZJIiRH9HCmnbgA=; b=D4z43+XbXY000B04dzUgRDfuVWr2Ho9gwn2Fudg7SFmc60u835wkPYY5daMpBApn/2 3qgzsc48tNUBiUKR9NAs3cAZB8vOgg+zla9BjU93GVN9cN7K80hYXZIWb6avBYrOcWzj sxrdo1KMO6+bfmq8IFiqVL8/XlYGcIm/I+gqhPqVbQ6fg6tvsl+1wYnbzxS382hYlhtG 3gvi2or0C67ieTp11U/5hVEnvHCANJiRug29M3z93jiO6crQf1GZzRahZzlVy4xwIyxq G4XUKASy7IdmvUmfbFDjZpL5T0pluyvn8RpsugitLivIYAdATK/g6ZZ/W6Y0WZQsrV6m nWeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uBPOYhmJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a631749000000b0039854fb2001si1214515pgx.496.2022.05.11.16.20.21; Wed, 11 May 2022 16:20:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uBPOYhmJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345200AbiEKQzR (ORCPT + 99 others); Wed, 11 May 2022 12:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345197AbiEKQzO (ORCPT ); Wed, 11 May 2022 12:55:14 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 967F3E44C8 for ; Wed, 11 May 2022 09:55:12 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-e2fa360f6dso3548509fac.2 for ; Wed, 11 May 2022 09:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=e3giz9a5p6PvP3nI2WSHt0o4PXurVZJIiRH9HCmnbgA=; b=uBPOYhmJyrZG0FGOnJJGKTdVuYYwxHxOhcB6nDfe79s8E2xsWIOzqB0165KN9XHcia tBfF4m0V5qF8xggSG6dLqi/4kKpcisL04i5iHEIHWvu6Ilo2BELbDPs0dlDBNAOy/KHa 3H7EZAxGJrU/g9FUsizaDPkHleJbdPbkuDSP3PVqCe+LhSs3L2uvcV1YsXDudQ9V6hgw f88baRvNO3b9BQurljvLlIuVYqaOhKwfoJlP6qPbSbQj2foXq2bWroCazfUaOrGRrmVs 1TIIA1rWkPC/eGu+f9SOmFUBsPjtq1tUS/nSqfY9TLtDQd2dBirMrl/5hFb8A7hZhy7o bgVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e3giz9a5p6PvP3nI2WSHt0o4PXurVZJIiRH9HCmnbgA=; b=PYMtlRGDMkNlou/iq8zwI2Q0Te/x3tr2rZeEKcvFs0mOVyQo9p6SUrwQznszBrmy2x 0h5Jl5n6lIvkouWDCwhNrVKaUxSIFmbz7T00Gsd0Cumff7N/P8CfegrnsNVZqBHsBvcV EznYC3mEB6n8wBZzihDHUs2tA5K22BaQC3kPDDEIQBvZ6WajTc02kMXCMcIoi1xjK20z CAF+WOEdQrMdVCJwPXcreSjrcyWUEZXnBUA6g7Dxuz9M7HWEUyT/BwS6w7ajCFx75Z12 W3yoRPfKKylq8vhJf1p1Z7U6+uyLNps/+7RW7osUkK/85vwz9qWERS0GGeygRVf3eGhM tPaA== X-Gm-Message-State: AOAM530oQ+iLarRdLvt7138CoA2aDE1Y3LxApZeklelNQy+hK2HAkQaY hhDGcxOd/bUmo8r/qOolw8oc6A== X-Received: by 2002:a05:6870:a707:b0:e2:cc85:d98 with SMTP id g7-20020a056870a70700b000e2cc850d98mr3275858oam.131.1652288111734; Wed, 11 May 2022 09:55:11 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id g6-20020acab606000000b00325cda1ffbasm895644oif.57.2022.05.11.09.55.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 09:55:10 -0700 (PDT) Date: Wed, 11 May 2022 09:57:41 -0700 From: Bjorn Andersson To: Doug Anderson Cc: Krzysztof Kozlowski , Julius Werner , Krzysztof Koz??owski , Mars Chen , Andy Gross , Rob Herring , Krzysztof Kozlowski , linux-arm-msm , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Subject: Re: [PATCH] CHROMIUM: arm64: dts: qcom: Add sc7180-gelarshie Message-ID: References: <606cc762-a0c2-49a4-3e5d-d2dbd4595bc7@linaro.org> <55dcf917-7ac0-efe9-8531-b77be682125a@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 11 May 09:09 PDT 2022, Doug Anderson wrote: > 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. > In particular we don't want to end up with a scheme that requires you to spin new software for hardware that you think is compatible with the existing description provided to the software, that would just cause logistical overhead. > > > >> 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. > I don't have a reason for rejecting such changes, as long as it doesn't affect your ability to run off existing DTBs - but in the end you'd be the ones suffering most from that... Regards, Bjorn > 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