From 87802b3402ec4a829c6507b4b78fcd03e30b6fe1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 23 Oct 2014 10:34:44 +0100 Subject: sna: Experimental support for write-combining mmaps If we have a linear buffer, we can request the kernel mmap it directly with write-combining without having to pin it into the GTT. This allows us to efficiently upload very large buffers, and can avoid the dreaded aperture thrashing. Signed-off-by: Chris Wilson --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8b34c773..75fd3b6f 100644 --- a/configure.ac +++ b/configure.ac @@ -760,6 +760,16 @@ if test "x$RENDERNODE" = "xyes"; then xp_msg="$xp_msg rendernode" fi +AC_ARG_ENABLE(wc-mmap, + AS_HELP_STRING([--enable-wc-map], + [Enable use of WriteCombining mmaps [default=no]]), + [WC_MMAP="$enableval"], + [WC_MMAP="no"]) +if test "x$WC_MMAP" = "xyes"; then + AC_DEFINE(USE_WC_MMAP,1,[Enable use of WriteCombining mmaps]) + xp_msg="$xp_msg mmap(wc)" +fi + AC_ARG_ENABLE(create2, AS_HELP_STRING([--enable-create2], [Enable use of create2 ioctl (experimental) [default=no]]), -- cgit v1.2.1