From: Christian König Date: Wed, 6 Sep 2017 14:55:55 +0000 (+0200) Subject: drm/ttm: allow mapping BOs while they are still on the swap list X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f5683f8b3794f9496877fb9e20305433c6575b81;p=linux.git 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 Acked-by: Leo Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index c934ad5b39036..78cb99be71462 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/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; int ret; - BUG_ON(!list_empty(&bo->swap)); map->virtual = NULL; map->bo = bo; if (num_pages > bo->num_pages)