summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2020-03-25 11:44:54 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-17 10:48:47 +0200
commit67dea3c78e6eb05f27c606400349efbf829bc249 (patch)
treef8216a7581cba56349b2482312eb0158761062ec /include
parent76b48e986967d4c6536d09f99fb932829242e747 (diff)
MIPS/tlbex: Fix LDDIR usage in setup_pw() for Loongson-3
commit d191aaffe3687d1e73e644c185f5f0550ec242b5 upstream. LDDIR/LDPTE is Loongson-3's acceleration for Page Table Walking. If BD (Base Directory, the 4th page directory) is not enabled, then GDOffset is biased by BadVAddr[63:62]. So, if GDOffset (aka. BadVAddr[47:36] for Loongson-3) is big enough, "0b11(BadVAddr[63:62])|BadVAddr[47:36]|...." can far beyond pg_swapper_dir. This means the pg_swapper_dir may NOT be accessed by LDDIR correctly, so fix it by set PWDirExt in CP0_PWCtl. Cc: <stable@vger.kernel.org> Signed-off-by: Pei Huang <huangpei@loongson.cn> Signed-off-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions