public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: Christoph Terhechte <ct@fdk-berlin.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: powernow-k8: broken PSB
Date: Fri, 09 Apr 2004 17:57:00 +0200	[thread overview]
Message-ID: <m33c7dw3eb.fsf@averell.firstfloor.org> (raw)
In-Reply-To: <1Gyjw-2iM-9@gated-at.bofh.it> (Christoph Terhechte's message of "Fri, 02 Apr 2004 17:00:18 +0200")

Christoph Terhechte <ct@fdk-berlin.de> writes:

> I'm running Gentoo Linux on an Athlon 64 system (board is Asus 8KV SE
> Deluxe). I was getting the "BIOS error - no PSB" message when trying to
> "modprobe powernow-k8", so I upgraded to 2.6.5-rc3-mm4 which includes
> Pavel Machek's new powernow-k8 driver. Theoretically, it should be
> getting tables through ACPI and ignore the legacy PST/PSB tables, but
> I'm still getting the same error as before and inserting powernow-k8
> fails with this message:
>
> FATAL: Error inserting powernow_k8
> (/lib/modules/2.6.5-rc3-mm4/kernel/arch/x86_64/cpufreq/powernow-k8.ko):
> No such device

You have ACPI disabled right? 

If yes this patch will fix it.

But you should enable it, otherwise the powernow driver works just like 
the old one.

-Andi

diff -u linux/drivers/acpi/processor.c-o linux/drivers/acpi/processor.c
--- linux/drivers/acpi/processor.c-o	2004-04-04 23:35:32.000000000 +0200
+++ linux/drivers/acpi/processor.c	2004-04-05 21:39:37.000000000 +0200
@@ -2372,6 +2372,10 @@
 }
 
 
+/* We keep the driver loaded even when ACPI is not running. 
+   This is needed for the powernow-k8 driver, that works even without
+   ACPI, but needs symbols from this driver */
+
 static int __init
 acpi_processor_init (void)
 {
@@ -2384,12 +2388,12 @@
 
 	acpi_processor_dir = proc_mkdir(ACPI_PROCESSOR_CLASS, acpi_root_dir);
 	if (!acpi_processor_dir)
-		return_VALUE(-ENODEV);
+		return_VALUE(0);
 
 	result = acpi_bus_register_driver(&acpi_processor_driver);
 	if (result < 0) {
 		remove_proc_entry(ACPI_PROCESSOR_CLASS, acpi_root_dir);
-		return_VALUE(-ENODEV);
+		return_VALUE(0);
 	}
 
 	acpi_thermal_cpufreq_init();





       reply	other threads:[~2004-04-09 15:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1Gyjw-2iM-9@gated-at.bofh.it>
2004-04-09 15:57 ` Andi Kleen [this message]
2004-04-10 14:31   ` powernow-k8: broken PSB Christoph Terhechte
2004-04-02 14:47 Christoph Terhechte
2004-04-09 10:27 ` Pavel Machek

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=m33c7dw3eb.fsf@averell.firstfloor.org \
    --to=ak@muc.de \
    --cc=ct@fdk-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox