projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3cb5db
)
powerpc/mm: Fix verification of MMU_FTR_TYPE_44x
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Sat, 10 Oct 2020 17:30:59 +0000
(17:30 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:32 +0000
(
01:01
+1100)
MMU_FTR_TYPE_44x cannot be checked by cpu_has_feature()
Use mmu_has_feature() instead
Fixes:
23eb7f560a2a
("powerpc: Convert flush_icache_range & friends to C")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/ceede82fadf37f3b8275e61fcf8cf29a3e2ec7fe.1602351011.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/mem.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/mm/mem.c
b/arch/powerpc/mm/mem.c
index
8b946ec
..
49b668a
100644
(file)
--- a/
arch/powerpc/mm/mem.c
+++ b/
arch/powerpc/mm/mem.c
@@
-556,7
+556,7
@@
void __flush_dcache_icache(void *p)
* space occurs, before returning to user space.
*/
- if (
cp
u_has_feature(MMU_FTR_TYPE_44x))
+ if (
mm
u_has_feature(MMU_FTR_TYPE_44x))
return;
invalidate_icache_range(addr, addr + PAGE_SIZE);