drm/ttm: Do not add non-system domain BO into swap list
authorxinhui pan <xinhui.pan@amd.com>
Wed, 24 Feb 2021 03:28:08 +0000 (11:28 +0800)
committerChristian König <christian.koenig@amd.com>
Thu, 25 Feb 2021 12:26:07 +0000 (13:26 +0100)
commitad2c28bd9a4083816fa45a7e90c2486cde8a9873
tree5af43bc87900198a499a67f0bf914e7d514e531f
parent3ade7a69e82c4405e2b1f4a87b32029532207ae2
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>
drivers/gpu/drm/ttm/ttm_bo.c