OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33d48cf
)
drm/ttm: fix adding foreign BOs to the swap LRU
author
Christian König
<christian.koenig@amd.com>
Mon, 11 Jan 2016 14:35:19 +0000
(15:35 +0100)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 13 Jan 2016 17:19:52 +0000
(12:19 -0500)
It doesn't make any sense to try to swap out imported BOs.
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_bo.c
b/drivers/gpu/drm/ttm/ttm_bo.c
index
a98a5d5
..
3ea9a01
100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_bo.c
+++ b/
drivers/gpu/drm/ttm/ttm_bo.c
@@
-176,7
+176,7
@@
void ttm_bo_add_to_lru(struct ttm_buffer_object *bo)
list_add_tail(&bo->lru, &man->lru);
kref_get(&bo->list_kref);
- if (bo->ttm
!= NULL
) {
+ if (bo->ttm
&& !(bo->ttm->page_flags & TTM_PAGE_FLAG_SG)
) {
list_add_tail(&bo->swap, &bo->glob->swap_lru);
kref_get(&bo->list_kref);
}