Mesa (master): winsys/svga: Enable transhuge pages for buffer objects

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 29 11:18:23 UTC 2020


Module: Mesa
Branch: master
Commit: 8afe12b2123cca006df6d0eaa45eb89c36f63a98
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8afe12b2123cca006df6d0eaa45eb89c36f63a98

Author: Thomas Hellstrom <thellstrom at vmware.com>
Date:   Tue Jan 21 10:58:25 2020 +0100

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 <thellstrom at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3614>

---

 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 4ce953fee8d..6f987ba059d 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;
    }
 



More information about the mesa-commit mailing list