From: Ed Sweetman <safemode2@comcast.net>
To: Pavel Machek <pavel@ucw.cz>
Cc: Daniel Drake <dsd@gentoo.org>,
davej@redhat.com, duaneg@dghda.com, prakash@punnoor.de,
jhoblitt@ifa.hawaii.edu, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] powernow-k8: depend on acpi-processor for SMP systems
Date: Thu, 17 May 2007 06:24:22 -0400 [thread overview]
Message-ID: <464C2D56.6030402@comcast.net> (raw)
In-Reply-To: <20070517090227.GB3975@ucw.cz>
Pavel Machek wrote:
> Hi!
>
>
>> powernow-k8 uses PSB BIOS tables to read frequency info on UP systems, but
>> on SMP it requires the acpi-processor driver. Kconfig should be updated
>> accordingly to avoid the issues that users are running into.
>>
>> http://bugzilla.kernel.org/show_bug.cgi?id=8075
>> https://bugs.gentoo.org/show_bug.cgi?id=178585
>>
>> Signed-off-by: Daniel Drake <dsd@gentoo.org>
>>
>> Index: linux/arch/i386/kernel/cpu/cpufreq/Kconfig
>> ===================================================================
>> --- linux.orig/arch/i386/kernel/cpu/cpufreq/Kconfig
>> +++ linux/arch/i386/kernel/cpu/cpufreq/Kconfig
>> @@ -81,6 +81,7 @@ config X86_POWERNOW_K7_ACPI
>> config X86_POWERNOW_K8
>> tristate "AMD Opteron/Athlon64 PowerNow!"
>> select CPU_FREQ_TABLE
>> + select ACPI_PROCESSOR if SMP
>> depends on EXPERIMENTAL
>> help
>> This adds the CPUFreq driver for mobile AMD Opteron/Athlon64 processors.
>>
>
> It is still possible to run SMP kernel on UP machine -- so this sounds
> wrong.
>
>
It's possible to run a kernel with drivers for hardware you dont have.
But not having the dependencies correct for those drivers for that
hardware you dont have just because it's possible you can run a kernel
with those drivers without that hardware isn't correct. Got it?
if an SMP K8 system needs ACPI_PROCESSOR for the cpufreq driver, then we
need to make this dependency, just because you can configure your
kernel to include drivers you dont need (like smp on a up system)
doesn't mean that dependency is wrong, it just means you've configured
your system with drivers you dont need. Looking up the acpi table on a
UP system probably wont break anything, since the driver should check if
it's not able to and fallback to non-acpi methods before failing
completley. If it doesn't then this patch should be fine. Otherwise
we'd need to add a check in the driver to see if we're actually running
in an smp configuration and use the correct method.
The Kconfig dependency would still be valid in either case. If the
lookup for acpi tables fails with no fallback to the non-acpi way of
using the cpufreq driver, then we have to fix the driver.
next prev parent reply other threads:[~2007-05-17 10:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 23:50 [PATCH] powernow-k8: depend on acpi-processor for SMP systems Daniel Drake
2007-05-17 0:03 ` Dave Jones
2007-05-17 0:26 ` Joshua Hoblitt
2007-05-17 0:37 ` Dave Jones
2007-05-17 0:54 ` Daniel Drake
2007-05-17 1:03 ` Ed Sweetman
2007-05-17 9:02 ` Pavel Machek
2007-05-17 10:24 ` Ed Sweetman [this message]
2007-06-04 10:52 ` Pavel Machek
2007-05-17 18:13 ` Len Brown
2007-05-17 18:23 ` Dave Jones
2007-05-17 21:29 ` Ed Sweetman
2007-05-17 21:40 ` Ed Sweetman
2007-05-17 21:52 ` Dave Jones
2007-05-17 22:15 ` Ed Sweetman
2007-05-17 21:43 ` Dave Jones
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=464C2D56.6030402@comcast.net \
--to=safemode2@comcast.net \
--cc=davej@redhat.com \
--cc=dsd@gentoo.org \
--cc=duaneg@dghda.com \
--cc=jhoblitt@ifa.hawaii.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=prakash@punnoor.de \
/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