Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1664759ioo; Sun, 22 May 2022 23:34:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrgQCkDnO3U3R+fEBLNQNL8VCnULTocrWrEEKGdSEDihxYGwRfS3deiIeUQx/8RVWOZVbf X-Received: by 2002:a63:8aca:0:b0:3f9:f9ed:7426 with SMTP id y193-20020a638aca000000b003f9f9ed7426mr8027985pgd.176.1653287693111; Sun, 22 May 2022 23:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653287693; cv=none; d=google.com; s=arc-20160816; b=ldCnQCgntALQ8mrRpnnqNLRk3KbPltcWWijaUTT28P/rsohNAgIbYXkL87Uh5VrLyx Rox0KKvesCbuQL8fDupDQ5sI3kfjfUtTfWQ08MF60DMGan00u9/hmK6gMdFrE9FHZsxC k5oOM8boXnJqub42LcITmPRrh8krqo2ckBQjeAdpUl0i8Z8RS8y2H0jzmfaiTRCiXpTq q9Y8RfqmdhcAvukvlE51umKjMbQcg0SWEJwhvbSbL6Ppzt2yeUex26wxN9z5wyz9N+u8 CnodGAADi+vly1MwCwzZfw+uYbblTOJ5URl52wi1yNBfNa+yIaHVMGeTK1tFsC04RPIP uaSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=jHcunmHf2CpJYi7ZXbbsUPmEZSudJ1v1OCoxKEjH44s=; b=KE0dMYW/vbBD40lq5OG9ad4QgvU2o2ZFIzJA9Nz2Yt7tyzW9suGMfmxU3S613zwsAo ciuAUT28nD9imx2D7/adI9+wugy1LvfFhj2zRUDGakXAOiu0i5FHbCV5QwiWDWcuLrrE jj7+UGXZUmDKxlHp4PJ6HoxkbuxMLJCXouDNGhx263t0Yyo1m1SNUxrWeIBWBLr6Gb70 Smgtt3Wjob0n7Nw0AsCsyt7MAo1i29BSpA3DC/8zHzMXzGCdFN7SXHbDpfTLemUyauOF a3KtLy8AsISLhPvot1nyH3WK537VuniF0VPqaZpLWPvs32CZ25R+Ieurcv0A0T5eOkqS UaKQ== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id be3-20020a170902aa0300b0015cdfb5dc6asi10230057plb.84.2022.05.22.23.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:34:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5906447AF2; Sun, 22 May 2022 23:09:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233549AbiEVTwU (ORCPT + 99 others); Sun, 22 May 2022 15:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351111AbiEVTwH (ORCPT ); Sun, 22 May 2022 15:52:07 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [5.144.164.164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08B09B6F; Sun, 22 May 2022 12:51:48 -0700 (PDT) Received: from asfdasdfasdf2.riviera.ds.pw.edu.pl (riviera.nat.ds.pw.edu.pl [194.29.137.1]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA512) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 348C41FC90; Sun, 22 May 2022 21:51:44 +0200 (CEST) From: Konrad Dybcio To: 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, Konrad Dybcio Subject: Re: Removal of qcom,board-id and qcom,msm-id Date: Sun, 22 May 2022 21:51:38 +0200 Message-Id: <20220522195138.35943-1-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. 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. 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