diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2011-02-28 15:01:53 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2011-03-01 16:20:29 -0500 |
commit | 401586e9164d225d24bb9d3ddfeb03ef2e931ee3 (patch) | |
tree | 803b962adb1688da4c6220fec2681e0b66ea1638 /arch/tile/mm | |
parent | 9ff27fdbd5d1ffbe2e0a277b4b7bfd0eb8a4bb1c (diff) |
arch/tile: avoid a simulator warning during bootup
As the added comment says, we can sometimes see a coherence warning
from our simulator if the "swapper_pgprot" variable on the boot cpu
has not been evicted from cache by the time the other cpus come up.
Force it to be evicted so we never see the warning.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/mm')
-rw-r--r-- | arch/tile/mm/init.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c index e34597e512df..9a62479aafb4 100644 --- a/arch/tile/mm/init.c +++ b/arch/tile/mm/init.c | |||
@@ -653,6 +653,17 @@ static void __init kernel_physical_mapping_init(pgd_t *pgd_base) | |||
653 | memcpy(pgd_base, pgtables, sizeof(pgtables)); | 653 | memcpy(pgd_base, pgtables, sizeof(pgtables)); |
654 | __install_page_table(pgd_base, __get_cpu_var(current_asid), | 654 | __install_page_table(pgd_base, __get_cpu_var(current_asid), |
655 | swapper_pgprot); | 655 | swapper_pgprot); |
656 | |||
657 | /* | ||
658 | * We just read swapper_pgprot and thus brought it into the cache, | ||
659 | * with its new home & caching mode. When we start the other CPUs, | ||
660 | * they're going to reference swapper_pgprot via their initial fake | ||
661 | * VA-is-PA mappings, which cache everything locally. At that | ||
662 | * time, if it's in our cache with a conflicting home, the | ||
663 | * simulator's coherence checker will complain. So, flush it out | ||
664 | * of our cache; we're not going to ever use it again anyway. | ||
665 | */ | ||
666 | __insn_finv(&swapper_pgprot); | ||
656 | } | 667 | } |
657 | 668 | ||
658 | /* | 669 | /* |