Skip to contentSkip to conversation

One quick question about SMP on ARM

DISCUSSION rocky 2 participants 2 messages Feb 28, 2011 – Mar 15, 2011

lore
Share & tools
lore

rocky

author
#0 lore raw

Hi, all

I am puzzled these day on three issues for SMP ARM in terms of hardware:
1: Is MMU global or per cpu ?
2: Is MicroTLB/MainTLB global or per cpu ?

I read the code, each cpu has to set its own pgd base addr into TBBR0,so I draw the conclusion MMU is per cpu;
ASID is shared between each cpu, while when ASID rollover from 0xff back to 0x0, each cpu has to call local_flush_tlb_all to invalidate I/D tlb; Does that mean MicroTLB/MainTLB is also per cpu; then why all cpu shared ASID from 0x0~0xff ?

I am really confused about this ? any tips
Thanks

rocky

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110228/1bab0b01/attachment-0001.html>

#1 lore raw

2011/2/28 rocky <[email protected]>:

Quoted 2 lines

I am puzzled these day on three issues for SMP ARM in terms of hardware:
1: Is MMU global or per cpu ?

Both (if you mean a set of page tables).

Quoted 1 line

2: Is MicroTLB/MainTLB global or per cpu ?

Per CPU.

Quoted 2 lines

I read the code, each cpu has to set its own pgd base addr into TBBR0,so I draw the conclusion MMU is per cpu;

Yes, but they could also point to the same TTB, for example when a multithreaded application has threads running on different CPUs.

Quoted 4 lines

ASID is shared between each cpu, while when ASID rollover from 0xff back to 0x0, each cpu has to call local_flush_tlb_all to invalidate I/D tlb; Does that mean MicroTLB/MainTLB is also per cpu; then why all cpu shared ASID from 0x0~0xff ?

Because of point 1 above.

Signature · 1 line
Catalin