]> 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)
commitaebd3a7c80ed7f394b272788b082c7c7fc869364
treeeafce52eebd87b450230d9d3ae83a3f49d0ca2c2
parentd264d4ff8171b5cd502f060dc1df36c6e3e97c0a
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