From: Andreas Schwab <hidden> Date: 2007-03-13 00:39:31
Giuliano Pochini [off-list ref] writes:
I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with
those parts of the kernel.
See arch/powerpc/kernel/sysfs.c:topology_init. I don't think there is
anything to do here. You probably don't have CONFIG_HOTPLUG_CPU enabled.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
On Tue, Mar 13, 2007 at 01:39:25AM +0100, Andreas Schwab wrote:
Giuliano Pochini [off-list ref] writes:
quoted
I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with
those parts of the kernel.
See arch/powerpc/kernel/sysfs.c:topology_init. I don't think there is
anything to do here. You probably don't have CONFIG_HOTPLUG_CPU enabled.
I was referring to arch/ppc not arch/powerpc. But it seems that arch/ppc
doesn't support cpu hotplug anyway. So I guess it's indeed just a missing
config option.
Grepping a bit further shows that arm suffered by the change that inverted
the logic if the 'online' attribute for cpus should appear. Since arm
supports cpu hotplug but the patch left arm out, it doesn't work there
anymore (cc'ing arm people: changeset 72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc
is most probably disabling cpu hotplug support on arm like it did on s390).
On Tue, Mar 13, 2007 at 10:03:50AM +0100, Heiko Carstens wrote:
On Tue, Mar 13, 2007 at 01:39:25AM +0100, Andreas Schwab wrote:
quoted
Giuliano Pochini [off-list ref] writes:
quoted
I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with
those parts of the kernel.
See arch/powerpc/kernel/sysfs.c:topology_init. I don't think there is
anything to do here. You probably don't have CONFIG_HOTPLUG_CPU enabled.
I was referring to arch/ppc not arch/powerpc. But it seems that arch/ppc
doesn't support cpu hotplug anyway. So I guess it's indeed just a missing
config option.
Grepping a bit further shows that arm suffered by the change that inverted
the logic if the 'online' attribute for cpus should appear. Since arm
supports cpu hotplug but the patch left arm out, it doesn't work there
anymore (cc'ing arm people: changeset 72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc
is most probably disabling cpu hotplug support on arm like it did on s390).
Should have cc'ed Suresh Siddha who caused the breakage ;)
From: Russell King <hidden> Date: 2007-03-13 09:40:56
On Tue, Mar 13, 2007 at 10:11:59AM +0100, Heiko Carstens wrote:
On Tue, Mar 13, 2007 at 10:03:50AM +0100, Heiko Carstens wrote:
quoted
On Tue, Mar 13, 2007 at 01:39:25AM +0100, Andreas Schwab wrote:
quoted
Giuliano Pochini [off-list ref] writes:
quoted
I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with
those parts of the kernel.
See arch/powerpc/kernel/sysfs.c:topology_init. I don't think there is
anything to do here. You probably don't have CONFIG_HOTPLUG_CPU enabled.
I was referring to arch/ppc not arch/powerpc. But it seems that arch/ppc
doesn't support cpu hotplug anyway. So I guess it's indeed just a missing
config option.
Grepping a bit further shows that arm suffered by the change that inverted
the logic if the 'online' attribute for cpus should appear. Since arm
supports cpu hotplug but the patch left arm out, it doesn't work there
anymore (cc'ing arm people: changeset 72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc
is most probably disabling cpu hotplug support on arm like it did on s390).
Should have cc'ed Suresh Siddha who caused the breakage ;)
Welcome to why cleanups are bad news. ;( Yes, ARM also needs to be fixed
and I'd ask that in future people doing cleanups in core code take a little
more time to review the code before submitting patches *AND* give heads-up
to *EVERYONE* who might be affected by the change.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
I had a look at arch/powerpc/kernel/smp.c but I'm not familiar at all with
those parts of the kernel.
See arch/powerpc/kernel/sysfs.c:topology_init. I don't think there is
anything to do here. You probably don't have CONFIG_HOTPLUG_CPU enabled.
I can't check it out right now, but I'm sure it is enabled as I wrote in
my first message. I said arch/powerpc/kernel/smp.c because the respective
file in arch/s390 was fixed recently for the same issue.
--
Giuliano.
From: Russell King <hidden> Date: 2007-03-13 09:57:38
On Tue, Mar 13, 2007 at 09:40:39AM +0000, Russell King wrote:
On Tue, Mar 13, 2007 at 10:11:59AM +0100, Heiko Carstens wrote:
quoted
On Tue, Mar 13, 2007 at 10:03:50AM +0100, Heiko Carstens wrote:
quoted
I was referring to arch/ppc not arch/powerpc. But it seems that arch/ppc
doesn't support cpu hotplug anyway. So I guess it's indeed just a missing
config option.
Grepping a bit further shows that arm suffered by the change that inverted
the logic if the 'online' attribute for cpus should appear. Since arm
supports cpu hotplug but the patch left arm out, it doesn't work there
anymore (cc'ing arm people: changeset 72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc
is most probably disabling cpu hotplug support on arm like it did on s390).
Should have cc'ed Suresh Siddha who caused the breakage ;)
Welcome to why cleanups are bad news. ;( Yes, ARM also needs to be fixed
and I'd ask that in future people doing cleanups in core code take a little
more time to review the code before submitting patches *AND* give heads-up
to *EVERYONE* who might be affected by the change.
Right, here's the ARM fix which is now in the ARM tree:
# Base git commit: 8b9909ded6922c33c221b105b26917780cfa497d
# (Merge branch 'merge' of master.kernel.org:/pub/scm/linux/kernel/git/paulus/powerpc)
#
# Author: Russell King (Tue Mar 13 09:54:21 GMT 2007)
# Committer: Russell King (Tue Mar 13 09:54:21 GMT 2007)
#
# [ARM] Fix breakage caused by 72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc
#
# 72486f1f8f0a2bc828b9d30cf4690cf2dd6807fc inverted the sense for
# enabling hotplug CPU controls without reference to any other
# architecture other than i386, ia64 and PowerPC. This left
# everyone else without hotplug CPU control.
#
# Fix ARM for this brain damage.
#
# Signed-off-by: Russell King
#
# arch/arm/kernel/setup.c | 7 +++++--
# 1 files changed, 5 insertions(+), 2 deletions(-)
#
On Tue, 13 Mar 2007 09:56:52 +0000
Russell King [off-list ref] wrote:
Right, here's the ARM fix which is now in the ARM tree:
[...]
The following patch seems to fix the issue (+ minor style fix). I'm not sure
it's ok due to my poor knowledge of this code.
Signed-off-by: Giuliano Pochini <redacted>