From: Zhang Rui <rui.zhang@intel.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Jean Delvare <jdelvare@suse.com>,
"Brown, Len" <len.brown@intel.com>,
linux-pm <linux-pm@lists.linux-foundation.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
amit.kachhap@linaro.org
Subject: Re: [RFC] the generic thermal layer enhancement
Date: Thu, 31 May 2012 11:54:51 +0800 [thread overview]
Message-ID: <1338436491.1472.223.camel@rui.sh.intel.com> (raw)
In-Reply-To: <20120530125035.GA17379@srcf.ucam.org>
On 三, 2012-05-30 at 13:50 +0100, Matthew Garrett wrote:
> On Wed, May 30, 2012 at 04:49:02PM +0800, Zhang Rui wrote:
>
> > G1. supporting multiple cooling states for active cooling devices.
>
> Sounds fine.
>
Great!
> > G2. introduce cooling states range for a certain trip point
>
> Again, no problem here.
>
Again, great!
> > G3. kernel thermal passive cooling algorithm
>
> > Currently, tc1 and tc2 are hard requirements for kernel passive
> > cooling. But non-ACPI platforms do not have this information
> > (please correct me if I'm wrong).
> > Say, for the patches here
> > http://marc.info/?l=linux-acpi&m=133681581305341&w=2
> > They just want to slow down the processor when current temperature
> > is higher than the trip point and speed up the processor when the
> > temperature is lower than the trip point.
>
> Just slowing the CPU down above a certain temperature is a pretty awful
> approach to passive cooling. You want to maximise performance while
> staying within your thermal envelope, so you need a more advanced
> approach.
Agreed.
> The existing algorithm provides a generic mechanism for
> balancing performance and thermal output, with the only requirement
> being that the platform provide constants that represent the heating and
> cooling properties of the system.
>
I'm not sure if this could work on their platforms. So I'm just looking
for an easier way to handle this, i.e. make generic thermal layer
simple, and provide the flexibility for platform drivers to do their own
tricks.
> I don't fundamentally object to adding support for platform-specific
> passive formulae, but I'd like an explanation for how they're better
> than the existing one.
>
Hmmm, I'd like to see if it is possible for them to make use of the
current passive cooling implementation.. if no...
how about this?
we can provide an API for the current algorithm in thermal_sys.c
thermal_passive_get_trend(int tc1, int tc2)
{
}
EXPORT_SYMBOL(...);
and in platform driver, they can choose to use this default algorithm if
they are able to.
.get_trend()
{
return thermal_passive_get_trend(platform_tc1, platform_tc2);
}
> > G4. Multiple passive trip points
>
> It would be good to have an explanation of the use case here. If it's
> acceptable for the device to be at the lower passive trip point, why are
> we slowing it down at all?
>
acceptable does not equal comfortable?
Say, I'd like to use the computer at 30C skin temperature.
I'm okay with the temperature at 50C, but it would be nice if it can be
lower, even if the system would be slower, but not too slow (T-state).
If the temperature is higher than 60, it is not usable for me, I'll wait
for a while, the system can do everything they want do cool the system
down (but hibernate/shutdown would be not a good idea at this time
because it is hot enough for some hardware damage).
thanks,
rui
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-05-31 3:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 8:49 [RFC] the generic thermal layer enhancement Zhang Rui
2012-05-30 8:51 ` [linux-pm] " Zhang Rui
2012-05-30 10:30 ` Eduardo Valentin
2012-05-30 11:05 ` R, Durgadoss
2012-05-30 11:17 ` Eduardo Valentin
2012-05-31 3:32 ` [linux-pm] " Zhang Rui
2012-05-31 11:06 ` Eduardo Valentin
2012-05-31 11:14 ` R, Durgadoss
2012-05-31 3:27 ` Zhang Rui
2012-05-31 2:20 ` [linux-pm] " Zhang Rui
2012-05-31 5:16 ` Amit Kachhap
2012-05-31 6:13 ` Zhang Rui
2012-05-31 11:13 ` Eduardo Valentin
2012-05-30 10:44 ` [linux-pm] " R, Durgadoss
2012-05-31 3:15 ` Zhang Rui
2012-05-30 12:50 ` Matthew Garrett
2012-05-31 3:54 ` Zhang Rui [this message]
2012-05-31 3:58 ` Matthew Garrett
2012-05-31 5:54 ` Zhang Rui
2012-05-31 4:59 ` Amit Kachhap
2012-05-31 6:09 ` Zhang Rui
2012-05-31 10:59 ` Eduardo Valentin
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=1338436491.1472.223.camel@rui.sh.intel.com \
--to=rui.zhang@intel.com \
--cc=amit.kachhap@linaro.org \
--cc=jdelvare@suse.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=mjg59@srcf.ucam.org \
--cc=rjw@sisk.pl \
/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