linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86, intel, power: Modify the MSR_IA32_ENERGY_PERF_BIAS message from warning to info
@ 2012-10-25  9:28 Ivan Hu
  2012-10-25  9:49 ` Borislav Petkov
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Hu @ 2012-10-25  9:28 UTC (permalink / raw)
  To: tglx, mingo, hpa, x86, alex.shi, borislav.petkov, ivan.hu, linux-kernel

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.

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 arch/x86/kernel/cpu/intel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
index 198e019..2bdc6bf 100644
--- a/arch/x86/kernel/cpu/intel.c
+++ b/arch/x86/kernel/cpu/intel.c
@@ -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");
-- 
1.7.10.4


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

* Re: [PATCH] x86, intel, power: Modify the MSR_IA32_ENERGY_PERF_BIAS message from warning to info
  2012-10-25  9:28 [PATCH] x86, intel, power: Modify the MSR_IA32_ENERGY_PERF_BIAS message from warning to info Ivan Hu
@ 2012-10-25  9:49 ` Borislav Petkov
  0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2012-10-25  9:49 UTC (permalink / raw)
  To: Ivan Hu; +Cc: tglx, mingo, hpa, x86, alex.shi, borislav.petkov, linux-kernel

On Thu, Oct 25, 2012 at 05:28:00PM +0800, Ivan Hu wrote:
> 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.

> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>  arch/x86/kernel/cpu/intel.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
> index 198e019..2bdc6bf 100644
> --- a/arch/x86/kernel/cpu/intel.c
> +++ b/arch/x86/kernel/cpu/intel.c
> @@ -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.

>  				" Set to 'normal', was 'performance'\n"
>  				"ENERGY_PERF_BIAS: View and update with"
>  				" x86_energy_perf_policy(8)\n");
> -- 
> 1.7.10.4

-- 
Regards/Gruss,
    Boris.

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

end of thread, other threads:[~2012-10-25  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25  9:28 [PATCH] x86, intel, power: Modify the MSR_IA32_ENERGY_PERF_BIAS message from warning to info Ivan Hu
2012-10-25  9:49 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).