diff options
author | Christian König <christian.koenig@amd.com> | 2016-01-11 09:35:21 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-01-13 12:22:17 -0500 |
commit | eceb8a1562db6fc3e1c21cd54a4be0189aa1d0e3 (patch) | |
tree | 0e0e73dfc9bf8c20c6c81d5b765d92d94e57c76b /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | ab74961810ba7935b5f9643da10daaa36690f48e (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 003959f99251..313b0cc8d676 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -987,6 +987,8 @@ void amdgpu_vm_get_pd_bo(struct amdgpu_vm *vm, | |||
987 | struct list_head *validated, | 987 | struct list_head *validated, |
988 | struct amdgpu_bo_list_entry *entry); | 988 | struct amdgpu_bo_list_entry *entry); |
989 | void amdgpu_vm_get_pt_bos(struct amdgpu_vm *vm, struct list_head *duplicates); | 989 | void amdgpu_vm_get_pt_bos(struct amdgpu_vm *vm, struct list_head *duplicates); |
990 | void amdgpu_vm_move_pt_bos_in_lru(struct amdgpu_device *adev, | ||
991 | struct amdgpu_vm *vm); | ||
990 | int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, | 992 | int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, |
991 | struct amdgpu_sync *sync); | 993 | struct amdgpu_sync *sync); |
992 | void amdgpu_vm_flush(struct amdgpu_ring *ring, | 994 | void amdgpu_vm_flush(struct amdgpu_ring *ring, |