Skip to content

Commit 7641149

Browse files
en4bzgregkh
authored andcommitted
drm/vmwgfx: Fix Host-Backed userspace on Guest-Backed kernel
[ Upstream commit 7872997 ] Running 3D applications with SVGA_FORCE_HOST_BACKED=1 or using an ancient version of mesa was broken because the buffer was pinned in VMW_BO_DOMAIN_SYS and could not be moved to VMW_BO_DOMAIN_MOB during validation. The compat_shader buffer should not pinned. Fixes: 668b206 ("drm/vmwgfx: Stop using raw ttm_buffer_object's") Signed-off-by: Ian Forbes <[email protected]> Reviewed-by: Maaz Mombasawala <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sasha Levin <[email protected]>
1 parent 6c6c8a3 commit 7641149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_shader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ int vmw_compat_shader_add(struct vmw_private *dev_priv,
896896
.busy_domain = VMW_BO_DOMAIN_SYS,
897897
.bo_type = ttm_bo_type_device,
898898
.size = size,
899-
.pin = true,
899+
.pin = false,
900900
.keep_resv = true,
901901
};
902902

0 commit comments

Comments
 (0)