From: Christian König Date: Mon, 11 Jun 2018 13:10:02 +0000 (+0200) Subject: drm/amdgpu: allocate shared fence slot in VA IOCTL X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b1dc9d8755d9ee605990f32d82ca39b57c7cdcbb;p=linux.git 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 Reviewed-by: Chunming Zhou Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 5fb156a01774e..7f27cdb7afe2e 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, return -ENOENT; abo = gem_to_amdgpu_bo(gobj); tv.bo = &abo->tbo; - tv.shared = false; + tv.shared = !!(abo->flags & AMDGPU_GEM_CREATE_VM_ALWAYS_VALID); list_add(&tv.head, &list); } else { gobj = NULL;