Can cores have different CPU features in a SMP system?

Jun Sun jsun at junsun.net
Mon Aug 1 12:08:26 PDT 2016


I looked at the kernel source code again.  Kernel currently only
detects CPU features of CPU0 and use it for all other CPUs.   In other
words, it is assuming all cores must have the same CPU features, which
in a sense is a form of "enforcing".

As a result, it is definitely no-no to have cores with different CPU
features, which is what I suspected.  Case closed. :)

Jun

On Fri, Jul 29, 2016 at 2:30 PM, Jun Sun <jsun at junsun.net> wrote:
> One specific example is that if a phone has two clusters.  Cores in
> one cluster has v8 crypto extension and cores in the other don't.
> Will this work?
>
> My gut feeling is no, since many apps query cpu features at run-time.
> And process can migrate among cores.  If an app starts on a core with
> CE and migrates to another core without CE.  Illegal instruction fault
> will happen.
>
> Just wanna confirm if this is indeed the case.  Surprisingly google
> search did not yield any meaningful answers.
>
> Cheers.
>
> Jun



More information about the linux-arm-kernel mailing list