Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2353561ioo; Mon, 23 May 2022 16:55:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJys+sNZOAH5wCszpitJaEnUxskDmG7pZAZRCJe1lgdI5XYSnFZVeSfWuNua43lGaxRJZLTX X-Received: by 2002:a62:5c3:0:b0:50d:4274:4e9d with SMTP id 186-20020a6205c3000000b0050d42744e9dmr25896615pff.54.1653350130385; Mon, 23 May 2022 16:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653350130; cv=none; d=google.com; s=arc-20160816; b=w6PFonkeOqUmo/ANgjA6id6/6nq8Lw82zCz53OAG2gcSjoktR6mf2gwRMe0rXMq4Y7 p+7jXUHbKJxidhQp4fgRf314lgOzHf5nxYJbZl1H8vDOntpDOG3MCS3BCpsMZbapBPnS y1AT1q3xBn8MbVbtFvzx7whGRdCzFq74MZUkrJjc+6bQubaHaJ7t+2q/j6FiauWDaC2b 2umEeEEYEPdNIF9EF+p8Bi9aMEwZz4XFVuTJGeYir6u21r2jMeh9YpoxcpIjFjmSb6Xe l3sj1D+KsX555aRDUMZExF5XTP4qbUdly+/m9u+3hTWY5lwag4EPiFTJT7ajuUiKYS63 wAaw== 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=hrKt0QGjGIxbViKst5o/kBBnQcNcG0rcEf/9wT/w/jA=; b=cOcXhH1h20jFfTVdCa+wRnxf2kS5Hq5hmPRNJfHx+8b0y3g9N+pFdbsvXc2n5vmIQH wmTK63TdQDtJ+coviX8diHiwyZ/Jxc+M3l/S/vh+mr7ckLR+QSw7wpRlZD6yPK9XkSdp /wWMvq1NKzZsIsx7Rh6UdjS+eNBH++N1BliBM7EKPS08MyEH09nrKItLAcYxCJ+grnVb QqUQGt6njkbYDZOmcx/AII+HJ+ot5LNt4qCYjhcQSVp2vZtT2jtWE8u0wHQHBkP+UHR7 Pql9MxZ7APq8f+OmPRmDApwv3Cr+VniVyiy0FzeXAJqb+gl7r9h2TVnj3xzB1wIYEeFP Qpvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l8CPNUkC; 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 q137-20020a632a8f000000b003fa3b85fa61si7232707pgq.77.2022.05.23.16.55.18; Mon, 23 May 2022 16:55:30 -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=l8CPNUkC; 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 S231476AbiEWWTQ (ORCPT + 99 others); Mon, 23 May 2022 18:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231337AbiEWWTG (ORCPT ); Mon, 23 May 2022 18:19:06 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AFC67980A for ; Mon, 23 May 2022 15:19:05 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id u3so13597871qta.8 for ; Mon, 23 May 2022 15:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hrKt0QGjGIxbViKst5o/kBBnQcNcG0rcEf/9wT/w/jA=; b=l8CPNUkCVan0AA0UEUaw/R/FXr1o7HdldIZ8tYacWXgGA3HxITRA9Ptz2zYmVgPZES GiAfp0OuHTFdcKLCIMx/lwqK5ZYr+WCG1dO4MEO5jTSPO3uPs7Q/w9qLZMSFn6TvgkFB rm9ILqGKmwi8KtIAdb7G6EevQpMSrFFsGnl/kGfO7TCqA6bnnjGZ9Dm0clFjRMocekhd RHHNz04nRft79ukdZFjdFNrjZAmSByDcs0Rl7PfTx7kRcfH0PmYV+fqgsDIMxgAFYYiW nGvaE27GwsUZ5O/mfVVYHtQ0qWlCXNDvWrJOo/0LVjJ3olSPL6kxEUT6Ee2Z5pZ/f10n Hhgg== 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=hrKt0QGjGIxbViKst5o/kBBnQcNcG0rcEf/9wT/w/jA=; b=szF1KUFyioX+MLmBwRDhnc5HkaTXdRi2tmlA/Vp1vGG1Rm8EHqMVofJzrtKyjBKVta bE+l2VLwGMYTmdg/8VIMwmpJnDx356vbE6vDrPN6bXd/HwnTLlsEh2tN444ge6X6AR/r Ohdqrc18pGIzFNQkMDJ+qhiuCzvSrfbrJRM2vy/9VmgdkOcMB5pV2XQSnxwR1w27ZzqT lIXAxnhEP9aAD0rZ/2IDsgTYP9H3pN9Nf7DFBXpehz81+5bie2WxV5IEr4rKp7H9xPuW +Bbuof/6plFhXkHSrAAqn3+b26u5dgnrbhQzV70YNg6KVEXuslIPy+3WGFi4o91MBMPg saqA== X-Gm-Message-State: AOAM5330KbWdrEPhxakdrCmDGg4YytmgwBEBevDeE9HTftKsVRMIBNYL Q7zZNLz9VIg8HtB9Mp62BeaayfeDZZ3jagmjkdTLrQ== X-Received: by 2002:ac8:5e54:0:b0:2f3:f4ee:efbd with SMTP id i20-20020ac85e54000000b002f3f4eeefbdmr17668410qtx.295.1653344344533; Mon, 23 May 2022 15:19:04 -0700 (PDT) MIME-Version: 1.0 References: <20220522195138.35943-1-konrad.dybcio@somainline.org> <53d5999b-88ee-24db-fd08-ff9406e2b7b7@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Tue, 24 May 2022 01:18:53 +0300 Message-ID: Subject: Re: Removal of qcom,board-id and qcom,msm-id To: Bjorn Andersson Cc: Krzysztof Kozlowski , Konrad Dybcio , agross@kernel.org, arnd@arndb.de, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, olof@lixom.net, robh@kernel.org, sboyd@kernel.org 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,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 Tue, 24 May 2022 at 00:50, Bjorn Andersson wrote: > > On Mon 23 May 02:21 CDT 2022, Krzysztof Kozlowski wrote: > > > On 22/05/2022 21:51, Konrad Dybcio wrote: > > 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? You know, this reminds me of an old argument dating 2005-7: why do we need to support multi-platform kernels, while we can boot a good plain single-mach (or a single-board) kernel on a particular board. Supporting msm-id/board-id/pmic-id gives us flexibility. Dropping them would remove flexibility. > > 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? I think it was supposed to be done in an opposite way: to let dtbTool process compat strings and generate the properties in question. > > > > > > 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. > > > > We're following the bindings and don't pick board-id or msm-id unless > there's a particular reason for it - which typically is that the > downstream bootloader requires it - we don't use the properties on the > kernel side. Or unless we have another reason (like handling a single RB3+RB5 image). I suspect PmOS might also like shipping a single image for some/all of the supported devices. Or we might use that for the qcom-armv8a OE machine. > > > 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. > > > > Among all the platforms I maintain, MSM8916 (db410c) is the only one > where I use dtbTool - because it refuses to accept the concatenated > dtb. It's strange, I have been using concatenated dtb with db410c for ages. -- With best wishes Dmitry