Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/ttm: Do not add non-system domain BO into swap list

BO would be added into swap list if it is validated into system domain.
If BO is validated again into non-system domain, say, VRAM domain. It
actually should not be in the swap list.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Acked-by: Guchun Chen <guchun.chen@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210224032808.150465-1-xinhui.pan@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>

authored by

xinhui pan and committed by
Christian König
ad2c28bd 3ade7a69

+2
+2
drivers/gpu/drm/ttm/ttm_bo.c
··· 111 111 112 112 swap = &ttm_glob.swap_lru[bo->priority]; 113 113 list_move_tail(&bo->swap, swap); 114 + } else { 115 + list_del_init(&bo->swap); 114 116 } 115 117 116 118 if (bdev->funcs->del_from_lru_notify)