32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From e2ca4d092d9c6e6b07b465b4d81da207bbcc7437 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
Date: Mon, 11 Mar 2013 21:37:27 +0100
|
|
Subject: [PATCH 3/6] arm/highmem: flush tlb on unmap
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patches-3.10.4-rt1.tar.xz
|
|
|
|
The tlb should be flushed on unmap and thus make the mapping entry
|
|
invalid. This is only done in the non-debug case which does not look
|
|
right.
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
---
|
|
arch/arm/mm/highmem.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: linux-stable/arch/arm/mm/highmem.c
|
|
===================================================================
|
|
--- linux-stable.orig/arch/arm/mm/highmem.c
|
|
+++ linux-stable/arch/arm/mm/highmem.c
|
|
@@ -95,10 +95,10 @@ void __kunmap_atomic(void *kvaddr)
|
|
__cpuc_flush_dcache_area((void *)vaddr, PAGE_SIZE);
|
|
#ifdef CONFIG_DEBUG_HIGHMEM
|
|
BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx));
|
|
- set_top_pte(vaddr, __pte(0));
|
|
#else
|
|
(void) idx; /* to kill a warning */
|
|
#endif
|
|
+ set_top_pte(vaddr, __pte(0));
|
|
kmap_atomic_idx_pop();
|
|
} else if (vaddr >= PKMAP_ADDR(0) && vaddr < PKMAP_ADDR(LAST_PKMAP)) {
|
|
/* this address was obtained through kmap_high_get() */
|