Skip to contentSkip to conversation

powernow-k8: broken PSB

DISCUSSION Andi Kleen 2 participants 2 messages Apr 9, 2004 – Apr 10, 2004 1 message not in the archive ACPI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 11 lines · Christoph Terhechte

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

drivers/acpi/processor.c renamed from drivers/acpi/processor.c-o +6 -2
diff -u linux/drivers/acpi/processor.c-o linux/drivers/acpi/processor.c
@@ -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();
#2 lore raw
Quoted 1 line

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

Signature · 6 lines
Christoph Terhechte <[email protected]>
International Forum of New Cinema
Potsdamer Strasse 2
D-10785 Berlin
Tel: +49-30-269.55.200
Fax: +49-30-269.55.222