mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-23 08:55:56 -04:00
drm/vmwgfx: stop using ttm_bo_create v2
Implement in the driver instead since it is the only user of that function. v2: fix usage of ttm_bo_init_reserved Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Link: https://patchwork.freedesktop.org/patch/391614/?series=81973&rev=1
This commit is contained in:
@@ -1245,9 +1245,9 @@ int vmw_cmdbuf_set_pool_size(struct vmw_cmdbuf_man *man,
|
||||
!dev_priv->has_mob)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = ttm_bo_create(&dev_priv->bdev, size, ttm_bo_type_device,
|
||||
&vmw_mob_ne_placement, 0, false,
|
||||
&man->cmd_space);
|
||||
ret = vmw_bo_create_kernel(dev_priv, size,
|
||||
&vmw_mob_placement,
|
||||
&man->cmd_space);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user