From owner-cvs-all@FreeBSD.ORG Sat Aug 12 09:40:14 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4996116A4DF; Sat, 12 Aug 2006 09:40:14 +0000 (UTC) (envelope-from joel@FreeBSD.org) Received: from av7-1-sn3.vrr.skanova.net (av7-1-sn3.vrr.skanova.net [81.228.9.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A72143D45; Sat, 12 Aug 2006 09:40:13 +0000 (GMT) (envelope-from joel@FreeBSD.org) Received: by av7-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 82C6B37FE5; Sat, 12 Aug 2006 11:40:08 +0200 (CEST) Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av7-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 7390337F86; Sat, 12 Aug 2006 11:40:08 +0200 (CEST) Received: from dude.automatvapen.se (81-235-165-101-no21.tbcn.telia.com [81.235.165.101]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 0B0FA37E46; Sat, 12 Aug 2006 11:40:12 +0200 (CEST) From: Joel Dahl To: John Baldwin In-Reply-To: <200608111922.k7BJMvpS009010@repoman.freebsd.org> References: <200608111922.k7BJMvpS009010@repoman.freebsd.org> Content-Type: text/plain Date: Sat, 12 Aug 2006 11:40:11 +0200 Message-Id: <1155375611.667.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/amd64/acpica madt.c src/sys/amd64/amd64 pmap.c src/sys/amd64/include pmap.h src/sys/dev/acpica/Osd OsdMemory.c src/sys/i386/acpica acpi_machdep.c madt.c src/sys/i386/i386 pmap.c src/sys/i386/include pmap.h src/sys/ia64/include pmap.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Aug 2006 09:40:14 -0000 On Fri, 2006-08-11 at 19:22 +0000, John Baldwin wrote: > jhb 2006-08-11 19:22:57 UTC > > FreeBSD src repository > > Modified files: > sys/amd64/acpica madt.c > sys/amd64/amd64 pmap.c > sys/amd64/include pmap.h > sys/dev/acpica/Osd OsdMemory.c > sys/i386/acpica acpi_machdep.c madt.c > sys/i386/i386 pmap.c > sys/i386/include pmap.h > sys/ia64/include pmap.h > Log: > First pass at allowing memory to be mapped using cache modes other than > WB (write-back) on x86 via control bits in PTEs and PDEs (including making > use of the PAT MSR). Changes include: > - A new pmap_mapdev_attr() function for amd64 and i386 which takes an > additional parameter (relative to pmap_mapdev()) specifying the cache > mode for this mapping. Note that on amd64 only WB mappings are done with > the direct map, all other modes result in a private mapping. > - pmap_mapdev() on i386 and amd64 now defaults to using UC (uncached) > mappings rather than WB. Previously we relied on the BIOS setting up > MTRR's to enforce memio regions being treated as UC. This might make > hw.cbb_start_memory unnecessary in some cases now for example. > - A new pmap_mapbios()/pmap_unmapbios() API has been added to allow places > that used pmap_mapdev() to map non-device memory (such as ACPI tables) > to do so using WB as before. > - A new pmap_change_attr() function for amd64 and i386 that changes the > caching mode for a range of KVA. Nice! Thanks! -- Joel