Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Paul Burton and committed by
Ralf Baechle
e56c7e18 4b6f99d3

+3
+3
arch/mips/mm/tlbex.c
··· 2508 2508 */ 2509 2509 static int run_once = 0; 2510 2510 2511 + if (config_enabled(CONFIG_XPA) && !cpu_has_rixi) 2512 + panic("Kernels supporting XPA currently require CPUs with RIXI"); 2513 + 2511 2514 output_pgtable_bits_defines(); 2512 2515 check_pabits(); 2513 2516