All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: davej@codemonkey.org.uk, akpm@osdl.org, cpufreq@www.linux.org.uk,
	pavel@ucw.cz
Subject: Re: powernow-k8-buggy-bios-override-for-266.patch
Date: Thu, 13 May 2004 10:12:57 -0700	[thread overview]
Message-ID: <20040513171256.GA28678@atomide.com> (raw)
In-Reply-To: <20040513144721.GA8015@dominikbrodowski.de>

[-- Attachment #1: Type: text/plain, Size: 1118 bytes --]

* Dominik Brodowski <linux@dominikbrodowski.de> [040513 07:51]:
> 
> > This patch should be safe to apply, even if Pavel's ACPI table check is
> > added to the driver.
> 
> Which check? I thought the powernow-k8 driver is quite up to date, Pavel?

OK, after some further investigating here's what happens. The ACPI table
parsing is there, and works. I was just updating my patch to 2.6.6, and 
did not pay much attention to what else had changed.

However, since my computer locks up as of 2.6.6 if ACPI processor is
compiled in, I've had it compiled as a module. Loading it after the init is
done does not lock up the system...

So I had CONFIG_ACPI_PROCESSOR=m, and that made the powernow-k8 ACPI
detection to fail. It now works good with the following little patch. Now
I also have the 1600MHz in addition to 800MHz and 1800MHz :)

I can keep my earlier patch around on my website in case somebody needs it.
It could also be included as secondary fallback if both ACPI and BIOS fail.

What happens with the ACPI speed tables with CPU upgrade BTW? Are they
hardcoded, or generated by the BIOS?

Regards,

Tony







[-- Attachment #2: patch-2.6.6-powernow-acpi-module --]
[-- Type: text/plain, Size: 1391 bytes --]

diff -Nru a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
--- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c	Thu May 13 09:58:24 2004
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c	Thu May 13 09:58:24 2004
@@ -32,7 +32,7 @@
 #include <asm/io.h>
 #include <asm/delay.h>
 
-#ifdef CONFIG_ACPI_PROCESSOR
+#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
 #include <linux/acpi.h>
 #include <acpi/processor.h>
 #endif
@@ -666,7 +696,7 @@
 	return -ENODEV;
 }
 
-#ifdef CONFIG_ACPI_PROCESSOR
+#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
 static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, unsigned int index)
 {
 	if (!data->acpi_data.state_count)
diff -Nru a/arch/i386/kernel/cpu/cpufreq/powernow-k8.h b/arch/i386/kernel/cpu/cpufreq/powernow-k8.h
--- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.h	Thu May 13 09:58:24 2004
+++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.h	Thu May 13 09:58:24 2004
@@ -29,7 +29,7 @@
 	 * frequency is in kHz */
 	struct cpufreq_frequency_table  *powernow_table;
 
-#ifdef CONFIG_ACPI_PROCESSOR
+#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)
 	/* the acpi table needs to be kept. it's only available if ACPI was
 	 * used to determine valid frequency/vid/fid states */
 	struct acpi_processor_performance acpi_data;

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq

      parent reply	other threads:[~2004-05-13 17:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-13 14:47 powernow-k8-buggy-bios-override-for-266.patch Dominik Brodowski
2004-05-13 15:19 ` powernow-k8-buggy-bios-override-for-266.patch Tony Lindgren
2004-05-13 17:12 ` Tony Lindgren [this message]

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=20040513171256.GA28678@atomide.com \
    --to=tony@atomide.com \
    --cc=akpm@osdl.org \
    --cc=cpufreq@www.linux.org.uk \
    --cc=davej@codemonkey.org.uk \
    --cc=pavel@ucw.cz \
    /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.