All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: Pekka Paalanen <pq-X3B1VOXEql0@public.gmane.org>
Cc: r.spliet-+WoPDYjVzZevezkx17PYy4RWq/SkRNHw@public.gmane.org,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	dri-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [Discussion] User controls for PowerManagement
Date: Tue, 12 Jan 2010 20:59:27 +0000	[thread overview]
Message-ID: <20100112205927.GA4431@srcf.ucam.org> (raw)
In-Reply-To: <20100110123340.7840da75-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>

The real question is what you want to be controlling. The two factors 
that we can actually influence are voltage and frequency - and on some 
cards we're limited to frequency. Everything else is then constrained by 
that choice. So the only thing that it makes sense to expose to 
userspace here is the frequency. As others have suggested, policy is 
probably best described in terms of either performance (fixed maximum 
frequency) or powersave (ondemand frequency shifting).

That's not to say that there aren't other constraints people may want to 
impose, but they're orthogonal. A user may want to stop their GPU from 
running at more than a certain temperature. That can be achieved by 
leaving this interface as is, but hooking it into the kernel thermal 
zone code. The user can then set a temperature limit and the kernel will 
automatically slow the chip down whenever it gets near that temperature. 
Since this is effectively a proxy for fan speed, that also gets catered 
for.

So I think a general policy knob (like scaling_cur_governor in cpufreq) 
ought to be sufficient here, possibly along with an indication of the 
instantaneous frequency because some people seem to like that kind of 
thing. Anything else sounds like overengineering.

-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org

      parent reply	other threads:[~2010-01-12 20:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07 21:44 [Discussion] User controls for PowerManagement r.spliet-+WoPDYjVzZevezkx17PYy4RWq/SkRNHw
     [not found] ` <1262900664.4b4655b8c25cc-pgG6AW4N3dxm8DR3ycg935PKb1KSXcyV@public.gmane.org>
2010-01-09 23:21   ` Luca Barbieri
2010-01-10 10:33   ` Pekka Paalanen
     [not found]     ` <20100110123340.7840da75-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>
2010-01-10 10:43       ` Alexey Dobriyan
2010-01-10 11:15         ` Pekka Paalanen
2010-01-11 16:43           ` [Nouveau] " Roy Spliet
2010-01-12 16:39             ` Stefan Monnier
     [not found]           ` <20100110131525.56d0a892-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>
2010-01-11 16:45             ` Roy Spliet
2010-01-12 20:59       ` Matthew Garrett [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=20100112205927.GA4431@srcf.ucam.org \
    --to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
    --cc=dri-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=pq-X3B1VOXEql0@public.gmane.org \
    --cc=r.spliet-+WoPDYjVzZevezkx17PYy4RWq/SkRNHw@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.