lkml.org 
[lkml]   [2014]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] drm/gk20a: support for reclocking
On 11/07/2014 03:42, Alexandre Courbot wrote:
> On 07/10/2014 06:50 PM, Mikko Perttunen wrote:
>> Does GK20A itself have any kind of thermal protection capabilities?
>> Upstream SOCTHERM support is not yet available (though I have a driver
>> in my tree), so we are thinking of disabling CPU DVFS on boards that
>> don't have always-on active cooling for now. Same might be necessary for
>> GPU as well.
>
> There is a small thermal driver (
> https://android.googlesource.com/kernel/tegra/+/b445e5296764d18861a6450f6851f25b9ca59dee/drivers/video/tegra/host/gk20a/therm_gk20a.c
> ) but it doesn't seem to do much. I believe that for Tegra we rely in
> SOCTHERM instead, but maybe Ken could confirm?

Unless it changed a great deal, I reverse engineered most of the
registers in this area (for the nv50), but some stuff didn't change that
much and could be used straight away (temperature reading, sending IRQs
on thresholds, auto downclocking when overheating). We are not really
using those features on nouveau right now, we just poll on the
temperature every second.

If we are moving to using the PMU for thermal monitoring, we can do the
polling there and warn the userspace when the temperature is too high or
if performance is insufficient / too much. I have part of the code for
performance counters in PMU, it's dead simple.

Martin


\
 
 \ /
  Last update: 2014-07-11 10:41    [W:0.065 / U:3.144 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site