diff options
| author | Christian König <[email protected]> | 2018-06-11 13:10:02 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-06-15 15:28:10 +0000 |
| commit | b1dc9d8755d9ee605990f32d82ca39b57c7cdcbb (patch) | |
| tree | 0979121fd642c913f443139531e1840c51fdb3a4 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Merge branch 'drm-next-4.18' of git://people.freedesktop.org/~agd5f/linux int... (diff) | |
| download | kernel-b1dc9d8755d9ee605990f32d82ca39b57c7cdcbb.tar.gz kernel-b1dc9d8755d9ee605990f32d82ca39b57c7cdcbb.zip | |
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 <[email protected]>
Reviewed-by: Chunming Zhou <[email protected]>
Reviewed-by: Junwei Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 |
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, 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; |
