diff options
author | Christian König <christian.koenig@amd.com> | 2015-12-11 08:39:05 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-18 17:29:45 -0500 |
commit | 3c0eea6c35d932c4d25070868067dc9cd9ceab91 (patch) | |
tree | ab641062a62fe4177378b74a3e3fec4374fd73c6 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 5b0112356cf9a735632b26ff5f3450e1716c8598 (diff) |
drm/amdgpu: put VM page tables directly into duplicates list
They share the reservation object with the page directory anyway.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 1d44d508d4d4..9591c13781bd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -386,13 +386,13 @@ static int amdgpu_cs_parser_relocs(struct amdgpu_cs_parser *p) | |||
386 | amdgpu_cs_buckets_get_list(&buckets, &p->validated); | 386 | amdgpu_cs_buckets_get_list(&buckets, &p->validated); |
387 | } | 387 | } |
388 | 388 | ||
389 | INIT_LIST_HEAD(&duplicates); | ||
389 | p->vm_bos = amdgpu_vm_get_bos(p->adev, &fpriv->vm, | 390 | p->vm_bos = amdgpu_vm_get_bos(p->adev, &fpriv->vm, |
390 | &p->validated); | 391 | &p->validated, &duplicates); |
391 | 392 | ||
392 | if (need_mmap_lock) | 393 | if (need_mmap_lock) |
393 | down_read(¤t->mm->mmap_sem); | 394 | down_read(¤t->mm->mmap_sem); |
394 | 395 | ||
395 | INIT_LIST_HEAD(&duplicates); | ||
396 | r = ttm_eu_reserve_buffers(&p->ticket, &p->validated, true, &duplicates); | 396 | r = ttm_eu_reserve_buffers(&p->ticket, &p->validated, true, &duplicates); |
397 | if (unlikely(r != 0)) | 397 | if (unlikely(r != 0)) |
398 | goto error_reserve; | 398 | goto error_reserve; |