projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fe8977
)
drm/ttm: allow mapping BOs while they are still on the swap list
author
Christian König
<christian.koenig@amd.com>
Wed, 6 Sep 2017 14:55:55 +0000
(16:55 +0200)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_bo_util.c
b/drivers/gpu/drm/ttm/ttm_bo_util.c
index c934ad5b39036c6de16265e8c2e9cbf61873d6fe..78cb99be714626d742abf51158a63169d910e0ee 100644
(file)
--- 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)