All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan-Re5JQEeQqe8AvxtiuMwx3w@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: Sun, 10 Jan 2010 12:43:02 +0200	[thread overview]
Message-ID: <20100110104302.GB4769@x200> (raw)
In-Reply-To: <20100110123340.7840da75-cxYvVS3buNOdIgDiPM52R8c4bpwCjbIv@public.gmane.org>

On Sun, Jan 10, 2010 at 12:33:40PM +0200, Pekka Paalanen wrote:
> Adding dri-devel@ to CC.
> 
> On Thu,  7 Jan 2010 22:44:24 +0100
> r.spliet-+WoPDYjVzZevezkx17PYy4RWq/SkRNHw@public.gmane.org wrote:
> 
> > With some progress in PowerManagement support (there's a patch
> > nearly done for reading the P-tables, written mostly by xexaxo,
> > derived from thunderbirds nvclock, with 0x40 adjustments from
> > myself) in my opinion it's time to think about the user aspect of
> > this. My personal idea for GPU scaling was similar to that of CPU
> > scaling in appearance eventually. When you look at the
> > cpufreq-applet for Gnome, you see the choice between every
> > supported CPU speed, and an option for Automatic scaling. To make
> > an application like this possible nouveau needs to communicate
> > with users. I was thinking a procfs or sysfs node for outputting
> > a readable table with possible modes like:
> > 
> > 03: CPU=135MHz,Shdr=135MHz,Mem=135MHz,Vlt=0.8V,Fan=80%;

Ick!

> > the node name would be something like pm_supported. Another node
> > named pm_current could output the current mode (for instance 03),
> > and be writable to set the desired mode. Mode numbers will be the
> > identifier given by pm_supported, found in the powermode table. A
> > third node would then be required to set auto scaling on or off
> > (called pm_auto ?). All those nodes could eventually be placed in
> > a separate subdirectory (pm?)
> > 
> > 1. joi pointed out that procfs is deprecated, and I should use
> > sysfs instead.

/proc is not deprecated per se, you simply shouldn't expose everything
you know to userspace, because it will be impossible to remove later.

In fact you can expose nothing, just implement gpu-ondemand and
gpu-performance and that would be it.

  parent reply	other threads:[~2010-01-10 10:43 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 [this message]
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

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=20100110104302.GB4769@x200 \
    --to=adobriyan-re5jqeeqqe8avxtiumwx3w@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.