From: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Souradeep Chowdhury <quic_schowdhu@quicinc.com>,
Andy Gross <agross@kernel.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Bjorn Andersson <andersson@kernel.org>,
Arnd Bergmann <arnd@arndb.de>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, Sibi Sankar <quic_sibis@quicinc.com>,
Rajendra Nayak <quic_rjendra@quicinc.com>
Subject: Re: [PATCH V7 1/2] dt-bindings: firmware: bootstats: Add the dtschema
Date: Wed, 5 Jul 2023 13:30:12 -0600 [thread overview]
Message-ID: <20230705193012.GA1642540-robh@kernel.org> (raw)
In-Reply-To: <a0631800-f3d5-ff13-b316-9bc027275a82@linaro.org>
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.
Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-07-05 19:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-05 5:32 [PATCH V7 0/2] firmware: Add support for boot_stats Souradeep Chowdhury
2023-07-05 5:32 ` [PATCH V7 1/2] dt-bindings: firmware: bootstats: Add the dtschema Souradeep Chowdhury
2023-07-05 6:17 ` Krzysztof Kozlowski
2023-07-05 8:33 ` Souradeep Chowdhury
2023-07-05 9:34 ` Krzysztof Kozlowski
2023-07-05 19:30 ` Rob Herring [this message]
2023-07-05 21:14 ` Dmitry Baryshkov
2023-07-06 7:13 ` Souradeep Chowdhury
2023-07-05 5:32 ` [PATCH V7 2/2] MAINTAINERS: Add the entry for boot_stats support Souradeep Chowdhury
2023-07-10 15:20 ` [PATCH V7 0/2] firmware: Add support for boot_stats Brian Masney
2023-07-11 5:30 ` Souradeep Chowdhury
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230705193012.GA1642540-robh@kernel.org \
--to=robh@kernel.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_rjendra@quicinc.com \
--cc=quic_schowdhu@quicinc.com \
--cc=quic_sibis@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).