Skip to contentSkip to conversation

x86, intel, power: Modify the MSR_IA32_ENERGY_PERF_BIAS message from warning to info

PATCH In review Ivan Hu 2 participants 2 messages Oct 25, 2012 x86

lore
Share & tools
lore

Ivan Hu

author
#0 lore raw

PATCH 1/1 x86, intel, power: Modify the MSR_IA32_ENERGY_PERF_BIAS message from warning to info

Intel IA32 program guild doesn't mention that this MSR should be set by BIOS, instead, it mentions "Software can use whatever criteria it sees fit to program the MSR with the appropriate value.". Discuss with IBV, they'd like to keep this MSR as default, and let OS to change value if desired. This message should be more proper set as an info than a warning.

---
 arch/x86/kernel/cpu/intel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/intel.c +1 -1
index 198e019..2bdc6bf 100644
@@ -466,7 +466,7 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
 
 		rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
 		if ((epb & 0xF) == ENERGY_PERF_BIAS_PERFORMANCE) {
-			printk_once(KERN_WARNING "ENERGY_PERF_BIAS:"
+			printk_once(KERN_INFO "ENERGY_PERF_BIAS:"
 				" Set to 'normal', was 'performance'\n"
 				"ENERGY_PERF_BIAS: View and update with"
 				" x86_energy_perf_policy(8)\n");
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw
Quoted 5 lines · Ivan Hu

Intel IA32 program guild doesn't mention that this MSR should be set by BIOS, instead, it mentions "Software can use whatever criteria it sees fit to program the MSR with the appropriate value.". Discuss with IBV, they'd like to keep this MSR as default, and let OS to change value if desired. This message should be more proper set as an info than a warning.

What is the difference? It'll appear in default dmesg loglevel settings anyway.

Quoted 10 lines
---
 arch/x86/kernel/cpu/intel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/intel.c +0 -0
index 198e019..2bdc6bf 100644

arch/x86/kernel/cpu/intel.c static void __cpuinit init_intel(struct cpuinfo_x86 *c) · line 469

Quoted 5 lines
arch/x86/kernel/cpu/intel.c +1 -1
@@ -466,7 +466,7 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)
 
 		rdmsrl(MSR_IA32_ENERGY_PERF_BIAS, epb);
 		if ((epb & 0xF) == ENERGY_PERF_BIAS_PERFORMANCE) {
-			printk_once(KERN_WARNING "ENERGY_PERF_BIAS:"
+			printk_once(KERN_INFO "ENERGY_PERF_BIAS:"

While you're at it, you can do pr_info_once to shorten this line a bit.

Quoted 5 lines
arch/x86/kernel/cpu/intel.c +0 -0
 				" Set to 'normal', was 'performance'\n"
 				"ENERGY_PERF_BIAS: View and update with"
 				" x86_energy_perf_policy(8)\n");
Signature · 1 line
1.7.10.4
Signature · 2 lines
Regards/Gruss,
    Boris.