linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: mikko.perttunen@kapsi.fi (Mikko Perttunen)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 3/3] ARM: tegra: Add thermal reset (thermtrip) support to PMC
Date: Tue, 06 Jan 2015 17:56:21 +0200	[thread overview]
Message-ID: <54AC05A5.5040401@kapsi.fi> (raw)
In-Reply-To: <20150106151427.GQ31830@ulmo.nvidia.com>

On 01/06/2015 05:14 PM, Thierry Reding wrote:
> On Tue, Jan 06, 2015 at 12:52:58PM +0200, Mikko Perttunen wrote:
>> From: Mikko Perttunen <mperttunen@nvidia.com>
>>
>> This adds a device tree controlled option to enable PMC-based
>> thermal reset in overheating situations. Thermtrip is supported on
>> Tegra30, Tegra114 and Tegra124. The thermal reset only works when
>> the thermal sensors are calibrated, so a soctherm driver is also
>> required.
>>
>> The thermtrip event is triggered by the soctherm block, and all
>> soctherm sensors default to showing a temperature of zero Celsius
>> before they are initialized. Because of this, it is safe to initialize
>> thermtrip and soctherm in any order.
>>
>> Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
>> ---
>>   drivers/soc/tegra/pmc.c | 107 ++++++++++++++++++++++++++++++++++++++++++++++++
>>   1 file changed, 107 insertions(+)
>
> This looks good to me. I'm not sure if I asked before, but can this be
> tested? Can we somehow trick thermtrip into reporting a temperature that
> would trigger this?
>
> Thierry
>

Yep, you can find a program here: 
https://gist.github.com/cyndis/66126c9c176b5f94a76f

It sets the thermtrip threshold to zero degrees.

Mikko

  reply	other threads:[~2015-01-06 15:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 10:52 [PATCH v5 REPOST 0/3] Thermal reset support in PMC Mikko Perttunen
2015-01-06 10:52 ` [PATCH v5 1/3] of: Add descriptions of thermtrip properties to Tegra PMC bindings Mikko Perttunen
2015-01-06 15:09   ` Thierry Reding
2015-01-06 10:52 ` [PATCH v5 2/3] ARM: tegra: Add PMC thermtrip programming to Jetson TK1 device tree Mikko Perttunen
2015-01-06 10:52 ` [PATCH v5 3/3] ARM: tegra: Add thermal reset (thermtrip) support to PMC Mikko Perttunen
2015-01-06 15:14   ` Thierry Reding
2015-01-06 15:56     ` Mikko Perttunen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-14 11:50 [PATCH v5 0/3] Thermal reset support in PMC Mikko Perttunen
2014-11-14 11:50 ` [PATCH v5 3/3] ARM: tegra: Add thermal reset (thermtrip) support to PMC Mikko Perttunen

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=54AC05A5.5040401@kapsi.fi \
    --to=mikko.perttunen@kapsi.fi \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).