]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/ttm: remove priority hard code when initializing ttm bo
authorJunwei Zhang <Jerry.Zhang@amd.com>
Fri, 11 May 2018 02:54:40 +0000 (10:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:23 +0000 (13:44 -0500)
Then priority could be set before initialization.
By default, it requires to kzalloc ttm bo. In fact, we always do so.

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: David Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c

index 98e06f8bf23bf20f7ffdb8ade4d09ee34652674f..cba50151de1839f1aef5927e680ca55626a93ee0 100644 (file)
@@ -1175,7 +1175,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
        reservation_object_init(&bo->ttm_resv);
        atomic_inc(&bo->bdev->glob->bo_count);
        drm_vma_node_reset(&bo->vma_node);
-       bo->priority = 0;
 
        /*
         * For ttm_bo_type_device buffers, allocate