From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964899AbWDMMVU (ORCPT ); Thu, 13 Apr 2006 08:21:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964901AbWDMMVU (ORCPT ); Thu, 13 Apr 2006 08:21:20 -0400 Received: from blaster.systems.pipex.net ([62.241.163.7]:26265 "EHLO blaster.systems.pipex.net") by vger.kernel.org with ESMTP id S964899AbWDMMVT (ORCPT ); Thu, 13 Apr 2006 08:21:19 -0400 From: Tim Phipps To: Mike Galbraith Subject: Re: p4-clockmod not working in 2.6.16 Date: Thu, 13 Apr 2006 13:20:52 +0100 User-Agent: KMail/1.8.3 Cc: linux-kernel@vger.kernel.org, Edgar Toernig , Dave Jones References: <1142974528.3470.4.camel@localhost> <1144245205.7571.11.camel@homer> <1144245577.7571.16.camel@homer> In-Reply-To: <1144245577.7571.16.camel@homer> MIME-Version: 1.0 X-Length: 2922 Content-Type: Multipart/Mixed; boundary="Boundary-00=_qIkPEtonYdmbHce" Message-Id: <200604131320.58800.tim@phipps-hutton.freeserve.co.uk> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --Boundary-00=_qIkPEtonYdmbHce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 05 Apr 2006 14:59, Mike Galbraith wrote: > On Wed, 2006-04-05 at 13:02 +0100, Tim Phipps wrote: > > Here's a patch to 2.6.17-rc1 that disables the 12.5% DC on any CPU that > > has N60. The frequencies in the errata are a bit vague so this is the > > safe bet and it only disables one of the eight frequencies rather than > > the current behaviour which disables all of mine! > > Works for me. Perhaps you should update... > dprintk("has errata -- disabling frequencies lower than 2ghz\n"); > ...,slap a Signed-off-by: on it and see if it flys. Not sure how to do a Signed-off-by but here's the patch. --Boundary-00=_qIkPEtonYdmbHce Content-Type: text/plain; charset="utf-8"; name="kpatch-p4clockmod" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kpatch-p4clockmod" --- linux-2.6.17-rc1/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c.orig 2006-04-10 17:12:23.000000000 +0100 +++ linux-2.6.17-rc1/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c 2006-04-10 17:23:44.000000000 +0100 @@ -17,6 +17,7 @@ * * Date Errata Description * 20020525 N44, O17 12.5% or 25% DC causes lockup + * 20060410 N60 12.5% DC causes lockup * */ @@ -231,7 +232,7 @@ case 0x0f29: has_N60_errata[policy->cpu] = 1; - dprintk("has errata -- disabling frequencies lower than 2GHz\n"); + dprintk("has errata -- disabling 12.5%% duty cycle\n"); break; } @@ -244,7 +245,7 @@ for (i=1; (p4clockmod_table[i].frequency != CPUFREQ_TABLE_END); i++) { if ((i<2) && (has_N44_O17_errata[policy->cpu])) p4clockmod_table[i].frequency = CPUFREQ_ENTRY_INVALID; - else if (has_N60_errata[policy->cpu] && ((stock_freq * i)/8) < 2000000) + else if ((i<2) && has_N60_errata[policy->cpu]) p4clockmod_table[i].frequency = CPUFREQ_ENTRY_INVALID; else p4clockmod_table[i].frequency = (stock_freq * i)/8; --Boundary-00=_qIkPEtonYdmbHce--