The patch titled
     rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix
has been added to the -mm tree.  Its filename is
     rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix
From: Benjamin Herrenschmidt <[EMAIL PROTECTED]>

Some changes done a while ago to avoid pounding on ptep_set_access_flags
and update_mmu_cache in some race situations break sun4c which requires
update_mmu_cache() to always be called on minor faults.

This patch reworks ptep_set_access_flags() semantics, implementations
and callers so that it's now responsible for returning whether an update
is necessary or not (basically whether the PTE actually changed). This
allow fixing the sparc implementation to always return 1 on sun4c.

Hope I got ia64 right this time !

Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 include/asm-ia64/pgtable.h |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff -puN 
include/asm-ia64/pgtable.h~rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix
 include/asm-ia64/pgtable.h
--- 
a/include/asm-ia64/pgtable.h~rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix
+++ a/include/asm-ia64/pgtable.h
@@ -534,13 +534,13 @@ extern void lazy_mmu_prot_update (pte_t 
  */
 #ifdef CONFIG_SMP
 # define ptep_set_access_flags(__vma, __addr, __ptep, __entry, 
__safely_writable) \
-({                                                                             
\
-       int __changed = !pte_same(*(__ptep), __entry);                          
\
-       if (__changed && __safely_writable) {                                   
\
-               set_pte(__ptep, __entry);                                       
\
-               flush_tlb_page(__vma, __addr);                                  
\
-       }                                                                       
\
-       __changed;                                                              
\
+({                                                                     \
+       int __changed = !pte_same(*(__ptep), __entry);                  \
+       if (__changed && __safely_writable) {                           \
+               set_pte(__ptep, __entry);                               \
+               flush_tlb_page(__vma, __addr);                          \
+       }                                                               \
+       __changed;                                                      \
 })
 #else
 # define ptep_set_access_flags(__vma, __addr, __ptep, __entry, 
__safely_writable) \
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

origin.patch
do-not-select-macintosh-drivers-by-default.patch
8xx-mpc885ads-pcmcia-support.patch
dts-kill-hardcoded-phandles.patch
git-libata-all.patch
i386-flush_tlb_kernel_range-add-reference-to-the-arguments.patch
rework-ptep_set_access_flags-and-fix-sun4c.patch
rework-ptep_set_access_flags-and-fix-sun4c-fix.patch
rework-ptep_set_access_flags-and-fix-sun4c-fix-fix.patch
rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix.patch
unmap_vm_area-becomes-unmap_kernel_range-for-the-public.patch
8xx-fix-whitespace-and-indentation.patch
radeonfb-add-support-for-radeon-xpress-200m-rs485.patch
controlfb-the-pseudo_palette-is-only-16-elements-long.patch
fallocate-implementation-on-i86-x86_64-and-powerpc.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to