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>
Fri, 16 Apr 2021 09:01:28 +0000 (11:01 +0200)
commitf7c475b8dfc23d461a47dfac5e498f8cc96faea5
treeda8d0575c0aacd39383bb6f84299c2ebbe16efd1
parentd434405aaab7d0ebc516b68a8fc4100922d7f5ef
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.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Signed-off-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