Thread (8 messages) 8 messages, 2 authors, 2016-08-04

Can cores have different CPU features in a SMP system?

From: Jun Sun <hidden>
Date: 2016-08-01 19:08:26

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 [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help