Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2311521ioo; Mon, 23 May 2022 15:38:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2wca+rr+iP7csSxwhBjjJqn+/dqqtnoHgQIt3sQtVVbHab5MBESyDGqbYL32Zkti6zIaM X-Received: by 2002:a17:902:9043:b0:14f:aa08:8497 with SMTP id w3-20020a170902904300b0014faa088497mr24736086plz.109.1653345532705; Mon, 23 May 2022 15:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653345532; cv=none; d=google.com; s=arc-20160816; b=xjZA05h7idjBEImpRfnolc4vELw16B074ixdzL+xKClgRZMi2m0ATEAJ/SWr7cPhqV +fwFnBf6HDJQ81Iqp1mVvWmG/N+1o4qx66Gk5lSHZF4qL/IBAS+3wqHxk1mjynlS0wx1 pjALhZjGGCDFtBuBlT/3p4ZVXQtdThiVqSY3yCtC2K61BfamMZprejNOwtk55QaKdDfE gxo2P3s6/PFYO5mbT7bWrTub+tMgD4Betu0Gekc17ail1rlFOQpE4hR2kccExorpEg9B u1KHYH6DLtORMRcQNj67HcRRXEkCoctSh/cnYMO5ZJDDz55kBkU/rpiD+IvoXuvoyj8h KPSw== 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:dkim-signature; bh=szpHbyssy3pR92tHPw2c+r7gOFG688ltDB8dep/mxSw=; b=dVX2Fev5cCbsE4iacbJ6zXbBRF8TrNiL+hdL3klh3tfBlaLWlyxpvnkzdOP10UyLUx i0W779djbzHYklYiNLPSaUtgHhU8MjyslXcqBiDHNojX5L8Ae73a3sYHIBKH+Mo/z1eY XkmEms4+ccNbdpZPL8l6QzdDijTuJOSVWzhvUdn9zN/M9czbOFQMP/WU+VTwfsKd+icN IuilJb3sw+1Mv7Z97S6q7G78GlMKSD/Jtm6yjntnMitYlIMOiZCBw9aoyHEZnHkA4YWw RXRTN2D2SibyQh7y53JhVujv6lOTvLJ4ppn/Xj+Hv/iAbsudEkuUjkTEZFojAMBdHrhq aaXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O+1anRyY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a635a4b000000b003ab2603ce1asi11597305pgm.262.2022.05.23.15.38.40; Mon, 23 May 2022 15:38:52 -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=@gmail.com header.s=20210112 header.b=O+1anRyY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231865AbiEWVaR (ORCPT + 99 others); Mon, 23 May 2022 17:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231465AbiEWVaF (ORCPT ); Mon, 23 May 2022 17:30:05 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 595FAA3381; Mon, 23 May 2022 14:30:04 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id p19so1092113wmg.2; Mon, 23 May 2022 14:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=szpHbyssy3pR92tHPw2c+r7gOFG688ltDB8dep/mxSw=; b=O+1anRyYFBUQoaX7dUDxSVnoc5f4zDJd+/tIByNkeoinJxa5tIeVZZpelKrE0FqoNo OZgOVS31HeCzlfDb7tpu0Be1eVBZxWJPzx7RfH2OCO73s9WyPFwuoXtDGVVoB8AMb2Yi 56M5xUiEf1zCzMnZcBzNT/4cAh1b1CeRF9ah6nVWB8X/UOoWIpJcAXgmi0Ha7udrcy1j 699DxcjWIUoATgdE/um3C9/U7wZz6TNAULxRaQoR+jxSfvrh4tyY1twMsgEek7fEEaHk HQ8GOPxI6lv0JPF2hHhzzGpJBDsmH9exbxIWte78wVwxrA5y9b0RzzUaWBtwFS3VzxCJ lCdw== 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=szpHbyssy3pR92tHPw2c+r7gOFG688ltDB8dep/mxSw=; b=cqcrjN9hT293kJKNVS0KxOZFoxK6DVxpXCAWMIPwnPjxefaDddMYSNZC15CKM5NGZX amlqvKnSxHH5vCyToXyR7Pez6LC/AZLsM99g+LJ6Hduqfz6d7xYiLuMbxiunsD/dIvv7 oTUGN/efGLdIVTETd/tbkvJRmEPvNPBd64f+CkRrDjfRD1UG1jfu5mw4DgCyLWRh9Q48 huN4Ry4auEnJseWJlkRrBlKHRc/IK9P0OKDYcvKRBLhYDt8PHOkbYEj430FtWa6Dbhgs XP4O/J/fsLjX8drwJcL/pJIHtxJxCU2BvO8i7R18epoAmGQzobeLsws+GiX4GcnaBbsL wGqg== X-Gm-Message-State: AOAM533dI2z9TsvVL8R7JetZNFOBaeDB7M8CcAFyVwj7YslBwoTxnIE1 NIRsXPfH/YmQ7HEYc+KZI6chbMT5G8/xIqaZkbDQmno0 X-Received: by 2002:a05:600c:3843:b0:397:476f:ceb8 with SMTP id s3-20020a05600c384300b00397476fceb8mr860129wmr.200.1653341402568; Mon, 23 May 2022 14:30:02 -0700 (PDT) MIME-Version: 1.0 References: <20220522195138.35943-1-konrad.dybcio@somainline.org> <53d5999b-88ee-24db-fd08-ff9406e2b7b7@linaro.org> In-Reply-To: <53d5999b-88ee-24db-fd08-ff9406e2b7b7@linaro.org> From: Rob Clark Date: Mon, 23 May 2022 14:29:50 -0700 Message-ID: Subject: Re: Removal of qcom,board-id and qcom,msm-id To: Krzysztof Kozlowski Cc: Konrad Dybcio , Andy Gross , Arnd Bergmann , Bjorn Andersson , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , Linux Kernel Mailing List , Olof Johansson , Rob Herring , Stephen Boyd Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, May 23, 2022 at 1:21 AM Krzysztof Kozlowski wrote: > > On 22/05/2022 21:51, Konrad Dybcio wrote: > > Hi, > > > > removing these properties will not bring almost any benefit (other than making > > some checks happy any saving some <200 LoC) and will make the lives of almost > > all people doing independent development for linux-on-msm harder. There are > > almost unironically like 3 people outside Linaro and QUIC who have > > non-vendor-fused development boards AND the sources to rebuild the > > bootloader on their own. Making it harder to boot is only going to > > discourage people from developing on these devices, which is already not > > that pleasant, especially with newer platforms where you have to fight with > > the oh-so-bright ideas of Android boot chain.. > > > > This only concerns devices released before sm8350, as the new ones will not > > even boot with these properties present (or at least SONY Sagami, but I > > doubt it's an isolated case), so other than completing support for older > > devices, it won't be an issue going forward, anyway. But there are give > > or take 50 locked down devices in mainline right now, and many more waiting > > to be upstreamed in various downstream close-to-mainline trees that should > > not be disregarded just because Qualcomm is far from the best at making > > their BSP software stack clean. > > I actually wonder why do you need these properties for community work on > such boards? You ship kernel with one concatenated DTB and the > bootloader does not need the board-id/msm-id fields, doesn't it? > > Not mentioning that in the past bootloader was actually not using these > properties at all, because it was the dtbTool who was parsing them. So > in any case either your device works fine without these properties or > you have to use dtbTool, right? > > > > > One solution is to chainload another, (n+1)-stage bootloader, but this is > > not ideal, as: > > > > 1) the stock bootloader can boot Linux just fine on most devices (except > > for single exceptions, where beloved OEMs didn't implement arm64 booting or > > something) > > > > 2) the boot chain on MSM is already 3- or 4- stage and adding to that will > > only create an unnecessary mess > > > > 3) the job of kernel people is not to break userspace. If the > > device can not even exit bootloader after a kernel upgrade, it's a big > > failure. > > The job of kernel people is to follow bindings and since they were > introduced 7 years ago, I would say there was plenty of time for that. Then we should document these fields to reflect reality, rather than remove them. The kernel isn't the only consumer of dtb ;-) > If the dtbTool support for the bindings is there, then there is no > breakage, because you had to use dtbTool before so you have to use now. I don't believe this was the case? At any rate, why are we trying so hard to make our lives harder? Let's just acknowledge reality (bootloader uses these fields), document it, and move on with life BR, -R > > > > If you *really really really* want these either gone or documented, we can > > for example use them in the SOCID driver, read the values from DTB and > > compare against what SMEM has to say and for example print a warning when > > there are inconsistencies or use it as a fallback when it fails for any > > reason, such as using a newer SoC on an older kernel, without updates > > for SOCID read (which are sometimes necessary, which was the case for 8450 > > recently, iirc). > > > > My stance is to just leave them as is, as moving them anywhere, or removing > > them at all will cause unnecessary mess and waste time that could have been > > spent on more glaring issues.. > > > > Konrad > > > Best regards, > Krzysztof