]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Use VM_PFNMAP instead of VM_MIXEDMAP when possible
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 4 Dec 2019 10:42:15 +0000 (11:42 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 15 Jan 2020 13:34:49 +0000 (14:34 +0100)
commit68a56437aa83bc93d1124acb0199d154cd3036c9
tree42b975e9f9915d39e34cb08fce39d998bd908ed0
parent6337f902541fb7a5b36a797a91ed027d2ff93707
drm/vmwgfx: Use VM_PFNMAP instead of VM_MIXEDMAP when possible

For shared, and read-only private mappings of graphics memory, use
VM_PFNMAP instead of VM_MIXEDMAP. This means less accounting overhead
when inserting and removing page-table entries. TTM doesn't do this
by default, since there was a performance problem with book-keeping of
write-combined mappings. Since vmwgfx solely uses cached mappings, that's
not a problem and now that the TTM vm has largely been turned into
helpers, we can use VM_PFNMAP on a per-driver basis

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c