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
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel