linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: Pavel Machek <pavel@ucw.cz>,
	"Pandruvada, Srinivas" <srinivas.pandruvada@intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"viresh.kumar@linaro.org" <viresh.kumar@linaro.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	ibm-acpi@hmh.eng.br, ibm-acpi-devel@lists.sourceforge.net,
	platform-driver-x86@vger.kernel.org
Subject: Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build
Date: Sat, 05 Nov 2016 19:21:42 +0800	[thread overview]
Message-ID: <1478344902.2206.8.camel@intel.com> (raw)
In-Reply-To: <20161104221600.GA7007@amd>

On Fri, 2016-11-04 at 23:16 +0100, Pavel Machek wrote:
> Hi!
> 
> > 
> > I'd prefer mails over bugzilla for now...
> > 
> > 4.9-rc2 has bios_limit:
> > 
> > pavel@duo:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/bios_limit
> > 1833000
> > 
> > and it has thermal zones:
> > 
> > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp 127000
> > /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_type
> > critical
> > /sys/devices/virtual/thermal/thermal_zone1/trip_point_0_temp 97000
> > /sys/devices/virtual/thermal/thermal_zone1/trip_point_0_type
> > critical
> > /sys/devices/virtual/thermal/thermal_zone1/trip_point_1_temp 92500
> > /sys/devices/virtual/thermal/thermal_zone1/trip_point_1_type
> > passive
> > 
> > ..so it should slow down CPU at 92C.
> > 
> > So lets push the temperature up a bit...
> > 
> > sudo watch cat /proc/acpi/ibm/thermal
> > /sys/devices/system/cpu/cpu0/cpufreq/bios_limit
> > /sys/devices/virtual/thermal/thermal_zone1/temp  /sys/devices/syste
> > m/cpu/cpu0/cpufreq/cpuinfo_cur_freq
> > 
> > temperatures:   98 49 -128 85 28 -128 28 -128 49 58 -128 -128 -128
> > -128 -128 -128
> > 1833000
> > 95000
> > 1833000
> > 
> > Hmm. bios_limit does not seem to change, even when the temperature
> > is
> > clearly above the trip point. (It is also interestng that acpi/ibm
> > reports bigger temperatures than
> > /sys/devices/virtual/thermal/thermal_zone1/temp . I have seen 103C
> > there.)
> Under v4.8-rc, behaviour is different: bios_limit goes to 1GHz there
> when temperature is around 84C at the thermal zone.
>  That keeps
> ibm/thermal temperatures under 90C, and no "thermal emergency"
> messages in syslog.
> 
> So we seem to have thermal or ACPI regression in v4.9-rc3.
> 
To me, there are two problems,
the first one is a 4.9-rc regression that BIOS limit stops working,
results in overheating because of high cpu frequency. I agree with
Srinivas to check acpi_cpufreq driver code for this one.
the second problem is that thermal passive cooling can not prevent the
system from overheating, when there is no BIOS limit. To debug this,
you can enable thermal dynamic debug by
echo 'module thermal_sys +fp' > /sys/kernel/debug/dynamic_debug/control

thanks,
rui
> Best regards,
>  
>  									
> Pavel
>  

  parent reply	other threads:[~2016-11-05 11:21 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04  8:38 v4.8-rc1: thinkpad x60: running at low frequency even during kernel build Pavel Machek
2016-11-04  8:58 ` Pavel Machek
2016-11-04  9:10   ` Viresh Kumar
2016-11-04  9:26     ` Pavel Machek
2016-11-04  9:31       ` Viresh Kumar
2016-11-05 18:21         ` Henrique de Moraes Holschuh
2016-11-05 19:24           ` Thinkpad power management (was Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build) Pavel Machek
2016-11-04 14:05   ` v4.8-rc1: thinkpad x60: running at low frequency even during kernel build Pandruvada, Srinivas
2016-11-04 20:44     ` Pavel Machek
2016-11-04 21:13       ` Pandruvada, Srinivas
2016-11-05  8:42         ` Pavel Machek
2016-11-05 17:46           ` Henrique de Moraes Holschuh
2016-11-05 19:36             ` Pavel Machek
2016-11-06  3:45               ` Henrique de Moraes Holschuh
2016-11-04 22:16       ` Pavel Machek
2016-11-04 23:20         ` Pandruvada, Srinivas
2016-11-05 13:20           ` Pavel Machek
2016-11-05 13:33             ` Pandruvada, Srinivas
2016-11-05 13:53               ` Pavel Machek
2016-11-05 14:04                 ` Pavel Machek
2016-11-05 14:19                   ` Pandruvada, Srinivas
2016-11-05 15:34                     ` Pavel Machek
2016-11-05 13:37           ` Pavel Machek
2016-11-05 13:55             ` Pandruvada, Srinivas
2016-11-05 14:21               ` Pavel Machek
2016-11-05 20:31               ` Pavel Machek
2016-11-09 11:34               ` thinkpad x60, T40p: overheat with v4.9-rc4 (was Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build) Pavel Machek
2016-11-14 19:03               ` 6ea8c546f3655 breaks thermal management on thinkpad x60 and t40p Pavel Machek
2016-11-14 19:54                 ` Rafael J. Wysocki
2016-11-05 18:04             ` v4.8-rc1: thinkpad x60: running at low frequency even during kernel build Henrique de Moraes Holschuh
2016-11-05 19:56               ` Pavel Machek
2016-11-05 11:21         ` Zhang Rui [this message]
2016-11-05 13:10           ` Pavel Machek
2016-11-05 12:22         ` Pavel Machek

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=1478344902.2206.8.camel@intel.com \
    --to=rui.zhang@intel.com \
    --cc=ibm-acpi-devel@lists.sourceforge.net \
    --cc=ibm-acpi@hmh.eng.br \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=srinivas.pandruvada@intel.com \
    --cc=viresh.kumar@linaro.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).