Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5674780iog; Thu, 23 Jun 2022 03:07:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTQpPxt68HDokBg3WC+ocAlceVPJXtFkZ5ORo8qTw80WOdPkSenQTb9iVl653QXm4EDjA6 X-Received: by 2002:a05:6402:4301:b0:42d:e8fb:66f7 with SMTP id m1-20020a056402430100b0042de8fb66f7mr9765615edc.229.1655978874006; Thu, 23 Jun 2022 03:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655978874; cv=none; d=google.com; s=arc-20160816; b=OH1mCC1h1SkFlbQQzo1yz2972XnkDGyUHOKi+kwu4/reEVOn2Te9pYY93lC+f+Vxek Wrr99EFYWQl7/vEW14h12h79hmC7Yq33JPzAZHFvlYAz3psXuLKhsoMZWwckeFae2A77 8rgvMCl+nXc0x6k2Sp9ZRdn7UedXSt/544AhdWEoKYVt/vbsmzB4UjtV6Q4BhUEiQqrn jfaP139TEKdh+NPqThKjwtgDYU9MJzgSqgY7/GjEW2If9470qqflh62W405muTvU2y8B TU4dZXcbKvBmTmDZEfr6KV7pJgFE4GuFmNL/+SBmuLUW6DktEiny3wUvXY+fFYY12bww wX6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7I3TTWN/wwecpZB3nSKMxEQGHr0b18hK3/YGntHqpBA=; b=U4kIWffq4HEPVWLCaq8YpC06vddjUHc+kUFGOYvsiAXUlcXsUxU/Q+3wKlm2fNr/g5 ScjZIiEYvuD7EvKfHGuDcVYJD2c5E9STqxHdrrSrnXmOb9wLbWha51G2RAA/Zz6fGKNZ yByWCf/FAJwqk4JUkqT7tMPbsavJDJZzsw/RgrAU+8aKD7xcau1QWM4x4jTi/JFJjs25 JoQptE6m/d7UaYzQsR6lTi1hv93+h1nZwCzLzVOTWLEk5Ccbmy5aWsFhloUz8jv+BTur wrdT0e7FeuVa9XPTqllcCie5Wz+JWq9ARD1lc5O2gGgOHJBHdQucC/bXbmDRsNYnR1OT BIcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=USyuzvpL; 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 y6-20020a056402270600b0042fac24415csi26581833edd.589.2022.06.23.03.07.29; Thu, 23 Jun 2022 03:07:53 -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=USyuzvpL; 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 S230413AbiFWJ4E (ORCPT + 99 others); Thu, 23 Jun 2022 05:56:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbiFWJ4A (ORCPT ); Thu, 23 Jun 2022 05:56:00 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2E0743ED3 for ; Thu, 23 Jun 2022 02:55:58 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id j21so19331399lfe.1 for ; Thu, 23 Jun 2022 02:55:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=7I3TTWN/wwecpZB3nSKMxEQGHr0b18hK3/YGntHqpBA=; b=USyuzvpLnWwvFy1lJjpUXIVRpcZYiLKJAcsuVnYfqiBnV102zpy7fueziMhn2hufjN h4twOEQhWIuonqAnuLn20dl8z81gVcRsMqcS8qgjPHR1JapoGgCVx47tZJXbbtdLZqRJ x5+it83WvReQj8rF5dwqsB9y8PTElnkMEfunpTyKk/l8ia/rU9J88YJR+dI9iHjjGC7Q dZ+K/djNtq+2nhgZfpgYUcY+xBZ3TxepPwermtqxWPf7qIakouHNUyGdYNMVgUxTrhfE wlv/C79XLKcsekEBYBzCFTbCpcaI+vD941Y35hxEP4Gvvt7MDMSaX8x9fmuzj8C+9s3t kKLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=7I3TTWN/wwecpZB3nSKMxEQGHr0b18hK3/YGntHqpBA=; b=CjPM9ORYZGvs2tvir62tkuSyaUk9mCL/Drvuuiv+oAEpFO/RrJF0XuCoSl923qHn0a 1iipS3DQlB4pLe/NuXqtBid39rjlLVDqhnQkAPn3HV9Q65G63hSFS/AUiNXT7I9dyWeV G7lQpZxFKlIWbffXQyzzrB2ZqwHjCP6DYqs9bjKcDtqSiNWoCSFZ3wyWVTpxpyP14nmc TbssXeqBntDyhYMUDURkAB0HaBWf5j73NCbMjgVbMYJZyXAqqCfkpIyrEnKaqQFuY4sP iYSL3x1Efu6apq2o93SzLeL6MCIym5fAyVqoHnRrWdLoCVGZi1OI0E94+WbS4ImC60HM vCuA== X-Gm-Message-State: AJIora89MkxdEMBUmoH0BMJRXI8d+EKjscnmLzRa6z/tbOce1lNCrNf1 Lmkdlg35KhyZPBGN6fPAd3sJ+Q== X-Received: by 2002:a05:6512:304d:b0:47d:c236:566f with SMTP id b13-20020a056512304d00b0047dc236566fmr4848838lfb.641.1655978157101; Thu, 23 Jun 2022 02:55:57 -0700 (PDT) Received: from [192.168.1.211] ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id s9-20020a056512214900b004790b5a0b22sm2923672lfr.239.2022.06.23.02.55.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Jun 2022 02:55:56 -0700 (PDT) Message-ID: <4c4efb31-14c8-9e58-edc2-7e2f787e6976@linaro.org> Date: Thu, 23 Jun 2022 12:55:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Removal of qcom,board-id and qcom,msm-id Content-Language: en-GB To: Konrad Dybcio , krzysztof.kozlowski@linaro.org Cc: agross@kernel.org, arnd@arndb.de, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, olof@lixom.net, robh@kernel.org, sboyd@kernel.org References: <20220522195138.35943-1-konrad.dybcio@somainline.org> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 22/06/2022 14:53, Konrad Dybcio wrote: > > > On 22.06.2022 10:21, Dmitry Baryshkov wrote: >> On 22/05/2022 22: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. >> >> I almost missed this part of the discussion (and Krzysztof had to point me to it in discussion of his patches). >> >> I think this is a Sony peculiarity. At least the distributed SM8350 (lahaina) and SM8450 (waipio) Qualcomm device trees use these properties: >> >> https://github.com/MiCode/kernel_devicetree/blob/zeus-s-oss/qcom/lahaina-hdk.dts >> https://github.com/MiCode/kernel_devicetree/blob/zeus-s-oss/qcom/lahaina-v2.1.dtsi >> https://github.com/MiCode/kernel_devicetree/blob/zeus-s-oss/qcom/waipio-qrd-pm8010.dts >> https://github.com/MiCode/kernel_devicetree/blob/zeus-s-oss/qcom/waipio-v2.dtsi >> >> > Hi, > > I was puzzled on this back when I first tried to get mainline booting on 8350 too. What I think happened, is that msm-id is used in some code paths, but not others (remember there are plenty of combinations including various Google's inventions from all over the years: QCDT, DTBO, vendor_boot, AVB signage, A/B presence/absence of recovery partition, virtual partitions etc etc). > > Frankly, I have no idea why they are still here, but for booting just the kernel (no vendor_boot / GKI / dtbo mess), they need to be absent, at least on Sagami devices. This may be a bug in the Qualcomm bootloader, but they officially have to go with the GKI path to pass Google's compatibility tests, so this may not have been thouroughly tested (if at all), though I highly doubt this is going to change, as vendors are generally reluctant to update their bootloaders and Qualcomm is probably not interested in messing with a useless-to-the-main-purpose feature. I remember that on early sm8450 boards/bootloaders we had the issues with the bootloader (I don't remember exact details). However I just checked the SM4850-HDK + the downstream kernel + appended dtb (which contains qcom,msm-id and qcom,board-id properties) and the kernel boots fine. So, I can suppose, there was some kind of an issue, which got fixed with later ABL releases. Anyway the latest Krzysztof's text seems fine to me. And if anybody adds these properties to the DT, he knows what he is doing and why. -- With best wishes Dmitry