mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/ttm: move last binding into the drivers.
This moves the call to tt binding into the driver move, and drops the driver callback. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201020010319.1692445-8-airlied@gmail.com
This commit is contained in:
@@ -737,6 +737,12 @@ static int vmw_move(struct ttm_buffer_object *bo,
|
||||
struct ttm_resource_manager *new_man = ttm_manager_type(bo->bdev, new_mem->mem_type);
|
||||
int ret;
|
||||
|
||||
if (new_man->use_tt && new_mem->mem_type != TTM_PL_SYSTEM) {
|
||||
ret = vmw_ttm_bind(bo->bdev, bo->ttm, new_mem);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
vmw_move_notify(bo, evict, new_mem);
|
||||
|
||||
if (old_man->use_tt && new_man->use_tt) {
|
||||
@@ -769,7 +775,6 @@ struct ttm_bo_driver vmw_bo_driver = {
|
||||
.ttm_tt_create = &vmw_ttm_tt_create,
|
||||
.ttm_tt_populate = &vmw_ttm_populate,
|
||||
.ttm_tt_unpopulate = &vmw_ttm_unpopulate,
|
||||
.ttm_tt_bind = &vmw_ttm_bind,
|
||||
.ttm_tt_destroy = &vmw_ttm_destroy,
|
||||
.eviction_valuable = ttm_bo_eviction_valuable,
|
||||
.evict_flags = vmw_evict_flags,
|
||||
|
||||
Reference in New Issue
Block a user