Browse Source

drm/ttm: allow mapping BOs while they are still on the swap list

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>
Christian König 8 years ago
parent
commit
f5683f8b37
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/gpu/drm/ttm/ttm_bo_util.c

+ 0 - 1
drivers/gpu/drm/ttm/ttm_bo_util.c

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