From: Pavel Machek <pavel@ucw.cz>
To: Dave Jones <davej@redhat.com>,
Randy Dunlap <randy.dunlap@oracle.com>,
davej@codemonkey.org.uk, lkml <linux-kernel@vger.kernel.org>,
akpm <akpm@osdl.org>
Subject: Re: [Ubuntu PATCH] cpufreq: fix powernow-k8 load bug
Date: Fri, 23 Jun 2006 14:46:56 +0200 [thread overview]
Message-ID: <20060623124654.GA8048@elf.ucw.cz> (raw)
In-Reply-To: <20060623122845.GC19461@redhat.com>
Hi!
> > > --- linux-2617-pv.orig/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
> > > +++ linux-2617-pv/arch/i386/kernel/cpu/cpufreq/powernow-k8.c
> > > @@ -1008,7 +1008,7 @@ static int __cpuinit powernowk8_cpu_init
> > > * an UP version, and is deprecated by AMD.
> > > */
> > >
> > > - if ((num_online_cpus() != 1) || (num_possible_cpus() != 1)) {
> > > + if ((num_online_cpus() != 1)) {
> > > printk(KERN_ERR PFX "MP systems not supported by PSB BIOS structure\n");
> > > kfree(data);
> > > return -ENODEV;
> > >
> >
> > Seems wrong to me... what if I boot, then hotplug second cpu?
>
> We only run this code if powernow_k8_cpu_init_acpi() has failed,
> which it should never do on an SMP system.
>
> So, you get exactly the same behaviour, as expected.
> You can't support >1 CPU with PSB.
>
> The above patch makes sure things continue to work if you run
> an SMP kernel on UP hardware.
I'm pretty sure you'll find SMP machine with broken ACPI cpufreq
(therefore cpu_init_acpi() will fail). And if user is perverse enough,
he might boot with one cpu then simulate hotplug of second one.
OTOH:
1) user is already doing perverse things at this point
and
2) machine BIOS is b0rken
...so... it is only theoretical and probably not worth fixing.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2006-06-23 12:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-21 5:32 [Ubuntu PATCH] cpufreq: fix powernow-k8 load bug Randy Dunlap
2006-06-21 5:41 ` Dave Jones
2006-06-21 5:45 ` Dave Jones
2006-06-22 20:38 ` Pavel Machek
2006-06-23 12:28 ` Dave Jones
2006-06-23 12:46 ` Pavel Machek [this message]
2006-06-23 13:04 ` Dave Jones
2006-06-23 13:05 ` Pavel Machek
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=20060623124654.GA8048@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@osdl.org \
--cc=davej@codemonkey.org.uk \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.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