diff options
author | Zack Rusin <zackr@vmware.com> | 2021-11-05 22:38:46 +0300 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2021-12-01 19:58:36 +0300 |
commit | a85b1cb23091d3112492f30fd92308cf4dcc4fc6 (patch) | |
tree | 64712ef636b93541600f49fd8cebed9d58b71258 | |
parent | f6be23264bbac88d1e2bb39658e1b8a397e3f46d (diff) | |
download | linux-a85b1cb23091d3112492f30fd92308cf4dcc4fc6.tar.xz |
drm/vmwgfx: Switch the internal BO's to ttm_bo_type_kernel
There's never a need to access our internal kernel bo's from
user-space. Those objects are used exclusively for internal
support to guest backed surfaces (in otable setup and mob
page tables) and there's no need to have them be of device
type, i.e. mmappable from user-space.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211105193845.258816-6-zackr@vmware.com
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c index fd007f1c1776..c97a3d5e90ce 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c @@ -494,7 +494,7 @@ int vmw_bo_create_kernel(struct vmw_private *dev_priv, unsigned long size, drm_vma_node_reset(&bo->base.vma_node); ret = ttm_bo_init_reserved(&dev_priv->bdev, bo, size, - ttm_bo_type_device, placement, 0, + ttm_bo_type_kernel, placement, 0, &ctx, NULL, NULL, NULL); if (unlikely(ret)) goto error_account; |