From: Peter Zijlstra <peterz@infradead.org>
To: Qais Yousef <qais.yousef@arm.com>
Cc: Doug Anderson <dianders@chromium.org>,
Benson Leung <bleung@chromium.org>,
Enric Balletbo i Serra <enric.balletbo@collabora.com>,
hsinyi@chromium.org, Joel Fernandes <joelaf@google.com>,
Nicolas Boichat <drinkcat@chromium.org>,
Gwendal Grignou <gwendal@chromium.org>,
Quentin Perret <qperret@google.com>,
ctheegal@codeaurora.org, Guenter Roeck <groeck@chromium.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] cros_ec_spi: Even though we're RT priority, don't bump cpu freq
Date: Wed, 24 Jun 2020 18:01:09 +0200 [thread overview]
Message-ID: <20200624160109.GK4781@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <20200623164021.lcrnwpli7wdlsn5i@e107158-lin.cambridge.arm.com>
On Tue, Jun 23, 2020 at 05:40:21PM +0100, Qais Yousef wrote:
> On 06/22/20 11:21, Doug Anderson wrote:
>
> [...]
>
> > > If you propose something that will help the discussion. I think based on the
> > > same approach Peter has taken to prevent random RT priorities. In uclamp case
> > > I think we just want to allow driver to opt RT tasks out of the default
> > > boosting behavior.
> > >
> > > I'm a bit wary that this extra layer of tuning might create a confusion, but
> > > I can't reason about why is it bad for a driver to say I don't want my RT task
> > > to be boosted too.
> >
> > Right. I was basically just trying to say "turn my boosting off".
> >
> > ...so I guess you're saying that doing a v2 of my patch with the
> > proper #ifdef protection wouldn't be a good way to go and I'd need to
> > propose some sort of API for this?
>
> It's up to Peter really.
>
> It concerns me in general to start having in-kernel users of uclamp that might
> end up setting random values (like we ended having random RT priorities), that
> really don't mean a lot outside the context of the specific system it was
> tested on. Given the kernel could run anywhere, it's hard to rationalize what's
> okay or not.
>
> Opting out of default RT boost for a specific task in the kernel, could make
> sense though it still concerns me for the same reasons. Is this okay for all
> possible systems this can run on?
>
> It feels better for userspace to turn RT boosting off for all tasks if you know
> your system is powerful, or use the per task API to switch off boosting for the
> tasks you know they don't need it.
>
> But if we want to allow in-kernel users, IMO it needs to be done in
> a controlled way, in a similar manner Peter changed how RT priority can be set
> in the kernel.
>
> It would be good hear what Peter thinks.
Hurmph.. I think I understand the problem, but I'm not sure what to do
about it :-(
Esp. given the uclamp optimization patches now under consideration. That
is, if random drivers are going to install uclamps, then that will
automagically enable the static_key and make the scheduler slower, even
if that driver isn't particularly interesting to the user.
next prev parent reply other threads:[~2020-06-24 16:01 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-10 22:18 Douglas Anderson
2020-06-11 11:03 ` Quentin Perret
2020-06-11 17:48 ` Doug Anderson
2020-06-12 9:24 ` Quentin Perret
2020-06-12 12:34 ` Qais Yousef
2020-06-12 13:47 ` Quentin Perret
2020-06-12 14:00 ` Qais Yousef
2020-06-18 21:31 ` Doug Anderson
2020-06-19 15:31 ` Qais Yousef
2020-06-22 18:19 ` Doug Anderson
2020-06-23 15:56 ` Qais Yousef
2020-06-12 12:52 ` Qais Yousef
2020-06-18 21:18 ` Doug Anderson
2020-06-19 15:38 ` Qais Yousef
2020-06-22 18:21 ` Doug Anderson
2020-06-23 16:40 ` Qais Yousef
2020-06-24 15:49 ` Joel Fernandes
2020-06-24 16:55 ` Qais Yousef
2020-06-24 17:35 ` Joel Fernandes
2020-06-24 17:52 ` Qais Yousef
2020-06-24 17:55 ` Joel Fernandes
2020-06-24 18:29 ` Doug Anderson
2020-06-25 14:20 ` Qais Yousef
2020-06-24 16:01 ` Peter Zijlstra [this message]
2020-06-24 17:14 ` Qais Yousef
2020-06-24 15:56 ` Peter Zijlstra
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=20200624160109.GK4781@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=bleung@chromium.org \
--cc=ctheegal@codeaurora.org \
--cc=dianders@chromium.org \
--cc=drinkcat@chromium.org \
--cc=enric.balletbo@collabora.com \
--cc=groeck@chromium.org \
--cc=gwendal@chromium.org \
--cc=hsinyi@chromium.org \
--cc=joelaf@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=qais.yousef@arm.com \
--cc=qperret@google.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
all inboxes | Powered by JetHome®