2020-04-21 20:13:52 +00:00
|
|
|
From e2e2e6bfc0c52d0b6f159920b94e93df8843807d Mon Sep 17 00:00:00 2001
|
2018-08-27 14:32:32 +00:00
|
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
Date: Mon, 11 Mar 2013 21:37:27 +0100
|
2020-04-21 20:13:52 +00:00
|
|
|
Subject: [PATCH 217/325] arm/highmem: Flush tlb on unmap
|
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.115-rt48.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
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>
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
arch/arm/mm/highmem.c | 2 +-
|
2018-08-27 14:32:32 +00:00
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
diff --git a/arch/arm/mm/highmem.c b/arch/arm/mm/highmem.c
|
|
|
|
index d02f8187b1cc..eb4b225d28c9 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/arch/arm/mm/highmem.c
|
|
|
|
+++ b/arch/arm/mm/highmem.c
|
|
|
|
@@ -112,10 +112,10 @@ void __kunmap_atomic(void *kvaddr)
|
|
|
|
__cpuc_flush_dcache_area((void *)vaddr, PAGE_SIZE);
|
|
|
|
#ifdef CONFIG_DEBUG_HIGHMEM
|
|
|
|
BUG_ON(vaddr != __fix_to_virt(idx));
|
|
|
|
- set_fixmap_pte(idx, __pte(0));
|
|
|
|
#else
|
|
|
|
(void) idx; /* to kill a warning */
|
|
|
|
#endif
|
|
|
|
+ set_fixmap_pte(idx, __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() */
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-04-09 19:44:24 +00:00
|
|
|
2.25.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|