aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2018-09-24 11:35:08 +0000
committerAlex Deucher <[email protected]>2018-12-07 22:53:45 +0000
commit07daa8a0784e3085c4c8e282a83dd8c92bf59b53 (patch)
treedad4730134b55316d951aec74c199fa9d952e58d /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/amdgpu: always reserve two slots for the VM (diff)
downloadkernel-07daa8a0784e3085c4c8e282a83dd8c92bf59b53.tar.gz
kernel-07daa8a0784e3085c4c8e282a83dd8c92bf59b53.zip
drm/amdgpu: always reserve one more shared slot for pipelined BO moves
This allows us to drop the extra reserve in TTM. Signed-off-by: Christian König <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Junwei Zhang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index b303ac79c2f6..b095bbbbc302 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -617,8 +617,8 @@ void amdgpu_vm_get_pd_bo(struct amdgpu_vm *vm,
{
entry->priority = 0;
entry->tv.bo = &vm->root.base.bo->tbo;
- /* One for the VM updates and one for the CS job */
- entry->tv.num_shared = 2;
+ /* One for the VM updates, one for TTM and one for the CS job */
+ entry->tv.num_shared = 3;
entry->user_pages = NULL;
list_add(&entry->tv.head, validated);
}