* One quick question about SMP on ARM
@ 2011-02-28 13:20 rocky
2011-03-15 16:49 ` Catalin Marinas
0 siblings, 1 reply; 2+ messages in thread
From: rocky @ 2011-02-28 13:20 UTC (permalink / raw)
To: linux-arm-kernel
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
* One quick question about SMP on ARM
2011-02-28 13:20 One quick question about SMP on ARM rocky
@ 2011-03-15 16:49 ` Catalin Marinas
0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2011-03-15 16:49 UTC (permalink / raw)
To: linux-arm-kernel
2011/2/28 rocky <bill_carson@126.com>:
> 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).
> 2: Is MicroTLB/MainTLB global or per cpu ?
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;
Yes, but they could also point to the same TTB, for example when a
multithreaded application has threads running on different CPUs.
> 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.
--
Catalin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-15 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 13:20 One quick question about SMP on ARM rocky
2011-03-15 16:49 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox