From: Zhang Rui <rui.zhang@intel.com>
To: Amit Kachhap <amit.kachhap@linaro.org>
Cc: Jean Delvare <jdelvare@suse.com>,
"Brown, Len" <len.brown@intel.com>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
linux-pm <linux-pm@lists.linux-foundation.org>
Subject: Re: [RFC] the generic thermal layer enhancement
Date: Thu, 31 May 2012 14:13:11 +0800 [thread overview]
Message-ID: <1338444791.1472.254.camel@rui.sh.intel.com> (raw)
In-Reply-To: <CAK44p20bjZfX-ur0V8hmSGzLDJ0cDLCTQ4LkHKQqSvfFbqyG+w@mail.gmail.com>
> >> > G5. unify active cooling and passive cooling code
> >> >
> >> > If G4 and G5 are resolved, a new problem to me is that there is no
> >> > difference between passive cooling and active cooling except the
> >> > cooling policy.
> >
> > OK...
> >
> >> > Then we can share the same code for both active and passive cooling.
> >> > maybe something like:
> >> >
> >> > case THERMAL_TRIP_ACTIVE:
> >> > case THERMAL_TRIP_PASSIVE:
> >> > ...
> >> > tz->ops->get_trend();
> >
> > Would the get_trend take into account if we are cooling with active or passive
> > cooling device?
> >
> >> > if (trend == HEATING)
> >> > cdev->ops->set_cur_state(cdev, cur_state++);
> >> > else if (trend == COOLING)
> >> > cdev->ops->set_cur_state(cdev, cur_state--);
> >> > break;
> >
> > I believe we should have something for temperature stabilization there as well.
> I also agree that thermal stablization is important. I have observed
> that too much state change is happening around the trip point. But yes
> the trend callback may take care of this and set the COOLING trend
> different from HEATING trend.
that's why Matthew and I are asking you to try to fit into the current
passive cooling implementation first, as the current algorithm is really
a good one, if you can make use of it.
.get_trend() is just a backup for this.
thanks,
rui
next prev parent reply other threads:[~2012-05-31 6:13 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 [this message]
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
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=1338444791.1472.254.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 \
/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