]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Don't clear _PAGE_COHERENT when _PAGE_SAO is set
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>
Mon, 7 Jul 2008 14:28:55 +0000 (00:28 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 9 Jul 2008 06:30:46 +0000 (16:30 +1000)
commit1a4df3ef36b69446d2c8c001cf9261989a056d51
tree4bd392fcae5b158551afdebb57f9fc353bf890c4
parent8fadf223c99e799e89b2c8b25fde7174bb1e5648
powerpc/mm: Don't clear _PAGE_COHERENT when _PAGE_SAO is set

The current low level hash code on LPAR configurations clears
_PAGE_COHERENT (M) when either _PAGE_GUARDED (G) or _PAGE_NO_CACHE (I)
is set. This conflicts with _PAGE_SAO which has M, I and W bits sets at
once (normally invalid combo) to indicate the new SAO attribute.

This changes the code to allow that case.

Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/lpar.c