From: Shawn Guo <shawn.guo@linaro.org>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: linux-pm@vger.kernel.org, Zhang Rui <rui.zhang@intel.com>,
Eduardo Valentin <eduardo.valentin@ti.com>,
kernel@pengutronix.de
Subject: Re: [PATCH 2/2] thermal: imx: implement thermal alarm interrupt handling
Date: Mon, 5 Aug 2013 17:10:38 +0800 [thread overview]
Message-ID: <20130805091036.GH24629@S2101-09.ap.freescale.net> (raw)
In-Reply-To: <1375689012.4000.32.camel@pizza.hi.pengutronix.de>
On Mon, Aug 05, 2013 at 09:50:12AM +0200, Philipp Zabel wrote:
> > Could imx_get_temp() be possibly called when mode is
> > !THERMAL_DEVICE_ENABLED? If not, this will be a piece of code which
> > will never be called but simply confusing people.
>
> yes:
> echo disabled > /sys/class/thermal/thermal_zone0/mode
> cat /sys/class/thermal/thermal_zone0/temp
>
> Maybe I should extend the comment?
>
Unnecessary. I was missing a very valid use case.
<snip>
> > Running the driver in polling mode with step_wise governor, we can have
> > cooling device (cpufreq) enter different cooling level, when temperature
> > increases or decreases. For example, imx6q runs at 1GHz before reaching
> > passive temperature 85C, and will slow down to 800 MHz when temperature
> > reaches 85C. It will continue slowing down 400 MHz if temperature
> > continues increasing to, saying 87C. And if temperature decreases, the
> > frequency will go back to 800 MHz and then 1 GHz.
> >
> > With interrupt mode, thermal zone update will only be triggered by alarm
> > temperature. That says cooling device will transit between different
> > cooling levels only when passive or critical temperature is reached in
> > raising thermal trend. For above example, even when temperature
> > decreases back to something original below 85C, CPU will still run at
> > 400 MHz, I think.
>
> I have not disabled the polling (with 0.5 Hz below and 1 Hz above the
> passive trip point), that still works as before.
> The interrupt only forces an additional measurement right after the
> alarm interrupt. I think for the step_wise governor we should probably
> also raise the polling frequency for a while after getting interrupted.
>
Yeah, I forgot about that polling still works, and somehow was confused
by the temperature behavior change that is actually caused by the recent
step_wise governor updates. Sorry for the noise.
<snip>
> > This is another thing that interrupt support changes comparing to
> > polling mode. In polling mode, tempmon circuit consumes power only when
> > the measurement takes place, while now we have to keep the power on
> > since initialization.
>
> That is correct. Is there any information about how much this circuit is
> actually consuming? Should this be made configurable?
I do not have the data. Consuming less power is desirable, but I think
it's more important to keep chip safe. That said, I'm happy with the
patch.
Acked-by: Shawn Guo <shawn.guo@linaro.org>
> Certainly polling in 100 ms intervals will consume more energy, and 2 s
> intervals are short enough for all hardware configurations.
prev parent reply other threads:[~2013-08-05 9:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 16:33 [PATCH 0/2] SoC specific trip points and alarm interrupt for imx_thermal Philipp Zabel
2013-08-01 16:33 ` [PATCH 1/2] thermal: imx: dynamic passive and SoC specific critical trip points Philipp Zabel
2013-08-04 14:20 ` Shawn Guo
2013-08-01 16:33 ` [PATCH 2/2] thermal: imx: implement thermal alarm interrupt handling Philipp Zabel
2013-08-05 3:22 ` Shawn Guo
2013-08-05 7:50 ` Philipp Zabel
2013-08-05 9:10 ` Shawn Guo [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=20130805091036.GH24629@S2101-09.ap.freescale.net \
--to=shawn.guo@linaro.org \
--cc=eduardo.valentin@ti.com \
--cc=kernel@pengutronix.de \
--cc=linux-pm@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=rui.zhang@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;
as well as URLs for NNTP newsgroup(s).