From: Etienne CARRIERE - foss <etienne.carriere@foss.st.com>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Cristian Marussi" <cristian.marussi@arm.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
"arm-scmi@vger.kernel.org" <arm-scmi@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>
Subject: Re: [PATCH v2 2/2] firmware: arm_scmi: round rate bisecting in discrete rates
Date: Fri, 13 Dec 2024 11:24:30 +0000 [thread overview]
Message-ID: <24d1fce2660a4d8296dd7c699020932a@foss.st.com> (raw)
In-Reply-To: <aac4c00dc3ba4599aaa91392dac71d6d@foss.st.com>
On Tuesday, December 10, 2024, Etienne CARRIERE - foss wrote:
> On Monday, December 9, 2024, Sudeep Holla wrote:
> > On Mon, Dec 09, 2024 at 12:59:58PM +0000, Etienne CARRIERE - foss wrote:
> (...)
> > > > I would like to avoid this extra query if not required which you seem to
> > > > have made an attempt but I just want to be thorough and make sure that's
> > > > what we need w.r.t the specification.
> > >
> > > Sure, I indeed prefer clear and robust implementation in the long term,
> > > being the one I propose here or another one.
> > >
> >
> > Good then, we can work towards achieving that. If you can specify how slow
> > or memory hungry is it without these changes and how much this change helps
> > your platform, we can take it up with spec authors and see if they are happy
> > to provide some alternative to deal with this in a generic way.
>
> The platforms we target usually have plenty of RAM, lets say hundreds of MBytes.
> Not that much for some system but enough I guess to store a few hundreds of
> clock rates for a few dozen of clocks (few kByte of RAM).
During last SCMI monthly meeting [1], there was a suggestion to use a lazy
query of the full clock discrete rates list: the first time clk_round_rate()
is requested on an SCMI clock with discrete rates, we can allocated and get
the full rate list once in struct scmi_clock_info. It will be ease to locally bisect
or scan into these supported rates for clk_round_rate() operations.
It would prevent to store the full discrete rates list for all SCMI clocks when
clk_round_rate() is queried only for a very few of them.
Do you think it would be a good compromise?
[1] https://linaro.atlassian.net/wiki/spaces/SCMI/overview#Meetings
BR,
Etienne
>
> That said, thinking more and more about this, I really belive a dedicate SCMI
> clock protocol command would better fit platform needs in the long term.
>
> BR,
> Etienne
>
> >
> > --
> > Regards,
> > Sudeep
> >
>
prev parent reply other threads:[~2024-12-13 11:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 17:39 [PATCH v2 0/2] firmware: arm_scmi: unbound discrete rates, support round rate Etienne Carriere
2024-12-03 17:39 ` [PATCH v2 1/2] firmware: arm_scmi: get only min/max clock rates Etienne Carriere
2024-12-09 10:33 ` Sudeep Holla
2024-12-09 13:48 ` Etienne CARRIERE - foss
2024-12-09 18:01 ` Cristian Marussi
2024-12-10 10:58 ` Etienne CARRIERE - foss
2024-12-03 17:39 ` [PATCH v2 2/2] firmware: arm_scmi: round rate bisecting in discrete rates Etienne Carriere
2024-12-06 20:28 ` Dan Carpenter
2024-12-09 8:16 ` Etienne CARRIERE - foss
2024-12-09 9:12 ` Dan Carpenter
2024-12-09 10:46 ` Sudeep Holla
2024-12-09 12:59 ` Etienne CARRIERE - foss
2024-12-09 17:12 ` Sudeep Holla
2024-12-10 10:52 ` Etienne CARRIERE - foss
2024-12-13 11:24 ` Etienne CARRIERE - foss [this message]
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=24d1fce2660a4d8296dd7c699020932a@foss.st.com \
--to=etienne.carriere@foss.st.com \
--cc=arm-scmi@vger.kernel.org \
--cc=cristian.marussi@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=sudeep.holla@arm.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