public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off
@ 2009-07-23  2:11 Zhang Rui
  2009-07-23  8:25 ` Thomas Renninger
  2009-07-23 10:09 ` Thomas Renninger
  0 siblings, 2 replies; 5+ messages in thread
From: Zhang Rui @ 2009-07-23  2:11 UTC (permalink / raw)
  To: davej
  Cc: linux-acpi, cpufreq, Len Brown, Thomas Renninger, Zhang, Rui,
	howl.nsp

when acpi=off, powernow-k8 driver is still loaded, and fails with
a firmware bug warning message.
http://bugzilla.kernel.org/show_bug.cgi?id=13695#c5

this is misleading,
we should not load powernow-k8 driver when acpi=off.
http://bugzilla.kernel.org/show_bug.cgi?id=13695

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: David Santamaría Rogado <howl.nsp@gmail.com>
---
 arch/x86/kernel/cpu/cpufreq/powernow-k8.c |    3 +++
 1 file changed, 3 insertions(+)

Index: linux-2.6/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
+++ linux-2.6/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
@@ -1436,6 +1436,9 @@ static int __cpuinit powernowk8_init(voi
 {
 	unsigned int i, supported_cpus = 0;
 
+	if (acpi_disabled)
+		return 0;
+
 	for_each_online_cpu(i) {
 		int rc;
 		smp_call_function_single(i, check_supported_cpu, &rc, 1);


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off
  2009-07-23  2:11 [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off Zhang Rui
@ 2009-07-23  8:25 ` Thomas Renninger
  2009-07-23 10:09 ` Thomas Renninger
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Renninger @ 2009-07-23  8:25 UTC (permalink / raw)
  To: Zhang Rui
  Cc: davej, linux-acpi, cpufreq, Len Brown, howl.nsp, Langsdorf, Mark

On Thursday 23 July 2009 04:11:10 Zhang Rui wrote:
> when acpi=off, powernow-k8 driver is still loaded, and fails with
> a firmware bug warning message.
> http://bugzilla.kernel.org/show_bug.cgi?id=13695#c5

Powernow-k8 can theoretically fetch info from a non-acpi
table for specific 1 core systems, but I agree that in nearly
all cases this won't work anyway. And acpi should still
be switched on.

Mark should get a chance to look at this before it's submitted,
though.

> this is misleading,
> we should not load powernow-k8 driver when acpi=off.
> http://bugzilla.kernel.org/show_bug.cgi?id=13695
> 
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>

Reviewed-by: Thomas Renninger <trenn@suse.de>

> Tested-by: David Santamaría Rogado <howl.nsp@gmail.com>
> ---
>  arch/x86/kernel/cpu/cpufreq/powernow-k8.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> Index: linux-2.6/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> ===================================================================
> --- linux-2.6.orig/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> +++ linux-2.6/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> @@ -1436,6 +1436,9 @@ static int __cpuinit powernowk8_init(voi
>  {
>  	unsigned int i, supported_cpus = 0;
>  
> +	if (acpi_disabled)
> +		return 0;
> +
>  	for_each_online_cpu(i) {
>  		int rc;
>  		smp_call_function_single(i, check_supported_cpu, &rc, 1);
> 
> 
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off
  2009-07-23  2:11 [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off Zhang Rui
  2009-07-23  8:25 ` Thomas Renninger
@ 2009-07-23 10:09 ` Thomas Renninger
  2009-07-28  5:24   ` Zhang Rui
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Renninger @ 2009-07-23 10:09 UTC (permalink / raw)
  To: Zhang Rui
  Cc: davej, linux-acpi, cpufreq, Len Brown, howl.nsp, Langsdorf, Mark

On Thursday 23 July 2009 04:11:10 Zhang Rui wrote:
> when acpi=off, powernow-k8 driver is still loaded, and fails with
> a firmware bug warning message.
> http://bugzilla.kernel.org/show_bug.cgi?id=13695#c5
> 
> this is misleading,
> we should not load powernow-k8 driver when acpi=off.
> http://bugzilla.kernel.org/show_bug.cgi?id=13695

Maybe this one is better:
  - It allows these special, deprecated PSB BIOS structure
    use in acpi=off case
  - It complains that powernow-k8 won't work without ACPI, instead
    of complaining about the BIOS missing _PSS ACPI structures
    (in acpi=off case).

Compile tested on latest 2.6.31-rc2.

   Thomas

----
CPUFREQ: Avoid powernow-k8 BIOS complains when acpi=off

  - It still allows these special, deprecated PSB BIOS structure
    use in acpi=off case
  - It complains that powernow-k8 won't work without ACPI, instead
    of complaining about the BIOS missing _PSS ACPI structures
    (in acpi=off case).

Signed-off-by: Thomas Renninger <trenn@suse.de>

---
 arch/x86/kernel/cpu/cpufreq/powernow-k8.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Index: cpufreq_governor_cleanups/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
===================================================================
--- cpufreq_governor_cleanups.orig/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
+++ cpufreq_governor_cleanups/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
@@ -1286,7 +1286,11 @@ static int __cpuinit powernowk8_cpu_init
 		 * an UP version, and is deprecated by AMD.
 		 */
 		if (num_online_cpus() != 1) {
-			printk_once(ACPI_PSS_BIOS_BUG_MSG);
+			if (acpi_disabled)
+				printk_once(KERN_WARN PFX
+					    "ACPI disabled, exiting\n");
+			else
+				printk_once(ACPI_PSS_BIOS_BUG_MSG);
 			goto err_out;
 		}
 		if (pol->cpu != 0) {


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

* Re: [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off
  2009-07-23 10:09 ` Thomas Renninger
@ 2009-07-28  5:24   ` Zhang Rui
  2009-07-28 14:47     ` [PATCH] powernow-k8: don't load powernow-k8 driver whenacpi=off Langsdorf, Mark
  0 siblings, 1 reply; 5+ messages in thread
From: Zhang Rui @ 2009-07-28  5:24 UTC (permalink / raw)
  To: Thomas Renninger
  Cc: davej@redhat.com, linux-acpi, cpufreq@vger.kernel.org, Len Brown,
	howl.nsp@gmail.com, Langsdorf, Mark

On Thu, 2009-07-23 at 18:09 +0800, Thomas Renninger wrote:
> On Thursday 23 July 2009 04:11:10 Zhang Rui wrote:
> > when acpi=off, powernow-k8 driver is still loaded, and fails with
> > a firmware bug warning message.
> > http://bugzilla.kernel.org/show_bug.cgi?id=13695#c5
> > 
> > this is misleading,
> > we should not load powernow-k8 driver when acpi=off.
> > http://bugzilla.kernel.org/show_bug.cgi?id=13695
> 
> Maybe this one is better:
>   - It allows these special, deprecated PSB BIOS structure
>     use in acpi=off case
>   - It complains that powernow-k8 won't work without ACPI, instead
>     of complaining about the BIOS missing _PSS ACPI structures
>     (in acpi=off case).
> 
> Compile tested on latest 2.6.31-rc2.
> 
>    Thomas
> 
> ----
> CPUFREQ: Avoid powernow-k8 BIOS complains when acpi=off
> 
>   - It still allows these special, deprecated PSB BIOS structure
>     use in acpi=off case
>   - It complains that powernow-k8 won't work without ACPI, instead
>     of complaining about the BIOS missing _PSS ACPI structures
>     (in acpi=off case).
> 
> Signed-off-by: Thomas Renninger <trenn@suse.de>

Signed-off-by: Zhang Rui <rui.zhang@intel.com>

thanks,
rui
> 
> ---
>  arch/x86/kernel/cpu/cpufreq/powernow-k8.c |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> Index: cpufreq_governor_cleanups/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> ===================================================================
> --- cpufreq_governor_cleanups.orig/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> +++ cpufreq_governor_cleanups/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> @@ -1286,7 +1286,11 @@ static int __cpuinit powernowk8_cpu_init
>  		 * an UP version, and is deprecated by AMD.
>  		 */
>  		if (num_online_cpus() != 1) {
> -			printk_once(ACPI_PSS_BIOS_BUG_MSG);
> +			if (acpi_disabled)
> +				printk_once(KERN_WARN PFX
> +					    "ACPI disabled, exiting\n");
> +			else
> +				printk_once(ACPI_PSS_BIOS_BUG_MSG);
>  			goto err_out;
>  		}
>  		if (pol->cpu != 0) {
> 


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

* RE: [PATCH] powernow-k8: don't load powernow-k8 driver whenacpi=off
  2009-07-28  5:24   ` Zhang Rui
@ 2009-07-28 14:47     ` Langsdorf, Mark
  0 siblings, 0 replies; 5+ messages in thread
From: Langsdorf, Mark @ 2009-07-28 14:47 UTC (permalink / raw)
  To: Zhang Rui, Thomas Renninger
  Cc: davej, linux-acpi, cpufreq, Len Brown, howl.nsp

 

> -----Original Message-----
> From: Zhang Rui [mailto:rui.zhang@intel.com] 
> Sent: Tuesday, July 28, 2009 12:24 AM
> To: Thomas Renninger
> Cc: davej@redhat.com; linux-acpi; cpufreq@vger.kernel.org; 
> Len Brown; howl.nsp@gmail.com; Langsdorf, Mark
> Subject: Re: [PATCH] powernow-k8: don't load powernow-k8 
> driver whenacpi=off
> 
> On Thu, 2009-07-23 at 18:09 +0800, Thomas Renninger wrote:
> > On Thursday 23 July 2009 04:11:10 Zhang Rui wrote:
> > > when acpi=off, powernow-k8 driver is still loaded, and fails with
> > > a firmware bug warning message.
> > > http://bugzilla.kernel.org/show_bug.cgi?id=13695#c5
> > > 
> > > this is misleading,
> > > we should not load powernow-k8 driver when acpi=off.
> > > http://bugzilla.kernel.org/show_bug.cgi?id=13695
> > 
> > Maybe this one is better:
> >   - It allows these special, deprecated PSB BIOS structure
> >     use in acpi=off case
> >   - It complains that powernow-k8 won't work without ACPI, instead
> >     of complaining about the BIOS missing _PSS ACPI structures
> >     (in acpi=off case).
> > 
> > Compile tested on latest 2.6.31-rc2.
> > 
> >    Thomas
> > 
> > ----
> > CPUFREQ: Avoid powernow-k8 BIOS complains when acpi=off
> > 
> >   - It still allows these special, deprecated PSB BIOS structure
> >     use in acpi=off case
> >   - It complains that powernow-k8 won't work without ACPI, instead
> >     of complaining about the BIOS missing _PSS ACPI structures
> >     (in acpi=off case).
> > 
> > Signed-off-by: Thomas Renninger <trenn@suse.de>
> 
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>

> > ---
> >  arch/x86/kernel/cpu/cpufreq/powernow-k8.c |    6 +++++-
> >  1 file changed, 5 insertions(+), 1 deletion(-)
> > 
> > Index: 
> cpufreq_governor_cleanups/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> > ===================================================================
> > --- 
> cpufreq_governor_cleanups.orig/arch/x86/kernel/cpu/cpufreq/pow
> ernow-k8.c
> > +++ 
> cpufreq_governor_cleanups/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
> > @@ -1286,7 +1286,11 @@ static int __cpuinit powernowk8_cpu_init
> >  		 * an UP version, and is deprecated by AMD.
> >  		 */
> >  		if (num_online_cpus() != 1) {
> > -			printk_once(ACPI_PSS_BIOS_BUG_MSG);
> > +			if (acpi_disabled)
> > +				printk_once(KERN_WARN PFX
> > +					    "ACPI disabled, exiting\n");
> > +			else
> > +				printk_once(ACPI_PSS_BIOS_BUG_MSG);
> >  			goto err_out;
> >  		}
> >  		if (pol->cpu != 0) {
> > 
> 
> 
> 


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

end of thread, other threads:[~2009-07-28 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-23  2:11 [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off Zhang Rui
2009-07-23  8:25 ` Thomas Renninger
2009-07-23 10:09 ` Thomas Renninger
2009-07-28  5:24   ` Zhang Rui
2009-07-28 14:47     ` [PATCH] powernow-k8: don't load powernow-k8 driver whenacpi=off Langsdorf, Mark

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