Date: Sat, 16 Jul 2011 20:34:02 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/ia64/ia64 pmap.c Message-ID: <201107162034.p6GKYEXq066087@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2011-07-16 20:34:02 UTC FreeBSD src repository Modified files: sys/ia64/ia64 pmap.c Log: SVN rev 224116 on 2011-07-16 20:34:02Z by marcel Don't assume pmap_mapdev() gets called only for memory mapped I/O addresses (i.e. uncacheable). ACPI in particular uses pmap_mapdev() rather excessively (number of calls) just to get a valid KVA. To that end, have pmap_mapdev(): 1. cache the last result so that we don't waste time for multiple consecutive invocations with the same PA/SZ. 2. find the memory descriptor that covers the PA and return NULL if none was found or when the PA is for a common DRAM address. 3. Use either a region 6 or region 7 KVA, in accordance with the memory attribute. Revision Changes Path 1.236 +29 -3 src/sys/ia64/ia64/pmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107162034.p6GKYEXq066087>