From owner-cvs-src-old@FreeBSD.ORG Wed Oct 21 18:39:12 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A6861065692 for ; Wed, 21 Oct 2009 18:39:12 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1F69B8FC19 for ; Wed, 21 Oct 2009 18:39:12 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9LIdCa1070061 for ; Wed, 21 Oct 2009 18:39:12 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9LIdBcl070060 for cvs-src-old@freebsd.org; Wed, 21 Oct 2009 18:39:11 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <200910211839.n9LIdBcl070060@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Wed, 21 Oct 2009 18:38:02 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/arm/arm pmap.c src/sys/arm/mv mv_machdep.c src/sys/i386/i386 pmap.c src/sys/i386/xen pmap.c src/sys/ia64/ia64 pmap.c src/sys/kern sys_process.c src/sys/mips/mips pmap.c src/sys/powerpc/aim ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2009 18:39:13 -0000 marcel 2009-10-21 18:38:02 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/arm/arm pmap.c sys/arm/mv mv_machdep.c sys/i386/i386 pmap.c sys/i386/xen pmap.c sys/ia64/ia64 pmap.c sys/kern sys_process.c sys/mips/mips pmap.c sys/powerpc/aim mmu_oea.c mmu_oea64.c sys/powerpc/booke pmap.c sys/powerpc/include pmap.h sys/powerpc/powerpc mmu_if.m pmap_dispatch.c uio_machdep.c sys/sparc64/sparc64 pmap.c sys/sun4v/sun4v pmap.c sys/vm pmap.h vm_extern.h vm_glue.c Log: SVN rev 198341 on 2009-10-21 18:38:02Z by marcel o Introduce vm_sync_icache() for making the I-cache coherent with the memory or D-cache, depending on the semantics of the platform. vm_sync_icache() is basically a wrapper around pmap_sync_icache(), that translates the vm_map_t argumument to pmap_t. o Introduce pmap_sync_icache() to all PMAP implementation. For powerpc it replaces the pmap_page_executable() function, added to solve the I-cache problem in uiomove_fromphys(). o In proc_rwmem() call vm_sync_icache() when writing to a page that has execute permissions. This assures that when breakpoints are written, the I-cache will be coherent and the process will actually hit the breakpoint. o This also fixes the Book-E PMAP implementation that was missing necessary locking while trying to deal with the I-cache coherency in pmap_enter() (read: mmu_booke_enter_locked). The key property of this change is that the I-cache is made coherent *after* writes have been done. Doing it in the PMAP layer when adding or changing a mapping means that the I-cache is made coherent *before* any writes happen. The difference is key when the I-cache prefetches. Revision Changes Path 1.675 +5 -0 src/sys/amd64/amd64/pmap.c 1.116 +8 -2 src/sys/arm/arm/pmap.c 1.8 +1 -1 src/sys/arm/mv/mv_machdep.c 1.653 +5 -0 src/sys/i386/i386/pmap.c 1.25 +5 -0 src/sys/i386/xen/pmap.c 1.207 +27 -0 src/sys/ia64/ia64/pmap.c 1.156 +4 -0 src/sys/kern/sys_process.c 1.22 +5 -0 src/sys/mips/mips/pmap.c 1.131 +26 -8 src/sys/powerpc/aim/mmu_oea.c 1.5 +34 -16 src/sys/powerpc/aim/mmu_oea64.c 1.21 +40 -32 src/sys/powerpc/booke/pmap.c 1.27 +0 -1 src/sys/powerpc/include/pmap.h 1.12 +13 -7 src/sys/powerpc/powerpc/mmu_if.m 1.20 +5 -5 src/sys/powerpc/powerpc/pmap_dispatch.c 1.10 +0 -3 src/sys/powerpc/powerpc/uio_machdep.c 1.183 +5 -0 src/sys/sparc64/sparc64/pmap.c 1.48 +5 -0 src/sys/sun4v/sun4v/pmap.c 1.87 +1 -0 src/sys/vm/pmap.h 1.90 +1 -0 src/sys/vm/vm_extern.h 1.239 +7 -0 src/sys/vm/vm_glue.c