projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41acec6
)
arm64: mm: Permit transitioning from Global to Non-Global without BBM
author
Will Deacon
<will.deacon@arm.com>
Mon, 29 Jan 2018 11:59:54 +0000
(11:59 +0000)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Tue, 6 Feb 2018 22:53:16 +0000
(22:53 +0000)
Break-before-make is not needed when transitioning from Global to
Non-Global mappings, provided that the contiguous hint is not being used.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/mmu.c
b/arch/arm64/mm/mmu.c
index b44992ec9643e5435b69af72589503f67f2c5661..fc7902bda02bcea1a76496cdd615fb61974bb0b3 100644
(file)
--- a/
arch/arm64/mm/mmu.c
+++ b/
arch/arm64/mm/mmu.c
@@
-118,6
+118,10
@@
static bool pgattr_change_is_safe(u64 old, u64 new)
if ((old | new) & PTE_CONT)
return false;
+ /* Transitioning from Global to Non-Global is safe */
+ if (((old ^ new) == PTE_NG) && (new & PTE_NG))
+ return true;
+
return ((old ^ new) & ~mask) == 0;
}