aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-06-11 09:10:02 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-06-15 11:28:10 -0400
commitb1dc9d8755d9ee605990f32d82ca39b57c7cdcbb (patch)
tree0979121fd642c913f443139531e1840c51fdb3a4 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdaf0678c2036c918f01e4aa6035629d2debc2f30 (diff)
drm/amdgpu: allocate shared fence slot in VA IOCTL
Per VM BOs share the reservation object with the PD and so need to reserve a shared fence slot for the update. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index 5fb156a01774..7f27cdb7afe2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -612,7 +612,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
612 return -ENOENT; 612 return -ENOENT;
613 abo = gem_to_amdgpu_bo(gobj); 613 abo = gem_to_amdgpu_bo(gobj);
614 tv.bo = &abo->tbo; 614 tv.bo = &abo->tbo;
615 tv.shared = false; 615 tv.shared = !!(abo->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID);
616 list_add(&tv.head, &list); 616 list_add(&tv.head, &list);
617 } else { 617 } else {
618 gobj = NULL; 618 gobj = NULL;