All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ken Hughes <khughes@pacific.edu>
To: Dominik Brodowski <linux@dominikbrodowski.de>
Cc: davej@redhat.com, Bruno Ducrot <ducrot@poupinou.org>,
	Cpufreq@www.linux.org.uk
Subject: Re: ACPI / cpufreq on Presario R3120
Date: Fri, 04 Jun 2004 09:55:56 -0700	[thread overview]
Message-ID: <40C0A99C.3030308@pacific.edu> (raw)
In-Reply-To: <20040604152519.GB8490@dominikbrodowski.de>

Dominik Brodowski wrote:

> Ignore two identical low freq entries in the ACPI tables for the powernow-k8
> driver.
> 
> Signed-off-by:	Dominik Brodowski <linux@brodo.de>
> 
> --- linux-2.6.7-rc1/arch/i386/kernel/cpu/cpufreq/powernow-k8.c~	2004-05-26 22:30:43.000000000 +0200
> +++ linux-2.6.7-rc1/arch/i386/kernel/cpu/cpufreq/powernow-k8.c	2004-06-04 17:22:23.959400368 +0200
> @@ -734,9 +734,21 @@
>  		}
>  
>  		/* verify only 1 entry from the lo frequency table */
> -		if ((fid < HI_FID_TABLE_BOTTOM) && (cntlofreq++)) {
> -			printk(KERN_ERR PFX "Too many lo freq table entries\n");
> -			goto err_out;
> +		if (fid < HI_FID_TABLE_BOTTOM) {
> +			if (cntlofreq) {
> +				/* if both entries are the same, ignore this
> +				 * one... 
> +				 */
> +				if ((powernow_table[i].frequency != powernow_table[cntlofreq].frequency) ||
> +				    (powernow_table[i].index != powernow_table[cntlofreq].index)) {
> +					printk(KERN_ERR PFX "Too many lo freq table entries\n");
> +					goto err_out;
> +				}
> +
> +				dprintk(KERN_INFO PFX "double low frequency table entry, ignoring it.\n");
> +				powernow_table[i].frequency = CPUFREQ_ENTRY_INVALID;
> +			} else
> +				cntlofreq = i;
>  		}
>                                                                                                              
>  		if (powernow_table[i].frequency != (data->acpi_data.states[i].core_frequency * 1000)) {
> 

I patched 2.6.7-rc2 with this, and get this output from the module:

powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (versio1.00.09b)
powernow-k8: invalid freq entries 4294967295 kHz vs. 800000 kHz
powernow-k8:    0 : fid 0x8 (1600 MHz), vid 0x6 (1400 mV)
powernow-k8:    1 : fid 0x0 (800 MHz), vid 0x18 (950 mV)
powernow-k8: cpu_init done, current fid 0x8, vid 0x6

Seems to be working OK.  Thanks for everyone's help.

Ken

  parent reply	other threads:[~2004-06-04 16:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-03 21:42 ACPI / cpufreq on Presario R3120 paul.devriendt
2004-06-03 21:58 ` Ken Hughes
2004-06-04  9:59 ` Bruno Ducrot
2004-06-04 15:25   ` Dominik Brodowski
2004-06-04 16:07     ` Bruno Ducrot
2004-06-05 13:46       ` Dominik Brodowski
2004-06-04 16:55     ` Ken Hughes [this message]
2004-06-05 13:47       ` [PATCH] " Dominik Brodowski
  -- strict thread matches above, loose matches on Subject: below --
2004-06-04 18:01 paul.devriendt
2004-06-05 13:52 ` Dominik Brodowski
2004-06-03 17:39 paul.devriendt
2004-06-03 14:32 Ken Hughes
2004-06-03 17:25 ` Bruno Ducrot
2004-06-03 18:02   ` Ken Hughes
2004-06-03 18:20     ` Bruno Ducrot
2004-06-03 20:34       ` Dave Jones

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=40C0A99C.3030308@pacific.edu \
    --to=khughes@pacific.edu \
    --cc=Cpufreq@www.linux.org.uk \
    --cc=davej@redhat.com \
    --cc=ducrot@poupinou.org \
    --cc=linux@dominikbrodowski.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.