All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Zhang Rui <rui.zhang@intel.com>,
	linux-acpi@vger.kernel.org, lm-sensors@lm-sensors.org,
	Len Brown <lenb@kernel.org>, Thomas Renninger <trenn@suse.de>
Subject: Re: Conversion of ACPI fan+thermal to hwmon sysfs
Date: Fri, 9 Mar 2007 09:53:06 +0100	[thread overview]
Message-ID: <20070309095306.8cd3846e.khali@linux-fr.org> (raw)
In-Reply-To: <20070308131323.GA417@khazad-dum.debian.net>

On Thu, 8 Mar 2007 10:13:23 -0300, Henrique de Moraes Holschuh wrote:
> On Thu, 08 Mar 2007, Zhang Rui wrote:
> > First, ACPI thermal zone can be used to set different cooling policies,
> > i.e. passive cooling mode and active cooling mode.
> > In passive mode, just as Matthew Garrett described, ACPI thermal may
> > throttle the CPU if the passive trip point is triggered, i.e. cool a
> > thermal zone by decreasing the performance of the devices(always CPU
> > now) in the zone.
> > The active cooling mode will use one or more active devices(usually fan)
> > to decrease the temperature, which consume extra power. And this is
> > really like the way that the hwmon is doing.
> > So we can only map the active cooling policy to hwmon, right?
> 
> Right, which is not to say we can't extend hwmon to also cover passive.

Correct. The hwmon interface had no reason to mention passive cooling
as hardware monitoring chips have no control over CPU speed. So far
this kind of passive cooling was implemented in user-space, using the
temperature as one of the decision factor for CPU frequency in cpufreqd
or similar. Of course, if the ACPI virtual hardware monitoring device
can control the speed, it might be convenient to extend the interface
to let the user do it. But I have no idea what it would look like.

> > Second, one ACPI thermal zone may have more than one fan devices, even
> > one active trip point may associate with several fan devices. And this
> > seems to be different from the sensors, doesn't it?
> 
> No, a LM85 does that too.  I don't recall if the current interface allows
> for that mapping easily, but if it doesn't, it needs to be modified.

It does, see item pwm[1-*]_auto_channels_temp in
Documentation/hwmon/sysfs-interface. Whether it qualifies as "easily"
is another problem ;)

-- 
Jean Delvare

WARNING: multiple messages have this Message-ID (diff)
From: khali@linux-fr.org (Jean Delvare)
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Zhang Rui <rui.zhang@intel.com>,
	linux-acpi@vger.kernel.org, lm-sensors@lm-sensors.org,
	Len Brown <lenb@kernel.org>, Thomas Renninger <trenn@suse.de>
Subject: [lm-sensors] Conversion of ACPI fan+thermal to hwmon sysfs
Date: Fri, 09 Mar 2007 08:53:06 +0000	[thread overview]
Message-ID: <20070309095306.8cd3846e.khali@linux-fr.org> (raw)
In-Reply-To: <20070308131323.GA417@khazad-dum.debian.net>

On Thu, 8 Mar 2007 10:13:23 -0300, Henrique de Moraes Holschuh wrote:
> On Thu, 08 Mar 2007, Zhang Rui wrote:
> > First, ACPI thermal zone can be used to set different cooling policies,
> > i.e. passive cooling mode and active cooling mode.
> > In passive mode, just as Matthew Garrett described, ACPI thermal may
> > throttle the CPU if the passive trip point is triggered, i.e. cool a
> > thermal zone by decreasing the performance of the devices(always CPU
> > now) in the zone.
> > The active cooling mode will use one or more active devices(usually fan)
> > to decrease the temperature, which consume extra power. And this is
> > really like the way that the hwmon is doing.
> > So we can only map the active cooling policy to hwmon, right?
> 
> Right, which is not to say we can't extend hwmon to also cover passive.

Correct. The hwmon interface had no reason to mention passive cooling
as hardware monitoring chips have no control over CPU speed. So far
this kind of passive cooling was implemented in user-space, using the
temperature as one of the decision factor for CPU frequency in cpufreqd
or similar. Of course, if the ACPI virtual hardware monitoring device
can control the speed, it might be convenient to extend the interface
to let the user do it. But I have no idea what it would look like.

> > Second, one ACPI thermal zone may have more than one fan devices, even
> > one active trip point may associate with several fan devices. And this
> > seems to be different from the sensors, doesn't it?
> 
> No, a LM85 does that too.  I don't recall if the current interface allows
> for that mapping easily, but if it doesn't, it needs to be modified.

It does, see item pwm[1-*]_auto_channels_temp in
Documentation/hwmon/sysfs-interface. Whether it qualifies as "easily"
is another problem ;)

-- 
Jean Delvare


  reply	other threads:[~2007-03-09  8:54 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-24 18:20 RFC: conversion of ibm-acpi to hwmon sysfs Henrique de Moraes Holschuh
2007-02-24 18:20 ` [lm-sensors] " Henrique de Moraes Holschuh
2007-02-26 16:27 ` Jean Delvare
2007-02-26 16:27   ` Jean Delvare
     [not found]   ` <20070226172716.b2e956b7.khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
2007-02-26 18:06     ` Henrique de Moraes Holschuh
2007-02-26 18:06       ` Henrique de Moraes Holschuh
2007-02-27  9:01       ` Jean Delvare
2007-02-27  9:01         ` Jean Delvare
2007-02-27 15:41         ` Henrique de Moraes Holschuh
2007-02-27 15:41           ` Henrique de Moraes Holschuh
2007-02-28 14:38     ` Henrique de Moraes Holschuh
2007-02-28 14:38       ` Henrique de Moraes Holschuh
2007-03-01  7:10       ` Jean Delvare
2007-03-01  7:10         ` Jean Delvare
2007-02-28  9:31   ` Zhang Rui
2007-02-28  9:31     ` Zhang Rui
2007-02-28 14:34     ` Conversion of ACPI fan+thermal " Henrique de Moraes Holschuh
2007-02-28 14:34       ` [lm-sensors] " Henrique de Moraes Holschuh
2007-03-01  9:37       ` Zhang Rui
2007-03-02  1:12       ` Zhang Rui
2007-03-02  1:12         ` [lm-sensors] " Zhang Rui
2007-03-02 11:13         ` Jean Delvare
2007-03-02 11:13           ` [lm-sensors] " Jean Delvare
2007-03-02 11:43           ` Matthew Garrett
2007-03-02 11:43             ` [lm-sensors] " Matthew Garrett
2007-03-08  9:28           ` Zhang Rui
2007-03-08  9:28             ` [lm-sensors] " Zhang Rui
2007-03-08 11:13             ` Hans de Goede
2007-03-08 11:13               ` Hans de Goede
2007-03-08 13:13             ` Henrique de Moraes Holschuh
2007-03-08 13:13               ` [lm-sensors] " Henrique de Moraes Holschuh
2007-03-09  8:53               ` Jean Delvare [this message]
2007-03-09  8:53                 ` Jean Delvare
2007-03-01  7:06     ` [lm-sensors] RFC: conversion of ibm-acpi " Jean Delvare
2007-03-01  7:06       ` Jean Delvare

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=20070309095306.8cd3846e.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=hmh@hmh.eng.br \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.org \
    --cc=rui.zhang@intel.com \
    --cc=trenn@suse.de \
    /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.