public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Cc: trenn@suse.de, "linux-acpi@vger" <linux-acpi@vger.kernel.org>,
	"Brown, Len" <len.brown@intel.com>
Subject: RE: problem about ACPI processor procfs
Date: Tue, 06 Mar 2007 16:00:10 +0800	[thread overview]
Message-ID: <1173168010.10227.42.camel@localhost.localdomain> (raw)
In-Reply-To: <EB12A50964762B4D8111D55B764A84540150731B@scsmsx413.amr.corp.intel.com>

On Tue, 2007-02-27 at 23:19 +0800, Pallipadi, Venkatesh wrote:
> Yes. All the things needed are in cpufreq already and I don't think we
> need to export things like P-state power etc in /sys. I think we should
> be able to remove all P-state stuff in /proc/acpi without adding
> anything in cpufreq. 
> 
OK.
According to the recent cpuidle patches sent by Venki, a new cpuidle
sysfs interface is built under /sys/devices/system/cpu/cpudile/
and the duplication of the processor C state procfs interface is not
needed any more.

But the throttling states interface is still needed, isn't it?

ACPI spec defines two processor throttling control interfaces.
One is "the processor register black's P_CNT register",
and another is the combined _PTC,_TSS and _TPC objects which allows the
number of T states to be dynamic.
But it seems that the processor driver doesn't support the second
interface, right?

Now I suppose that the number of T states is static and here is the
ACPI processor sysfs interface structure:
/sys/devices/acpi_system:00/.../ACPI0007:xx
|-- processor_id
|-- acpi_id
|-- throttling_control
|-- limit_interface
|-- limit
|   |-- active
|   |-- thermal
|   |-- user
|-- throttling
|   |-- state_count
|   |-- active_state
|   |-- T0_states
   ...
|   |-- Tx_states (max T state support)


The processor driver always enable the thermal limit if T states are
supported. IMO, we should merge processor_thermal.c and
processor_throttling.c together as they are both for throttling control.
Then we can set up an interface like this:
/sys/devices/acpi_system:00/.../ACPI0007:xx
|-- processor_id
|-- acpi_id
|-- throttling_control
|-- throttling
|   |-- active_limit
|   |-- thermal_limit
|   |-- user_limit
|   |-- state_count
|   |-- active_state
|   |-- T0_states
   ...
|   |-- Tx_states (max T state support)

> 
> >-----Original Message-----
> >From: Thomas Renninger [mailto:trenn@suse.de] 
> >Sent: Tuesday, February 27, 2007 6:46 AM
> >To: Zhang, Rui
> >Cc: linux-acpi@vger.kernel.org; Brown, Len; Pallipadi, Venkatesh
> >Subject: Re: problem about ACPI processor procfs
> >
> >On Tue, 2007-02-27 at 17:33 +0800, Zhang, Rui wrote:
> >> Hello, list
> >> 
> >> I met some problems when duplicating ACPI processor procfs 
> >interface in sysfs.
> >> #cat /proc/acpi/processor/CPU0/limit
> >> Active limit:		P0:T0
> >> User limit:		P0:T0
> >> Thermal limit:	P0,T0
> >> 
> >> IMO, "Tx" is easy to understand. It indicates the active 
> >T-state, T-state set by user and T-state set by thermal (in 
> >passive mode).
> >> 
> >> But what does the "Px" stand for? After reading the code in 
> >processor_thermal.c, I don't think user or thermal will change 
> >its value.
> >> And I don't know if it's still needed when porting to sysfs.
> >
> >Px are P-states, this is cpufreq.
> >Writing to it will probably interfere with /sys/devices/../cpufreq/*.
> >x should correspond to the amount of entries in
> >/sys/devices/../cpufreq/scaling_available_frequencies.
> >
> >Can't we just get rid of this? Is there any userspace prog 
> >that made use
> >of this in /proc and if was it really useful in any way?
> >
> >   Thomas
> >

      reply	other threads:[~2007-03-06  8:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-27  9:33 problem about ACPI processor procfs Zhang, Rui
2007-02-27 14:45 ` Thomas Renninger
2007-02-27 15:19   ` Pallipadi, Venkatesh
2007-03-06  8:00     ` Zhang Rui [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=1173168010.10227.42.camel@localhost.localdomain \
    --to=rui.zhang@intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=trenn@suse.de \
    --cc=venkatesh.pallipadi@intel.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