Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760420AbcKDVNE (ORCPT ); Fri, 4 Nov 2016 17:13:04 -0400 Received: from mga01.intel.com ([192.55.52.88]:56490 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760181AbcKDVNC (ORCPT ); Fri, 4 Nov 2016 17:13:02 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,445,1473145200"; d="scan'208";a="1064118654" From: "Pandruvada, Srinivas" To: "pavel@ucw.cz" CC: "linux-kernel@vger.kernel.org" , "Zhang, Rui" , "linux-pm@vger.kernel.org" , "platform-driver-x86@vger.kernel.org" , "rjw@rjwysocki.net" , "viresh.kumar@linaro.org" , "ibm-acpi-devel@lists.sourceforge.net" , "ibm-acpi@hmh.eng.br" , "linux-acpi@vger.kernel.org" Subject: Re: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build Thread-Topic: v4.8-rc1: thinkpad x60: running at low frequency even during kernel build Thread-Index: AQHSNqR6E9PvsljNE0SLAUXkZpyWbKDJwJWAgAAH5wA= Date: Fri, 4 Nov 2016 21:13:00 +0000 Message-ID: <1478293976.1268.15.camel@intel.com> References: <20161104083849.GA32688@amd> <20161104085830.GA4089@amd> <1478268311.26953.17.camel@intel.com> <20161104204439.GA2581@amd> In-Reply-To: <20161104204439.GA2581@amd> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.14.60] Content-Type: text/plain; charset="utf-8" Content-ID: <30A716D1B1E6554FBA2D2EFC91697322@intel.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id uA4LD7Mc023885 Content-Length: 2089 Lines: 66 On Fri, 2016-11-04 at 21:44 +0100, Pavel Machek wrote: > Hi! > > > > > > > > > Let me try v4.9-rc2... that works ok (cpus at the high frequency > > > during the kernel build). Unfortunately that sends my cpus to 99C > > > temperature range (and eventually forces emergency shutdown). > > > > This we have to debug. Do you see same line like  > > " > > /sys/devices/system/cpu/cpu0/cpufreq/bios_limit:1000000 > > " > > If not we need > > to find out why. > > 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 > It will not act if there is no binding information. Do you have more files in this folder? grep -r . * in /sys/class/thermal will be helpful. > ..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/system/ > 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.) Probably they are showing package and core temperature or have a different sampling interval. Try enabling thermald service in Debian. it has access to more knobs to control thermals. Thanks, Srinivas