diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2014-12-12 06:37:40 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-12-18 03:59:21 -0500 |
commit | d70a54e2d08510a99b1f10eceeae6f2f7086e226 (patch) | |
tree | 2609a216f280aecc8684a9dac4555830d1f794df /arch | |
parent | 505e428374bc17a2c0bd388c2e8d892e9cd8eef2 (diff) |
powerpc/powernv: Ignore smt-enabled on Power8 and later
Starting with POWER8, the subcore logic relies on all threads of a core
being booted so that they can participate in split mode switches. So on
those machines we ignore the smt_enabled_at_boot setting (smt-enabled on
the kernel command line).
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
[mpe: Update comment and change log to be more precise]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/powernv/smp.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/smp.c b/arch/powerpc/platforms/powernv/smp.c index 6c551a28e899..fc34025ef822 100644 --- a/arch/powerpc/platforms/powernv/smp.c +++ b/arch/powerpc/platforms/powernv/smp.c | |||
@@ -209,13 +209,27 @@ static void pnv_smp_cpu_kill_self(void) | |||
209 | 209 | ||
210 | #endif /* CONFIG_HOTPLUG_CPU */ | 210 | #endif /* CONFIG_HOTPLUG_CPU */ |
211 | 211 | ||
212 | static int pnv_cpu_bootable(unsigned int nr) | ||
213 | { | ||
214 | /* | ||
215 | * Starting with POWER8, the subcore logic relies on all threads of a | ||
216 | * core being booted so that they can participate in split mode | ||
217 | * switches. So on those machines we ignore the smt_enabled_at_boot | ||
218 | * setting (smt-enabled on the kernel command line). | ||
219 | */ | ||
220 | if (cpu_has_feature(CPU_FTR_ARCH_207S)) | ||
221 | return 1; | ||
222 | |||
223 | return smp_generic_cpu_bootable(nr); | ||
224 | } | ||
225 | |||
212 | static struct smp_ops_t pnv_smp_ops = { | 226 | static struct smp_ops_t pnv_smp_ops = { |
213 | .message_pass = smp_muxed_ipi_message_pass, | 227 | .message_pass = smp_muxed_ipi_message_pass, |
214 | .cause_ipi = NULL, /* Filled at runtime by xics_smp_probe() */ | 228 | .cause_ipi = NULL, /* Filled at runtime by xics_smp_probe() */ |
215 | .probe = xics_smp_probe, | 229 | .probe = xics_smp_probe, |
216 | .kick_cpu = pnv_smp_kick_cpu, | 230 | .kick_cpu = pnv_smp_kick_cpu, |
217 | .setup_cpu = pnv_smp_setup_cpu, | 231 | .setup_cpu = pnv_smp_setup_cpu, |
218 | .cpu_bootable = smp_generic_cpu_bootable, | 232 | .cpu_bootable = pnv_cpu_bootable, |
219 | #ifdef CONFIG_HOTPLUG_CPU | 233 | #ifdef CONFIG_HOTPLUG_CPU |
220 | .cpu_disable = pnv_smp_cpu_disable, | 234 | .cpu_disable = pnv_smp_cpu_disable, |
221 | .cpu_die = generic_cpu_die, | 235 | .cpu_die = generic_cpu_die, |