[PATCH] ppc64: Mark kernel hptes dirty

Anton Blanchard anton at samba.org
Tue Jun 21 07:00:05 EST 2005


Hi,

We dont use the hardware referenced and changed bits and setting them
early avoids a store to memory. We already do this for userspace hptes
but not kernel ones. Do it.

Signed-off-by: Anton Blanchard <anton at samba.org>

diff -puN arch/ppc64/mm/hash_utils.c~set_kernel_rcbits_1 arch/ppc64/mm/hash_utils.c
--- foobar2/arch/ppc64/mm/hash_utils.c~set_kernel_rcbits_1	2005-05-17 02:42:01.379761773 -0500
+++ foobar2-anton/arch/ppc64/mm/hash_utils.c	2005-05-17 02:42:01.389760188 -0500
@@ -195,7 +195,7 @@ void __init htab_initialize(void)
 		memset((void *)table, 0, htab_size_bytes);
 	}
 
-	mode_rw = _PAGE_ACCESSED | _PAGE_COHERENT | PP_RWXX;
+	mode_rw = _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_COHERENT | PP_RWXX;
 
 	/* On U3 based machines, we need to reserve the DART area and
 	 * _NOT_ map it to avoid cache paradoxes as it's remapped non
_



More information about the Linuxppc64-dev mailing list