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:
ab55d21
)
powerpc/pseries: Fix a typo in pSeries_lpar_hpte_insert()
author
Denis Kirjanov
<
[email protected]
>
Tue, 23 Jul 2013 11:28:03 +0000
(15:28 +0400)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Wed, 24 Jul 2013 04:42:18 +0000
(14:42 +1000)
Commit
801eb73f45371accc78ca9d6d22d647eeb722c11
introduced
a bug while checking PTE flags. We have to drop the _PAGE_COHERENT flag
when __PAGE_NO_CACHE is set and the cache update policy is not write-through
(i.e. _PAGE_WRITETHRU is not set)
Signed-off-by: Denis Kirjanov <
[email protected]
>
Reviewed-by: Aneesh Kumar K.V <
[email protected]
>
CC: Michael Ellerman <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
arch/powerpc/platforms/pseries/lpar.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/pseries/lpar.c
b/arch/powerpc/platforms/pseries/lpar.c
index 02d6e21619bb6c677771c0dc6ecaabb5e1d417d5..8bad880bd177a2efaf9887b0509593401112aee4 100644
(file)
--- a/
arch/powerpc/platforms/pseries/lpar.c
+++ b/
arch/powerpc/platforms/pseries/lpar.c
@@
-146,7
+146,7
@@
static long pSeries_lpar_hpte_insert(unsigned long hpte_group,
flags = 0;
/* Make pHyp happy */
- if ((rflags & _PAGE_NO_CACHE) & !(rflags & _PAGE_WRITETHRU))
+ if ((rflags & _PAGE_NO_CACHE) &
&
!(rflags & _PAGE_WRITETHRU))
hpte_r &= ~_PAGE_COHERENT;
if (firmware_has_feature(FW_FEATURE_XCMO) && !(hpte_r & HPTE_R_N))
flags |= H_COALESCE_CAND;