drm/amdgpu: move VM page tables to the LRU end on CS v2
authorChristian König <christian.koenig@amd.com>
Mon, 11 Jan 2016 14:35:21 +0000 (15:35 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jan 2016 17:22:17 +0000 (12:22 -0500)
commiteceb8a1562db6fc3e1c21cd54a4be0189aa1d0e3
tree0e0e73dfc9bf8c20c6c81d5b765d92d94e57c76b
parentab74961810ba7935b5f9643da10daaa36690f48e
drm/amdgpu: move VM page tables to the LRU end on CS v2

This makes it less likely to run into an ENOMEM because
VM page tables are evicted last.

v2: move the BOs in the LRU tail after validation

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