Skip to content

Commit d70a54e

Browse files
gkurzmpe
authored andcommitted
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>
1 parent 505e428 commit d70a54e

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

  • arch/powerpc/platforms/powernv

‎arch/powerpc/platforms/powernv/smp.c‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,27 @@ static void pnv_smp_cpu_kill_self(void)
209209

210210
#endif /* CONFIG_HOTPLUG_CPU */
211211

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+
212226
static struct smp_ops_t pnv_smp_ops = {
213227
.message_pass = smp_muxed_ipi_message_pass,
214228
.cause_ipi = NULL, /* Filled at runtime by xics_smp_probe() */
215229
.probe = xics_smp_probe,
216230
.kick_cpu = pnv_smp_kick_cpu,
217231
.setup_cpu = pnv_smp_setup_cpu,
218-
.cpu_bootable = smp_generic_cpu_bootable,
232+
.cpu_bootable = pnv_cpu_bootable,
219233
#ifdef CONFIG_HOTPLUG_CPU
220234
.cpu_disable = pnv_smp_cpu_disable,
221235
.cpu_die = generic_cpu_die,

0 commit comments

Comments
 (0)