drm/amdgpu: fix moved list handling in the VM
authorChristian König <christian.koenig@amd.com>
Fri, 1 Sep 2017 12:46:19 +0000 (14:46 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Sep 2017 16:50:35 +0000 (12:50 -0400)
commit481c2e94897eb74abcfb4a3cdb87f5f89499b93f
tree9e61f509f721c64d066d567803958d16a5461a42
parentf5830465967799de0334340d1888f7d2c0bc17f5
drm/amdgpu: fix moved list handling in the VM

Only move BOs to the moved/relocated list when they aren't already on a list.

This prevents accidential removal from the evicted list.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c