* [BUG] cpufreq on SMP with CPUs present but not online
@ 2005-01-17 22:38 Russell King
2005-01-18 18:06 ` Dominik Brodowski
0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2005-01-17 22:38 UTC (permalink / raw)
To: cpufreq
... causes the cpufreq driver init method to be called for each CPU.
However, this causes something of a dilema on ARM/SMP - if the CPU
is not online (because we failed to bring it up via __cpu_up which
correctly returned an error), we can't read the current clock rate
settings, so we can't initialise policy->{cur,min,max} fields.
Returning an error from the cpufreq driver init method means that
cpufreq completely forgets about this particular CPU, which also
isn't desirable.
Ideas?
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] cpufreq on SMP with CPUs present but not online
2005-01-17 22:38 [BUG] cpufreq on SMP with CPUs present but not online Russell King
@ 2005-01-18 18:06 ` Dominik Brodowski
2005-01-18 19:08 ` Russell King
0 siblings, 1 reply; 3+ messages in thread
From: Dominik Brodowski @ 2005-01-18 18:06 UTC (permalink / raw)
To: Russell King; +Cc: cpufreq
On Mon, Jan 17, 2005 at 10:38:27PM +0000, Russell King wrote:
> ... causes the cpufreq driver init method to be called for each CPU.
> However, this causes something of a dilema on ARM/SMP - if the CPU
> is not online (because we failed to bring it up via __cpu_up which
> correctly returned an error), we can't read the current clock rate
> settings, so we can't initialise policy->{cur,min,max} fields.
Do I understand you correctly that this CPU will be brought up later?
> Returning an error from the cpufreq driver init method means that
> cpufreq completely forgets about this particular CPU, which also
> isn't desirable.
>
> Ideas?
Yes. I had tried to integrate cpufreq better with the CPU hotplug core a few
months ago, but got delayed because of other hotplug-related issues which
hopefully will be sorted out very soon. Stay tuned.
Dominik
PS: should we all use cpufreq@zenII.linux.org.uk or @lists.linux.org.uk?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] cpufreq on SMP with CPUs present but not online
2005-01-18 18:06 ` Dominik Brodowski
@ 2005-01-18 19:08 ` Russell King
0 siblings, 0 replies; 3+ messages in thread
From: Russell King @ 2005-01-18 19:08 UTC (permalink / raw)
To: Dominik Brodowski, Alan Cox; +Cc: cpufreq
On Tue, Jan 18, 2005 at 07:06:30PM +0100, Dominik Brodowski wrote:
> On Mon, Jan 17, 2005 at 10:38:27PM +0000, Russell King wrote:
> > ... causes the cpufreq driver init method to be called for each CPU.
> > However, this causes something of a dilema on ARM/SMP - if the CPU
> > is not online (because we failed to bring it up via __cpu_up which
> > correctly returned an error), we can't read the current clock rate
> > settings, so we can't initialise policy->{cur,min,max} fields.
>
> Do I understand you correctly that this CPU will be brought up later?
Possibly - though I'm wondering whether it's really correct to register
the struct cpu for not-currently-online but possible CPUs. I think this
may make sense, but I'd want to get it confirmed by some SMP folk first.
> > Returning an error from the cpufreq driver init method means that
> > cpufreq completely forgets about this particular CPU, which also
> > isn't desirable.
> >
> > Ideas?
>
> Yes. I had tried to integrate cpufreq better with the CPU hotplug core a few
> months ago, but got delayed because of other hotplug-related issues which
> hopefully will be sorted out very soon. Stay tuned.
>
> Dominik
>
> PS: should we all use cpufreq@zenII.linux.org.uk or @lists.linux.org.uk?
lists.linux.org.uk please. Unfortunately, when mailservers see the
CNAME for lists.linux.org.uk, they rewrite all addresses to the result
of the CNAME. Alan - can you change CNAME into:
lists IN A 195.92.249.252
IN AAAA 2002:c35c:f9fc::1
please? Thanks.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-18 19:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-17 22:38 [BUG] cpufreq on SMP with CPUs present but not online Russell King
2005-01-18 18:06 ` Dominik Brodowski
2005-01-18 19:08 ` Russell King
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.