Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29596606rwd; Wed, 5 Jul 2023 14:29:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1w/1/O9/i/fjUh3vVGp91ye5fLyCfpjR3gpqiAAos6HNXL5GhSwlIpOrBEuBSx2wd5i+G X-Received: by 2002:a17:902:e743:b0:1b4:5699:aac1 with SMTP id p3-20020a170902e74300b001b45699aac1mr355786plf.12.1688592564550; Wed, 05 Jul 2023 14:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688592564; cv=none; d=google.com; s=arc-20160816; b=sHA1xJkjTMwDJqhrrZ30JGiFBpOw7p8EjW3FlIPY5VVslwLFnNW/kp8jE6YjXJ+Vop iJj5FDNweQNXf5X6TbjTBdYzilT05g1iAJyMTM/x5X7L/cDiOmaYpkB8zF2q2Fn6Sfq+ WIswsdaHPW7UZDmxkZnJNNVSwVHTnyd8eQVRIIk9g4tKh5faCkbs7qJs3OdgupmRkYPQ qopZEU3i4RPVx3lZ0PF0QfdIdJkivnCcFV7cAGbM9ef2i9I2U23C3TluTkByOVHJgoEZ 5sOpGNTBMhpPg9myFWngs3cE1lZEW+52vf1RGQtC2v4uzStoG761vJFXjnkiiNqzyCJw mEgA== 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=jXh1qp3VcG4x7VyPV9/wVqCpHKyRAdF4uZDV5Kq0EWU=; fh=7GA2Jrxc3HRN5UdGkYb4s+WcpKBgoJYXB59LUv1YFVA=; b=TjNHQUWGVSQWlBIebKRCI61WDrg2d0iH7GmE5Tb6a/PxRmLbPHbe+6IJ0AJcE1jPec +7W9cSRdMuQ8l56KKgFlqQZUk7zh9vJ4aYe0OWa1GxPEDidMF3lJc/4ztL6OsyAXOUlh xN3KwciVrQ4LolnEz0BDZC3fz46ThTPQvEyOZ1zOTK/zEvfb7IqExCtoOciNPy3SpHi+ 5SL3eYxBdGZmgxJ9ozEH9c2pZKWp8Bpa78aImI/48WDvnBum7661Zngm3k0u9Qmct33v a1hcqJkHx5P5KRmqFJo8O+TQk5yv2qlidYssZ4yB3QAnPxxPV6kogVV+7PneLg24NNyo 0FAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LGDjVr75; 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 c21-20020a170902849500b001b3d822f131si22166220plo.239.2023.07.05.14.29.09; Wed, 05 Jul 2023 14:29:24 -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=LGDjVr75; 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 S232005AbjGEVOw (ORCPT + 99 others); Wed, 5 Jul 2023 17:14:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230439AbjGEVOv (ORCPT ); Wed, 5 Jul 2023 17:14:51 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1F9619A0 for ; Wed, 5 Jul 2023 14:14:46 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2b703caf344so5717501fa.1 for ; Wed, 05 Jul 2023 14:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688591685; x=1691183685; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jXh1qp3VcG4x7VyPV9/wVqCpHKyRAdF4uZDV5Kq0EWU=; b=LGDjVr757p+L1QWlKXvJ/gAUWsdtaNcGemcGO48U8DQxQFg+HA0sACmPwdhmO6Yije yC9oGziCNSmcU/ONMcQ1ICN2sQKkFIg45jLS4QfTG/8NzfywfoTw/FJ/C7QUGnryOK9S O36ox78hhxZpsPBKKnGASV00AV/X4M36XsVwHeqGo5UbfkLRkgB5wGKs5BdB+D+4URwM mXpMOmat7KRkEhCMUWH36i9ZR7sSJqitAWImjG9cfhMRSIWAMxyeQoqi30aIdBhDNXN+ syXgAPgM8BrSHauYn1cLnIcB1aVoagbk6uSPxvKi6w2R+QcopLIZT2TCX2RxbtN7OkJP 2xgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688591685; x=1691183685; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jXh1qp3VcG4x7VyPV9/wVqCpHKyRAdF4uZDV5Kq0EWU=; b=Gjh9iaQCo9kuMsk9MwCCqVuWt7GCwRF4s4mttCW83cZG3MzrW3AOYdfUO3epHsZjeR L77SPafkTFtnnKfzU/bNAHn1Va2uqDVf0CoKQJFtqlAsbBklmfCcLCks5qwOwiHcOBXI BVhRqMEpqaBD5GKbvzGkPdMvgpxdy9DgVqgwhWe4I6DAOaTtQ6F+EBmijdKk201yiJc4 kMi6U1U6yi9flMoEc/dmY7uchyrtjmE6i/sLQsSigXjllO/K/3zL1vBgAnOlI4qdCB+V Vz33cxApm7wBjbs/Bmx8q52KaCpNU4Ofxey5BIWIRhJT9Qg0i3FPQ1v583vOmJz8pnOm bgeA== X-Gm-Message-State: ABy/qLat8FmsCoZSyx3KSd32dCwZSv68AuiEv6z9uzmVPigjrD9eLXKq 5VuCdcUHpg/AUconEupdLlyjpQ== X-Received: by 2002:a2e:9159:0:b0:2b6:a3b0:f4d3 with SMTP id q25-20020a2e9159000000b002b6a3b0f4d3mr14294522ljg.26.1688591684965; Wed, 05 Jul 2023 14:14:44 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id v19-20020a2e9613000000b002b6d781b60esm3446940ljh.82.2023.07.05.14.14.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jul 2023 14:14:44 -0700 (PDT) Message-ID: Date: Thu, 6 Jul 2023 00:14:43 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH V7 1/2] dt-bindings: firmware: bootstats: Add the dtschema Content-Language: en-GB To: Rob Herring , Krzysztof Kozlowski Cc: Souradeep Chowdhury , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Bjorn Andersson , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Sibi Sankar , Rajendra Nayak References: <968fb5d3-6cd8-7850-47e7-682e26f9ee5f@quicinc.com> <20230705193012.GA1642540-robh@kernel.org> From: Dmitry Baryshkov In-Reply-To: <20230705193012.GA1642540-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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,URIBL_BLOCKED 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 05/07/2023 22:30, Rob Herring wrote: > On Wed, Jul 05, 2023 at 11:34:35AM +0200, Krzysztof Kozlowski wrote: >> On 05/07/2023 10:33, Souradeep Chowdhury wrote: >>>>> + $ref: /schemas/types.yaml#/definitions/string-array >>>>> + >>>>> + abl-time: >>>>> + description: The property to store the duration of abl in ms. >>>>> + $ref: /schemas/types.yaml#/definitions/string-array >>>> >>>> I have no clue what this entire binding is about. Nothing can bind to >>>> it, no usage explained. Properties are not used to "store the duration". >>>> This does not look like suitable for DT, drop entire binding. >>> >>> This binding was created as per the suggestion on version 6 of the patch >>> by Arnd. The idea was that these 2 devicetree properties will be used to >>> populate the bootstat values from the bootloader and exposed to the user >>> via /sys/firmware/devicetree/ directly. >>> >>> Details in the link below:- >>> >>> https://lore.kernel.org/lkml/7d397e67-5d56-4975-98af-1ac9746c07f4@app.fastmail.com/T/#mbdc9ad95fcbb5ad7b56c6996a3933899b42d982c >>> >>> Can you suggest any alternative way to represent this as a binding? >> >> Then you should clearly state in the binding how this is going to be >> used and who is going to populate it. Not only in the binding but also >> in commit msg which currently has 0 rationale and answers to "why". Your >> commit msg explained only "what", which is usually obvious and much less >> important. Your commit should stand on its own and should clearly >> explain why we need this feature at all, what problem it solves. >> >> And before you claim that there is some discussion under link or some >> cover letter - these do not matter. Commit and bindings matter. >> >> What's more, I don't think that Arnd's advice is correct here - DT is >> suppose to describe hardware or firmware. These properties are coming >> from firmware but they are not describing any firmware or hardware >> characteristics. Instead they are debugging of current boot status. >> >> I will leave the decision on that for Rob, however anyway binding is >> very vague and incorrect, so I would expect he will come with the same >> concerns regardless whether it is suitable to DT or is not. > > My main concern here is not so much having this info in DT, but whether > it's just the start of various properties. Either because there's already > more data and these are just the 2 things you care about now, or because > once we enable this it's an invitation to add more properties. > > Boot timing information seems like something multiple platforms might > want and only having 2 stages isn't extensible. I preferred the previous implementation idea, where the Linux driver will parse firmware data, instead of bootloader doing something for us. Not to mention that that approach would allow us to get boot time stats on older platforms, without waiting (indefinitely) for the platform vendor to update the bootloader. > > Rob -- With best wishes Dmitry