All of lore.kernel.org
 help / color / mirror / Atom feed
From: Milan Broz <mbroz@redhat.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Pavel Machek <pavel@suse.cz>, Andi Kleen <andi@firstfloor.org>,
	kernel list <linux-kernel@vger.kernel.org>,
	ACPI mailing list <linux-acpi@vger.kernel.org>,
	Alexey Starikovskiy <astarikovskiy@suse.de>,
	Thomas Renninger <trenn@suse.de>
Subject: Re: 2.6.27-rc1: critical thermal shutdown on thinkpad x60 (bisected)
Date: Tue, 12 Aug 2008 17:48:27 +0200	[thread overview]
Message-ID: <48A1B0CB.9050908@redhat.com> (raw)
In-Reply-To: <48A1A4F6.9080706@redhat.com>


>>>> yes. maybe some userspace tool controlling frequency is involved, no idea yet.
>>>> But it is 2.6.26 tree for sure.
>>>>         
>>> So it definitely is in 2.6.26.2, and it definitely is in 2.6.26?
>>>       
>
>
> The bug is _not_ in 2.6.26, it was introduced in 2.6.26.1.
>
> The problem is, that now the CPU frequency doesn't decrease at some
> temperature level and fan is unable to cool it properly.
>
> bisect on 2.6.26.y tree finished in this patch:
> (I expect similar patch in 2.6.27-rc)
>
> commit 04f496871e8af87a1e40c504371a206fd7389193
> Author: Thomas Renninger <trenn@suse.de>
> Date:   Wed Jul 30 18:20:10 2008 +0000
>
>   
and this seems to fix it for me:
--

Do not use unsigned int if there is test for negative number...

See drivers/acpi/processor_perflib.c
  static unsigned int ignore_ppc = -1;
...
  if (event == CPUFREQ_START && ignore_ppc <= 0) {
       ignore_ppc = 0;
...

Signed-off-by: Milan Broz <mbroz@redhat.com>
---
 drivers/acpi/processor_perflib.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.26.y/drivers/acpi/processor_perflib.c
===================================================================
--- linux-2.6.26.y.orig/drivers/acpi/processor_perflib.c	2008-08-12 17:20:07.000000000 +0200
+++ linux-2.6.26.y/drivers/acpi/processor_perflib.c	2008-08-12 17:35:53.000000000 +0200
@@ -70,7 +70,7 @@ static DEFINE_MUTEX(performance_mutex);
  *  0 -> cpufreq low level drivers initialized -> consider _PPC values
  *  1 -> ignore _PPC totally -> forced by user through boot param
  */
-static unsigned int ignore_ppc = -1;
+static int ignore_ppc = -1;
 module_param(ignore_ppc, uint, 0644);
 MODULE_PARM_DESC(ignore_ppc, "If the frequency of your machine gets wrongly" \
 		 "limited by BIOS, this should help");



  reply	other threads:[~2008-08-12 15:48 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06  9:02 2.6.27-rc1: critical thermal shutdown on thinkpad x60 Pavel Machek
2008-08-07  9:13 ` Pavel Machek
2008-08-07 10:38   ` Pavel Machek
2008-08-07 11:34 ` Karel Zak
2008-08-07 13:05   ` Fabio Comolli
2008-08-07 14:41     ` Yves-Alexis Perez
2008-08-07 16:01 ` Andi Kleen
2008-08-12  9:41   ` Pavel Machek
2008-08-12 10:54     ` Andi Kleen
2008-08-12 11:02       ` Pavel Machek
2008-08-12 11:07       ` Milan Broz
2008-08-12 11:26         ` Pavel Machek
2008-08-12 11:44           ` Milan Broz
2008-08-12 11:55             ` Pavel Machek
2008-08-12 14:34               ` Rafael J. Wysocki
2008-08-12 14:57                 ` 2.6.27-rc1: critical thermal shutdown on thinkpad x60 (bisected) Milan Broz
2008-08-12 15:48                   ` Milan Broz [this message]
2008-08-12 16:01                     ` 2.6.27-rc1 and 2.6.26.1: " Thomas Renninger
2008-08-13  7:08                       ` Pavel Machek
2008-08-12 16:28                     ` 2.6.27-rc1: " Andi Kleen
2008-08-12 18:30                     ` Dominik Brodowski
2008-08-12 18:59                       ` Andi Kleen
2008-08-12 18:59                         ` Andi Kleen
2008-08-12 19:56                         ` Rafael J. Wysocki
2008-08-13 10:39                         ` Milan Broz
2008-08-14 13:56                         ` Milan Broz
2008-08-13  7:39                     ` Pavel Machek
2008-08-13  7:39                   ` Pavel Machek
2008-08-12 15:32                 ` 2.6.27-rc1: critical thermal shutdown on thinkpad x60 Matthew Garrett
2008-08-12 19:57                   ` Rafael J. Wysocki
2008-08-13 20:13           ` Henrique de Moraes Holschuh
2008-08-13 20:28             ` Pavel Machek
2008-08-13 20:42               ` Henrique de Moraes Holschuh
2008-08-13 20:55                 ` Pavel Machek
2008-08-13  0:55     ` Zhang Rui

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=48A1B0CB.9050908@redhat.com \
    --to=mbroz@redhat.com \
    --cc=andi@firstfloor.org \
    --cc=astarikovskiy@suse.de \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=rjw@sisk.pl \
    --cc=trenn@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.