* CPU hotplug /sys entries are missing on 2.6.28
@ 2009-02-18 21:18 Giuliano Pochini
2009-02-21 22:21 ` CPU hotplug /sys entries are missing on 2.6.28 [PATCH] Giuliano Pochini
2009-02-22 12:17 ` Giuliano Pochini
0 siblings, 2 replies; 3+ messages in thread
From: Giuliano Pochini @ 2009-02-18 21:18 UTC (permalink / raw)
To: LinuxPPC-dev
/sys/devices/system/cpu/cpu*/online don't exist anymore.
When the kernel is booted with maxcpus=1 /sys/devices/system/cpu/cpu1 is
also missing:
$ ls -la /sys/devices/system/cpu/
totale 0
drwxr-xr-x 3 root root 0 9 feb 23:15 .
drwxr-xr-x 7 root root 0 9 feb 23:15 ..
drwxr-xr-x 4 root root 0 9 feb 23:15 cpu0
-r--r--r-- 1 root root 4096 9 feb 23:15 online
-r--r--r-- 1 root root 4096 9 feb 23:15 possible
-r--r--r-- 1 root root 4096 9 feb 23:15 present
$ cat /sys/devices/system/cpu/online
0
$ cat /sys/devices/system/cpu/possible
0-1
$ cat /sys/devices/system/cpu/present
0-1
$ uname -a
Linux Jay 2.6.28 #1 SMP Sun Jan 11 22:42:31 CET 2009 ppc 7455, altivec supported PowerMac3,6 GNU/Linux
Looking at the 2.6.28 diff, i noticed there is a patch to
setup_32.c::ppc_init() that removes the following:
for_each_possible_cpu(cpu) {
struct cpu *c = &per_cpu(cpu_devices, cpu);
c->hotpluggable = 1;
register_cpu(c, cpu);
}
Reverting it makes the kernel hang at boot.
The only other place where ->hotpluggable is set is in
sysfs.c::topology_init(), but it only happens if ppc_md.cpu_die!=NULL and I
couldn't find where that pointer is set. Any clue ?
TIA,
--
Giuliano.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CPU hotplug /sys entries are missing on 2.6.28 [PATCH]
2009-02-18 21:18 CPU hotplug /sys entries are missing on 2.6.28 Giuliano Pochini
@ 2009-02-21 22:21 ` Giuliano Pochini
2009-02-22 12:17 ` Giuliano Pochini
1 sibling, 0 replies; 3+ messages in thread
From: Giuliano Pochini @ 2009-02-21 22:21 UTC (permalink / raw)
To: LinuxPPC-dev
On Wed, 18 Feb 2009 22:18:21 +0100
Giuliano Pochini <pochini@shiny.it> wrote:
> /sys/devices/system/cpu/cpu*/online don't exist anymore.
I think I found the bug. Is this patch ok ?
Signed-off-by: Giuliano Pochini <pochini@shiny.it>
--- linux-2.6.29-rc5/arch/powerpc/platforms/powermac/setup.c__orig 2009-02-14 00:31:30.000000000 +0100
+++ linux-2.6.29-rc5/arch/powerpc/platforms/powermac/setup.c 2009-02-21 22:44:14.000000000 +0100
@@ -746,4 +746,7 @@ define_machine(powermac) {
#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC64)
.cpu_die = pmac_cpu_die,
#endif
+#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32)
+ .cpu_die = generic_mach_cpu_die,
+#endif
};
--
Giuliano.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CPU hotplug /sys entries are missing on 2.6.28 [PATCH]
2009-02-18 21:18 CPU hotplug /sys entries are missing on 2.6.28 Giuliano Pochini
2009-02-21 22:21 ` CPU hotplug /sys entries are missing on 2.6.28 [PATCH] Giuliano Pochini
@ 2009-02-22 12:17 ` Giuliano Pochini
1 sibling, 0 replies; 3+ messages in thread
From: Giuliano Pochini @ 2009-02-22 12:17 UTC (permalink / raw)
To: LinuxPPC-dev
On Wed, 18 Feb 2009 22:18:21 +0100
Giuliano Pochini <pochini@shiny.it> wrote:
> /sys/devices/system/cpu/cpu*/online don't exist anymore.
I think I found the bug. Is this patch ok ?
Signed-off-by: Giuliano Pochini <pochini@shiny.it>
--- linux-2.6.29-rc5/arch/powerpc/platforms/powermac/setup.c__orig 2009-02-14 00:31:30.000000000 +0100
+++ linux-2.6.29-rc5/arch/powerpc/platforms/powermac/setup.c 2009-02-21 22:44:14.000000000 +0100
@@ -746,4 +746,7 @@ define_machine(powermac) {
#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC64)
.cpu_die = pmac_cpu_die,
#endif
+#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32)
+ .cpu_die = generic_mach_cpu_die,
+#endif
};
--
Giuliano.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-22 12:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-18 21:18 CPU hotplug /sys entries are missing on 2.6.28 Giuliano Pochini
2009-02-21 22:21 ` CPU hotplug /sys entries are missing on 2.6.28 [PATCH] Giuliano Pochini
2009-02-22 12:17 ` Giuliano Pochini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).