summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-01-31 16:03:19 +0100
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:19:18 -0500
commit3af81440a9b02e2c6e244539ee567063c3d62292 (patch)
tree869c184af030c2b386101e5f4b92200836ab74ca /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
parent58592a095c981a002137221205411f538b9f0fb9 (diff)
downloadtalos-op-linux-3af81440a9b02e2c6e244539ee567063c3d62292.tar.gz
talos-op-linux-3af81440a9b02e2c6e244539ee567063c3d62292.zip
drm/amdgpu: cache the fence to wait for a VMID
Beneficial when a lot of processes are waiting for VMIDs. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
index 867f53332305..075976855651 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
@@ -196,6 +196,7 @@ struct amdgpu_ring {
u64 cond_exe_gpu_addr;
volatile u32 *cond_exe_cpu_addr;
unsigned vm_inv_eng;
+ struct dma_fence *vmid_wait;
bool has_compute_vm_bug;
atomic_t num_jobs[DRM_SCHED_PRIORITY_MAX];
OpenPOWER on IntegriCloud