summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
authorPaul Burton2016-04-19 10:25:11 +0200
committerRalf Baechle2016-05-13 15:30:25 +0200
commite56c7e18818dd721179f9ca95c77dd941a360384 (patch)
treee1c41054ca9fe9a46872a6bd6c485ae6299ce176 /arch/mips/mm
parentMIPS: mm: Don't do MTHC0 if XPA not present (diff)
downloadkernel-qcow2-linux-e56c7e18818dd721179f9ca95c77dd941a360384.tar.gz
kernel-qcow2-linux-e56c7e18818dd721179f9ca95c77dd941a360384.tar.xz
kernel-qcow2-linux-e56c7e18818dd721179f9ca95c77dd941a360384.zip
MIPS: mm: Panic if an XPA kernel is run without RIXI
XPA kernels hardcode for the presence of RIXI - the PTE format & its handling presume RI & XI bits. Make this dependence explicit by panicing if we run on a system that violates it. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: James Hogan <james.hogan@imgtec.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/13125/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/tlbex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 0efa6211cc40..274da90adf0d 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -2508,6 +2508,9 @@ void build_tlb_refill_handler(void)
*/
static int run_once = 0;
+ if (config_enabled(CONFIG_XPA) && !cpu_has_rixi)
+ panic("Kernels supporting XPA currently require CPUs with RIXI");
+
output_pgtable_bits_defines();
check_pabits();