Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4734936iog; Wed, 22 Jun 2022 05:00:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sLJCH3KsOgJ/9sbmVNnWp33d65oj/MJLr/VKOKRVic50So6C+o9XCVXH9oUsOUAtlUnFwF X-Received: by 2002:a63:1a63:0:b0:3f6:4513:44af with SMTP id a35-20020a631a63000000b003f6451344afmr2663324pgm.370.1655899236943; Wed, 22 Jun 2022 05:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655899236; cv=none; d=google.com; s=arc-20160816; b=PfzxEtPssSIFiWjeIzcZmjGxIviik2ZrH1TBEvlYq04HbaUDhUGSwgq0wW+uqMFE2Q yKgs6IzlZWEptKC3vAaJu6SMPf9oxJWlw1GdI2xzmvDRiOIOWvoNxauv2TA5w/13qghd acI+DB8d2m+Tgcz8wakg7Opq3F306ZhqpOwIrghnxjSWWDEgBHHFtds/dMza4PIuQUl2 nmZuHBxZf44U7qECVU5y9l3E7bsDstlHm0Zw2pEQwBRCSJFQyncL5CWZv780eYBusABX xks32P1wJGNbvXhAv60Hvfzc3Xw7iPb5/Q8/DpOgL72THJUXU0a44u4gSmrEhDjeD9rF qxtw== 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; bh=lMyeonRHtV7hlDRmClyb9RjNAnckXEmEqJO2ptFz8+I=; b=WG4dy5C7DW5hLx5WIDoMxLCbXjAjNHF8KSCcWiC9WnMBWB5n3iYs9gNEMlZ9CLrHai aTgBFa/s3ENs65BEpUpV2rckhZE8UygT56uhykNGa+R13ExoSYJhOE+qjXFSzNhAg7an BsGJdZG7GZ9GekVTBkNTNSnY8mlBMbOYJ28KszfiWIJptPisH1C8u+6MBIxSHV2y3aE4 yJSPKP/Cuc2y5js+fldSdk6tRp1Ey5EclYcly6PTPawkmg/ey1TlFYxDUDduFhI34Aog uh637Vw7BwtQ+B+uBSTQfYpZCM5VZlMU5/FF6//Yjes4gRh/vHRqBEEKcGy5UQKK0/Tt MeEA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p3-20020a62d003000000b005253f921dd5si4329067pfg.368.2022.06.22.05.00.24; Wed, 22 Jun 2022 05:00:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbiFVLxt (ORCPT + 99 others); Wed, 22 Jun 2022 07:53:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357673AbiFVLxo (ORCPT ); Wed, 22 Jun 2022 07:53:44 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D7B432051; Wed, 22 Jun 2022 04:53:41 -0700 (PDT) Received: from [192.168.1.101] (abxi223.neoplus.adsl.tpnet.pl [83.9.2.223]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id E207120603; Wed, 22 Jun 2022 13:53:39 +0200 (CEST) Message-ID: Date: Wed, 22 Jun 2022 13:53:39 +0200 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-US To: Dmitry Baryshkov , 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: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 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. Konrad