aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChunming Zhou <david1.zhou@amd.com>2015-08-20 06:33:59 -0400
committerAlex Deucher <alexander.deucher@amd.com>2015-08-25 10:53:05 -0400
commit3c62338c26bf2677c8285b406cd769b92ee0dc10 (patch)
treeb0e1e6592c3298fd0fed935740c1827307bcf48e /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentf38fdfddfaab070e3ff2333a79e45169ee33dc28 (diff)
drm/amdgpu: fix last_vm_update fence is not effetive for sched fence
Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian K?nig <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 19a8cbead48b..c9160430b5ac 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -705,7 +705,7 @@ struct amdgpu_sync {
705 struct amdgpu_semaphore *semaphores[AMDGPU_NUM_SYNCS]; 705 struct amdgpu_semaphore *semaphores[AMDGPU_NUM_SYNCS];
706 struct amdgpu_fence *sync_to[AMDGPU_MAX_RINGS]; 706 struct amdgpu_fence *sync_to[AMDGPU_MAX_RINGS];
707 DECLARE_HASHTABLE(fences, 4); 707 DECLARE_HASHTABLE(fences, 4);
708 struct amdgpu_fence *last_vm_update; 708 struct fence *last_vm_update;
709}; 709};
710 710
711void amdgpu_sync_create(struct amdgpu_sync *sync); 711void amdgpu_sync_create(struct amdgpu_sync *sync);
@@ -963,7 +963,7 @@ struct amdgpu_vm_id {
963 unsigned id; 963 unsigned id;
964 uint64_t pd_gpu_addr; 964 uint64_t pd_gpu_addr;
965 /* last flushed PD/PT update */ 965 /* last flushed PD/PT update */
966 struct amdgpu_fence *flushed_updates; 966 struct fence *flushed_updates;
967 /* last use of vmid */ 967 /* last use of vmid */
968 struct amdgpu_fence *last_id_use; 968 struct amdgpu_fence *last_id_use;
969}; 969};
@@ -2349,7 +2349,7 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
2349 struct amdgpu_sync *sync); 2349 struct amdgpu_sync *sync);
2350void amdgpu_vm_flush(struct amdgpu_ring *ring, 2350void amdgpu_vm_flush(struct amdgpu_ring *ring,
2351 struct amdgpu_vm *vm, 2351 struct amdgpu_vm *vm,
2352 struct amdgpu_fence *updates); 2352 struct fence *updates);
2353void amdgpu_vm_fence(struct amdgpu_device *adev, 2353void amdgpu_vm_fence(struct amdgpu_device *adev,
2354 struct amdgpu_vm *vm, 2354 struct amdgpu_vm *vm,
2355 struct amdgpu_fence *fence); 2355 struct amdgpu_fence *fence);