lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161105182121.GC17290@khazad-dum.debian.net>
Date:   Sat, 5 Nov 2016 16:21:21 -0200
From:   Henrique de Moraes Holschuh <hmh@....eng.br>
To:     Viresh Kumar <viresh.kumar@...aro.org>
Cc:     Pavel Machek <pavel@....cz>, rjw@...ysocki.net,
        linux-pm@...r.kernel.org,
        kernel list <linux-kernel@...r.kernel.org>,
        rui.zhang@...el.com, linux-acpi@...r.kernel.org
Subject: Re: v4.8-rc1: thinkpad x60: running at low frequency even during
 kernel build

On Fri, 04 Nov 2016, Viresh Kumar wrote:
> On 04-11-16, 10:26, Pavel Machek wrote:
> > How would I know if it is thermal capping? There's nothing in dmesg.
> 
> I am not sure what code is responsible for doing that in case of x86, maybe
> Rafael and Rui can explain it that better.
> 
> But surely it involves userspace in this case as scaling_max_freq is getting
> changed.

Note that a X60 might limit the maximum frequency through ACPI when on
AC *and* its battery is not installed or not in working order.

The EC tries to detect the power brick type (65W, 90W), which often
doesn't work well on non-Lenovo power bricks, and signals the BIOS to
limit the maximum frequency if it thinks its only power source is a 65W
power brick.

This behavior would be readly visible by the X60 refusing to reach the
maximum clock frequency *at all* -- it is a static limit, only removed
when a sufficiently charged battery becomes available.

This indirect power draw capping should never engage if your battery is
installed and working, regardless of type and brand of power adapter,
AFAIK.  I am only mentioning it so that you are aware of this possible
behavior while debugging.


Anyway, this overheating thinkpad very, very likely needs a hardware
repair (on top of the kernel bug fixes ;-) ).

Regardless of any kernel/userspace bugs, the X60 was engineered to not
require thermal capping on reasonable indoor environmental temperature
ranges.  If it needs the kernel to do something at all to avoid
overheating just because it has been running at full CPU power, and
ambient temperature is below 28°C, it very likely has a hardware issue
(lint on the heatsink/fan, and/or cracked thermal interface between
heatsink and processor).

Every old-style ThinkPad (like the X60) that I have ever seen
overheating when running at full CPU power (after fan lint was removed)
in a cool place (say, 26°C), stopped overheating after a heatsink reseat
and thermal compound replacement (and if you're going to do it, use
non-shelf-aged Arctic Silver 5 or something better, and "cure" it
properly -- something rather easy to do on a ThinkPad X60).

-- 
  Henrique Holschuh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ