]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Fix A500 boot crash
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 27 Oct 2018 22:03:25 +0000 (18:03 -0400)
committerHelge Deller <deller@gmx.de>
Sun, 28 Oct 2018 09:51:07 +0000 (10:51 +0100)
commit9691edab4f700f4c56bce3524f29737c9d4bc350
treeeafce52eebd87b450230d9d3ae83a3f49d0ca2c2
parent121d5f874419d6b34ab6ceb871015f76e54f959c
parisc: Fix A500 boot crash

I believe the following change will fix the cache/TLB inconsistency
observed by Meelis.  After changing the page table entries, we need to
flush the cache and TLB to ensure that we don't have any stale PTE
values in the cache or TLB.

The alternative patching is done after all CPUs are running.  Thus, we
need to flush the whole cache and TLB.

I included the init section in the range modified by map_pages as
suggested by Helge.  Some routines in the init section may require
patching.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/mm/init.c