]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/ttm: allow mapping BOs while they are still on the swap list
authorChristian König <christian.koenig@amd.com>
Wed, 6 Sep 2017 14:55:55 +0000 (16:55 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:27:01 +0000 (14:27 -0400)
With shared reservation objects it is possible that we want to temporary
kmap an BO while it is still on the swap list.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo_util.c

index c934ad5b39036c6de16265e8c2e9cbf61873d6fe..78cb99be714626d742abf51158a63169d910e0ee 100644 (file)
@@ -587,7 +587,6 @@ int ttm_bo_kmap(struct ttm_buffer_object *bo,
        unsigned long offset, size;
        int ret;
 
-       BUG_ON(!list_empty(&bo->swap));
        map->virtual = NULL;
        map->bo = bo;
        if (num_pages > bo->num_pages)