Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1382274 > unrolled thread

[PATCH v3 13/13] MIPS: mm: Panic if an XPA kernel is run without RIXI

Started byPaul Burton <paul.burton@imgtec.com>
First post2016-04-19 10:30 +0200
Last post2016-04-19 10:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v3 13/13] MIPS: mm: Panic if an XPA kernel is run without RIXI Paul Burton <paul.burton@imgtec.com> - 2016-04-19 10:30 +0200

#1382274 — [PATCH v3 13/13] MIPS: mm: Panic if an XPA kernel is run without RIXI

FromPaul Burton <paul.burton@imgtec.com>
Date2016-04-19 10:30 +0200
Subject[PATCH v3 13/13] MIPS: mm: Panic if an XPA kernel is run without RIXI
Message-ID<rpzcL-3LU-15@gated-at.bofh.it>
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>

---

Changes in v3:
- Remove newline in panic() call.

Changes in v2:
- New patch, in response to clarification on patch 5.

 arch/mips/mm/tlbex.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 3f1a8a2..2afc710 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -2395,6 +2395,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();
 
-- 
2.8.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web