From 8afe12b2123cca006df6d0eaa45eb89c36f63a98 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Tue, 21 Jan 2020 10:58:25 +0100 Subject: [PATCH] winsys/svga: Enable transhuge pages for buffer objects If the kernel supports it, enable transhuge pages for graphics buffer objects. Except for the syscall itself, this is never expected to cause any negative performance implications. Signed-off-by: Thomas Hellstrom Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/winsys/svga/drm/vmw_screen_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c index 4ce953f..6f987ba 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c +++ b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c @@ -694,6 +694,7 @@ vmw_ioctl_region_map(struct vmw_region *region) return NULL; } + (void) madvise(map, region->size, MADV_HUGEPAGE); region->data = map; } -- 2.7.4