public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* powernow-k8: broken PSB
@ 2004-04-02 14:47 Christoph Terhechte
  2004-04-09 10:27 ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Terhechte @ 2004-04-02 14:47 UTC (permalink / raw)
  To: Linux Kernel Mailing List

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

Hi,

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

Is there anything I need to tell the kernel explicitly to inform it not
to use the legacy method? Any kernel options I might have overlooked?

BIOS support for ACPI 2.0 is activated and APIC APIC Supprt enabled. I'm
confused about this boot message, though:

PCI bridge 00:01 from 1106 found. Setting "noapic". Overwrite with
"apic"

-- 
Christoph Terhechte <ct@fdk-berlin.de>
International Forum of New Cinema
Potsdamer Strasse 2
D-10785 Berlin
Tel: +49-30-269.55.200
Fax: +49-30-269.55.222


[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: powernow-k8: broken PSB
  2004-04-02 14:47 powernow-k8: broken PSB Christoph Terhechte
@ 2004-04-09 10:27 ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2004-04-09 10:27 UTC (permalink / raw)
  To: Christoph Terhechte; +Cc: Linux Kernel Mailing List

Hi!

> 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

Try putting it directly into kernel.
								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: powernow-k8: broken PSB
       [not found] <1Gyjw-2iM-9@gated-at.bofh.it>
@ 2004-04-09 15:57 ` Andi Kleen
  2004-04-10 14:31   ` Christoph Terhechte
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2004-04-09 15:57 UTC (permalink / raw)
  To: Christoph Terhechte; +Cc: linux-kernel

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();





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: powernow-k8: broken PSB
  2004-04-09 15:57 ` Andi Kleen
@ 2004-04-10 14:31   ` Christoph Terhechte
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Terhechte @ 2004-04-10 14:31 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel

> You have ACPI disabled right?

No, I have it enabled. Another AMD64 user sent me his kernel .config which
I tried, and it worked. Then I slowly went back to my original kernel
.config step by step to find out what the culprit was. I was amazed to
find out that powernow-k8 still worked after I had gone back to my
original .config (took me half a day and about 50 reboots). Impossible for
me to say what triggered this change of mind of my system, but it works
perfectly now without me changing anything.

Sometimes I feel that even in the digital world there are things beyond
explanation ;-)

-- 
Christoph Terhechte <ct@fdk-berlin.de>
International Forum of New Cinema
Potsdamer Strasse 2
D-10785 Berlin
Tel: +49-30-269.55.200
Fax: +49-30-269.55.222


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-10 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-02 14:47 powernow-k8: broken PSB Christoph Terhechte
2004-04-09 10:27 ` Pavel Machek
     [not found] <1Gyjw-2iM-9@gated-at.bofh.it>
2004-04-09 15:57 ` Andi Kleen
2004-04-10 14:31   ` Christoph Terhechte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox