public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: Zhang Rui <rui.zhang@intel.com>
Cc: davej@redhat.com, linux-acpi <linux-acpi@vger.kernel.org>,
	cpufreq@vger.kernel.org, Len Brown <lenb@kernel.org>,
	howl.nsp@gmail.com, "Langsdorf, Mark" <mark.langsdorf@amd.com>
Subject: Re: [PATCH] powernow-k8: don't load powernow-k8 driver when acpi=off
Date: Thu, 23 Jul 2009 12:09:12 +0200	[thread overview]
Message-ID: <200907231209.13343.trenn@suse.de> (raw)
In-Reply-To: <1248315070.2670.16.camel@rzhang-dt>

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


  parent reply	other threads:[~2009-07-23 10:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200907231209.13343.trenn@suse.de \
    --to=trenn@suse.de \
    --cc=cpufreq@vger.kernel.org \
    --cc=davej@redhat.com \
    --cc=howl.nsp@gmail.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mark.langsdorf@amd.com \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox