Re: [PATCH 07/14] [POWERPC] Populate cpu_enabled_map

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Benjamin Herrenschmidt <benh@...>
Cc: <linux-kernel@...>, <linux-arch@...>, <linux-acpi@...>, Paul Mackerras <paulus@...>
Date: Tuesday, July 15, 2008 - 9:04 pm

* Benjamin Herrenschmidt <benh@kernel.crashing.org>:

enabled_map is closer conceptually to present_map than
online_map.

present_map are CPUs that are actually plugged in

online_map are CPUs that have had cpu_up() called on them; ie.
schedulable

enabled_map is somewhere inbetween -- the CPUs are plugged in,
but we don't want to cpu_up() them. On hp ia64 systems, these
CPUs are disabled by system firmware.

Currently, a user can only configure/deconfigure the CPUs from
the system firmware interface. By providing a sysfs interface for
these CPUs, we can allow the user to configure/deconfigure them
from userspace. More realistically, higher level managability
software now has an OS-level interface to interact with these
CPUs.

Might this be useful for ppc and your hypervisor based
architecture? I could imagine your hypervisor telling the kernel
about all the physically present CPUs, but then you would be able
to have finer grained control using the enabled_map.

I haven't studied your code in depth, so maybe you can just do
everything with pure online/offline, but at least on my
platforms, there are use-cases where we might want something
in-between.

Thanks.

/ac

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/14] Introduce cpu_enabled_map and friends, Alex Chiang, (Mon Jul 14, 10:33 pm)
[PATCH 11/14] x86: Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:56 pm)
Re: [PATCH 11/14] x86: Populate cpu_enabled_map, H. Peter Anvin, (Fri Jul 18, 4:00 pm)
Re: [PATCH 11/14] x86: Populate cpu_enabled_map, Alex Chiang, (Fri Jul 18, 7:06 pm)
[PATCH 07/14] [POWERPC] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:34 pm)
Re: [PATCH 07/14] [POWERPC] Populate cpu_enabled_map, Benjamin Herrenschmidt, (Tue Jul 15, 1:51 am)
Re: [PATCH 07/14] [POWERPC] Populate cpu_enabled_map, Alex Chiang, (Tue Jul 15, 9:04 pm)
[PATCH 01/14] Introduce cpu_enabled_map and friends, Alex Chiang, (Mon Jul 14, 10:33 pm)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Matthew Wilcox, (Mon Jul 14, 11:15 pm)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Russell King, (Tue Jul 15, 6:21 am)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Matthew Wilcox, (Tue Jul 15, 2:16 pm)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Russell King, (Tue Jul 15, 2:48 pm)
Re: [PATCH 01/14] Introduce cpu_enabled_map and friends, Russell King, (Fri Jul 18, 5:44 pm)
[PATCH 12/14] [IA64] Populate and use cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:34 pm)
[PATCH 09/14] [SH] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:34 pm)
[PATCH 08/14] [S390] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:34 pm)
[PATCH 06/14] [PARISC] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:34 pm)
[PATCH 05/14] [MIPS] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:34 pm)
[PATCH 04/14] [ARM] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:34 pm)
[PATCH 03/14] [ALPHA] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:33 pm)
[PATCH 02/14] [M32R] Populate cpu_enabled_map, Alex Chiang, (Mon Jul 14, 10:33 pm)