Skip to content

Commit

Permalink
ARM: imx: do not bring up unavailable cores
Browse files Browse the repository at this point in the history
The i.MX6 Quad can be fused as i.MX6 Dual chip, and similarly i.MX6
DualLite can be fused as i.MX6 Solo.  The actual number of available
cores can be found out from SCU.

Since we do not reflect the fusing thing in device tree, the function
arm_dt_init_cpu_maps() will always call set_cpu_possible(true) for 4
cores on i.MX6 Quad/Dual and 2 cores for i.MX6 DualLite/Solo.  This
causes failures when kernel tries to bring those unavailable cores
online.  For example, the following failure message will be seen when
booting an i.MX6 Solo chip.

  CPU1: failed to come online

Though kernel will still boot fine, the message is somehow annoying.
Let's get rid of it by calling set_cpu_possible(false) on those
unavailable cores.

While at it, the set_cpu_possible(true) for available cores is removed,
since it's already been done in arm_dt_init_cpu_maps().

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
  • Loading branch information
Shawn Guo committed Apr 12, 2013
1 parent 3c03a2f commit dc13ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mach-imx/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ static void __init imx_smp_init_cpus(void)

ncores = scu_get_core_count(scu_base);

for (i = 0; i < ncores; i++)
set_cpu_possible(i, true);
for (i = ncores; i < NR_CPUS; i++)
set_cpu_possible(i, false);
}

void imx_smp_prepare(void)
Expand Down

0 comments on commit dc13ba2

Please sign in to comment.