ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: Kristen Accardi <kaccardi@gmail.com>
Cc: "Brown, Len" <len.brown@intel.com>,
	"ksummit-discuss@lists.linuxfoundation.org"
	<ksummit-discuss@lists.linuxfoundation.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	Kristen Carlson Accardi <kristen@linux.intel.com>,
	Grant Likely <grant.likely@linaro.org>
Subject: Re: [Ksummit-discuss] [TECH TOPIC] System-wide interface to specify the level of PM tuning
Date: Thu, 16 Jul 2015 08:53:02 -0700	[thread overview]
Message-ID: <20150716155302.GA2304@jtriplet-mobl1> (raw)
In-Reply-To: <CAH3eK3QS6-2spYEKO3dpFFS_Y0czA0vPk9Wfx7iPHmr4ZFFZ2A@mail.gmail.com>

On Thu, Jul 16, 2015 at 03:44:57PM +0000, Kristen Accardi wrote:
> On Thu, Jul 16, 2015 at 2:19 AM David Woodhouse <dwmw2@infradead.org> wrote:
> 
> > On Wed, 2015-07-15 at 18:10 -0700, Josh Triplett wrote:
> > >
> > > > The point here is whether or not we want to have a way to make all of
> > them be
> > > > enabled by default instead and see what happens, for example.
> > >
> > > To some degree that seems like an admission of defeat: we can't possibly
> > > do the right thing by default, so we give up and add a way for the user
> > > to configure it.
> > >
> > > We should be selecting the most sensible combination of power and
> > > performance by default; we should not punt that question to the average
> > > user, *or* to the distros.
> >
> > Not to the user, perhaps. But it's not *so* unreasonable to let each of
> > the distros tune things for *their* class of users. We might want base
> > profiles for 'server', 'desktop' and 'laptop on battery' that distros
> > work from.
> >
> >
> We need to be able to give even the distros more help than they have now.
> The problem is that the distros simply don't have the knowledge to tune
> *all* the knobs appropriately.  If we gave them one knob as you suggested
> (and what Rafael is suggesting) set to a sane default determined by the
> kernel - they could then use whatever userspace tool to change it based on
> whatever parameters they want.

Even if there's a single knob, that *still* doesn't let us turn on power
management features that break with certain devices.

> But although that's complex, it's not the real problem.
> >
> > The real problem, as others have said, is when we have power management
> > features which work fine for 99% of the population, but fail
> > occasionally on broken hardware.
> >
> > We can't easily blacklist the known-broken devices or whitelist the
> > good ones, and we end up having to turn the feature off by default.
> >
> > Sure, a DMI match on "HP" and "TO BE FILLED BY OEM" would often go a
> > long way for a certain class of problem, but even that's not sufficient
> > :)
> >
> 
> driver maintainers don't want to maintain blacklist/whitelist because it's
> hard.  It'd be nice to be able to load a black list or white list of
> devices from the filesystem like we do with firmware.

If the devices are identifiable from userspace, udev or similar could
set these settings from a rules file.

But the kernel already has quirk tables for various hardware, and that
seems appropriate to continue putting in the kernel.

- Josh Triplett

  reply	other threads:[~2015-07-16 15:53 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06  0:22 Rafael J. Wysocki
2015-07-06  1:21 ` Josh Triplett
2015-07-06 14:04   ` Rafael J. Wysocki
2015-07-06  1:40 ` NeilBrown
2015-07-06 14:12   ` Rafael J. Wysocki
2015-07-06 13:49     ` Iyer, Sundar
2015-07-06 14:21       ` Rafael J. Wysocki
2015-07-07  7:53         ` Jiri Kosina
2015-07-07 12:33           ` Rafael J. Wysocki
2015-07-10 17:25         ` Kevin Hilman
2015-07-12 10:01           ` Daniel Vetter
2015-07-13 23:07             ` Rafael J. Wysocki
2015-07-14 16:51               ` Daniel Vetter
2015-07-15 22:44                 ` Rafael J. Wysocki
2015-07-16  1:10                   ` Josh Triplett
2015-07-16  9:19                     ` David Woodhouse
2015-07-16 15:44                       ` Kristen Accardi
2015-07-16 15:53                         ` Josh Triplett [this message]
2015-07-16 15:58                           ` Greg KH
2015-07-17 10:34                             ` Takashi Iwai
2015-07-17 11:41                             ` Daniel Vetter
2015-07-20 22:21                               ` Rafael J. Wysocki
2015-07-20 23:09                                 ` Daniel Vetter
2015-07-22  1:12                                   ` Rafael J. Wysocki
2015-07-22  7:18                                     ` Daniel Vetter
2015-07-22 17:25                                       ` Rafael J. Wysocki
2015-07-22 18:25                                         ` josh
2015-07-24 22:36                                           ` Rafael J. Wysocki
2015-07-25 19:50                                             ` Josh Triplett
2015-07-26  0:03                                               ` Rafael J. Wysocki
2015-07-26  0:16                                                 ` Josh Triplett
2015-07-27 13:30                                                   ` Rafael J. Wysocki
2015-07-27 11:50                                               ` Jani Nikula
2015-07-06 16:33     ` Kristen Accardi

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=20150716155302.GA2304@jtriplet-mobl1 \
    --to=josh@joshtriplett.org \
    --cc=grant.likely@linaro.org \
    --cc=kaccardi@gmail.com \
    --cc=kristen@linux.intel.com \
    --cc=ksummit-discuss@lists.linuxfoundation.org \
    --cc=len.brown@intel.com \
    --cc=stern@rowland.harvard.edu \
    /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