From owner-cvs-src-old@FreeBSD.ORG Mon Apr 18 21:25:09 2011 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 57A7A1065674 for ; Mon, 18 Apr 2011 21:25:09 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 437078FC1D for ; Mon, 18 Apr 2011 21:25:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p3ILP9Gb056166 for ; Mon, 18 Apr 2011 21:25:09 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p3ILP9W3056165 for cvs-src-old@freebsd.org; Mon, 18 Apr 2011 21:25:09 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201104182125.p3ILP9W3056165@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Mon, 18 Apr 2011 21:24:42 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h src/sys/i386/i386 pmap.c src/sys/i386/include pmap.h 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: Mon, 18 Apr 2011 21:25:09 -0000 kib 2011-04-18 21:24:42 UTC FreeBSD src repository Modified files: sys/amd64/amd64 pmap.c sys/amd64/include pmap.h sys/i386/i386 pmap.c sys/i386/include pmap.h Log: SVN rev 220803 on 2011-04-18 21:24:42Z by kib Make pmap_invalidate_cache_range() available for consumption on amd64. Add pmap_invalidate_cache_pages() method on x86. It flushes the CPU cache for the set of pages, which are not neccessary mapped. Since its supposed use is to prepare the move of the pages ownership to a device that does not snoop all CPU accesses to the main memory (read GPU in GMCH), do not rely on CPU self-snoop feature. amd64 implementation takes advantage of the direct map. On i386, extract the helper pmap_flush_page() from pmap_page_set_memattr(), and use it to make a temporary mapping of the flushed page. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 3 weeks Revision Changes Path 1.720 +32 -3 src/sys/amd64/amd64/pmap.c 1.159 +2 -0 src/sys/amd64/include/pmap.h 1.699 +42 -10 src/sys/i386/i386/pmap.c 1.153 +2 -1 src/sys/i386/include/pmap.h