diff options
| author | Christian König <[email protected]> | 2016-02-22 14:40:59 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-03-08 16:01:45 +0000 |
| commit | 211dff5518d938d0c11205af3113d2c7a292dd98 (patch) | |
| tree | a91b56d59a40aa0eba333d45cb0ee35fa3ccd1eb /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amdgpu: sync to the active user on reusing a VMID (diff) | |
| download | kernel-211dff5518d938d0c11205af3113d2c7a292dd98.tar.gz kernel-211dff5518d938d0c11205af3113d2c7a292dd98.zip | |
drm/amdgpu: group userptr in the BO list v2
We need them together with the next patch.
v2: Don't take bo reference twice
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 52c3eb96b199..7833dfb1ff6e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -350,7 +350,8 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p, p->bo_list = amdgpu_bo_list_get(fpriv, cs->in.bo_list_handle); if (p->bo_list) { - need_mmap_lock = p->bo_list->has_userptr; + need_mmap_lock = p->bo_list->first_userptr != + p->bo_list->num_entries; amdgpu_bo_list_get_list(p->bo_list, &p->validated); } |
