Skip to contentSkip to conversation

powersave not working with amd64 on nforce 4 board

DISCUSSION Andrew Morton 3 participants 6 messages Jul 27, 2005 – Jul 28, 2005 5 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

It might help if you were to raise a bugzilla entry for this..

Begin forwarded message:

Date: Thu, 28 Jul 2005 00:26:18 +0200
From: Florian Engelhardt <[email protected]>
To: [email protected]
Subject: powersave not working with amd64 on nforce 4 board

Hello,

powersaving is not working with a 2.6.12-rc3-mm1 kernel and a amd64 3500+ on a nvidia nforce 4 mainboard.
syslog tells me the following about it:

...
ACPI: Processor [CPU0] (supports 8 throttling states)
...
powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.40.2) acpi_processor-0252 [04] acpi_processor_get_per: Error evaluating _PSS
powernow-k8: BIOS error - no PSB or ACPI _PSS objects acpi_processor-0252 [04] acpi_processor_get_per: Error evaluating _PSS

kind regards

flo

Signature · 14 lines
"I may have invented it, but Bill made it famous"
David Bradley, who invented the (in)famous ctrl-alt-del key combination
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
#2 lore raw
In reply to a message not in the archive

Hi,

Quoted 2 lines · Andrew Morton

It might help if you were to raise a bugzilla entry for this..

More likely it's BIOS bug. I ran 2.6.13-rc3-mm1 on a box with nForce4 and it worked fine except I needed to apply the attached patch from Mark Langsdorf, since the CPU is a dual-core.

BTW, any chance to include this patch in -mm?

Greets,
Rafael

Quoted 47 lines

Begin forwarded message:

Date: Thu, 28 Jul 2005 00:26:18 +0200
From: Florian Engelhardt <[email protected]>
To: [email protected]
Subject: powersave not working with amd64 on nforce 4 board

Hello,

powersaving is not working with a 2.6.12-rc3-mm1 kernel and a amd64 3500+ on a nvidia nforce 4 mainboard.
syslog tells me the following about it:

..
ACPI: Processor [CPU0] (supports 8 throttling states)
..
powernow-k8: Found 1 AMD Athlon 64 / Opteron processors (version 1.40.2) acpi_processor-0252 [04] acpi_processor_get_per: Error evaluating _PSS
powernow-k8: BIOS error - no PSB or ACPI _PSS objects acpi_processor-0252 [04] acpi_processor_get_per: Error evaluating _PSS

kind regards

flo

Signature · 18 lines
"I may have invented it, but Bill made it famous"
David Bradley, who invented the (in)famous ctrl-alt-del key combination
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel
Signature · 3 lines
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
		-- Lewis Carroll "Alice's Adventures in Wonderland"
arch/i386/kernel/cpu/cpufreq/powernow-k8.c renamed from arch/i386/kernel/cpu/cpufreq/powernow-k8.c.old +5 -3
@@ -44,7 +44,7 @@
 
 #define PFX "powernow-k8: "
 #define BFX PFX "BIOS error: "
-#define VERSION "version 1.40.2"
+#define VERSION "version 1.40.4"
 #include "powernow-k8.h"
 
 /* serialize freq changes  */
@@ -978,7 +978,7 @@
 {
 	struct powernow_k8_data *data;
 	cpumask_t oldmask = CPU_MASK_ALL;
-	int rc;
+	int rc, i;
 
 	if (!check_supported_cpu(pol->cpu))
 		return -ENODEV;
@@ -1064,7 +1064,9 @@
 	printk("cpu_init done, current fid 0x%x, vid 0x%x\n",
 	       data->currfid, data->currvid);
 
-	powernow_data[pol->cpu] = data;
+	for_each_cpu_mask(i, cpu_core_map[pol->cpu]) {
+		powernow_data[i] = data;
+	}
 
 	return 0;
 
#4 lore raw
In reply to a message not in the archive
Quoted 10 lines · Rafael J. Wysocki
Quoted 2 lines · Andrew Morton

It might help if you were to raise a bugzilla entry for this..

More likely it's BIOS bug. I ran 2.6.13-rc3-mm1 on a box with nForce4 and it worked fine except I needed to apply the attached patch from Mark Langsdorf, since the CPU is a dual-core.

BTW, any chance to include this patch in -mm?

Spose so. Would prefer that Mark himself sends it though.

Dave, does it look sane?

arch/i386/kernel/cpu/cpufreq/powernow-k8.c renamed from arch/i386/kernel/cpu/cpufreq/powernow-k8.c.old +5 -3
@@ -44,7 +44,7 @@
 
 #define PFX "powernow-k8: "
 #define BFX PFX "BIOS error: "
-#define VERSION "version 1.40.2"
+#define VERSION "version 1.40.4"
 #include "powernow-k8.h"
 
 /* serialize freq changes  */
@@ -978,7 +978,7 @@
 {
 	struct powernow_k8_data *data;
 	cpumask_t oldmask = CPU_MASK_ALL;
-	int rc;
+	int rc, i;
 
 	if (!check_supported_cpu(pol->cpu))
 		return -ENODEV;
@@ -1064,7 +1064,9 @@
 	printk("cpu_init done, current fid 0x%x, vid 0x%x\n",
 	       data->currfid, data->currvid);
 
-	powernow_data[pol->cpu] = data;
+	for_each_cpu_mask(i, cpu_core_map[pol->cpu]) {
+		powernow_data[i] = data;
+	}
 
 	return 0;
 

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

#6 lore raw
In reply to a message not in the archive
Quoted 10 lines · Andrew Morton
Quoted 9 lines · Rafael J. Wysocki
Quoted 2 lines · Andrew Morton

It might help if you were to raise a bugzilla entry for this..

More likely it's BIOS bug. I ran 2.6.13-rc3-mm1 on a box with nForce4 and it worked fine except I needed to apply the attached patch from Mark Langsdorf, since the CPU is a dual-core.

Quoted 5 lines
Quoted 1 line

BTW, any chance to include this patch in -mm?

Spose so. Would prefer that Mark himself sends it though.

Dave, does it look sane?

Yes it does, I meant to send this along, but got caught up in the usual OLS-travelling foo. I'll clear the cpufreq backlog today, as there's 2-3 other bits that really should make it into .13

Thanks,

Dave

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

#8 lore raw
In reply to a message not in the archive
Quoted 14 lines · Dave Jones
Quoted 12 lines · Andrew Morton
Quoted 10 lines · Rafael J. Wysocki
Quoted 2 lines · Andrew Morton

It might help if you were to raise a bugzilla entry for this..

More likely it's BIOS bug. I ran 2.6.13-rc3-mm1 on a box with nForce4 and it worked fine except I needed to apply the attached patch from Mark Langsdorf, since the CPU is a dual-core.

BTW, any chance to include this patch in -mm?

Quoted 8 lines
Quoted 3 lines

Spose so. Would prefer that Mark himself sends it though.

Dave, does it look sane?

Yes it does, I meant to send this along, but got caught up in the usual OLS-travelling foo. I'll clear the cpufreq backlog today, as there's 2-3 other bits that really should make it into .13

OK. I won't do anything with this patch then. Please don't lose it ;)

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

#10 lore raw
In reply to a message not in the archive
Quoted 10 lines · Andrew Morton
Quoted 8 lines
Quoted 3 lines

Spose so. Would prefer that Mark himself sends it though.

Dave, does it look sane?

Yes it does, I meant to send this along, but got caught up in the usual OLS-travelling foo. I'll clear the cpufreq backlog today, as there's 2-3 other bits that really should make it into .13

OK. I won't do anything with this patch then. Please don't lose it ;)

Its now in cpufreq-git, and I sent Linus a req to pull already. Thanks for keeping track of things ;)

Dave

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf