diff options
author | Christian König <christian.koenig@amd.com> | 2017-03-30 08:53:05 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-04-04 23:33:57 -0400 |
commit | 6332ab906aa21ebeec710f3c14025b7af425d0f2 (patch) | |
tree | 20c10d93cedb27b174eeaf38d9d006d61e4bebea | |
parent | eb60ef2b4d77c591539f1cf4af2f0c2022d57689 (diff) |
drm/amdgpu: remove VMID first tracking
Not used any more.
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 8c7de55f5715..b465166ba38f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -514,9 +514,6 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, | |||
514 | if (r) | 514 | if (r) |
515 | goto error; | 515 | goto error; |
516 | 516 | ||
517 | dma_fence_put(id->first); | ||
518 | id->first = dma_fence_get(fence); | ||
519 | |||
520 | dma_fence_put(id->last_flush); | 517 | dma_fence_put(id->last_flush); |
521 | id->last_flush = NULL; | 518 | id->last_flush = NULL; |
522 | 519 | ||
@@ -2232,7 +2229,6 @@ void amdgpu_vm_manager_fini(struct amdgpu_device *adev) | |||
2232 | for (i = 0; i < AMDGPU_NUM_VM; ++i) { | 2229 | for (i = 0; i < AMDGPU_NUM_VM; ++i) { |
2233 | struct amdgpu_vm_id *id = &adev->vm_manager.ids[i]; | 2230 | struct amdgpu_vm_id *id = &adev->vm_manager.ids[i]; |
2234 | 2231 | ||
2235 | dma_fence_put(adev->vm_manager.ids[i].first); | ||
2236 | amdgpu_sync_free(&adev->vm_manager.ids[i].active); | 2232 | amdgpu_sync_free(&adev->vm_manager.ids[i].active); |
2237 | dma_fence_put(id->flushed_updates); | 2233 | dma_fence_put(id->flushed_updates); |
2238 | dma_fence_put(id->last_flush); | 2234 | dma_fence_put(id->last_flush); |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h index 2c2996c161f1..ed2467881b74 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |||
@@ -131,7 +131,6 @@ struct amdgpu_vm { | |||
131 | 131 | ||
132 | struct amdgpu_vm_id { | 132 | struct amdgpu_vm_id { |
133 | struct list_head list; | 133 | struct list_head list; |
134 | struct dma_fence *first; | ||
135 | struct amdgpu_sync active; | 134 | struct amdgpu_sync active; |
136 | struct dma_fence *last_flush; | 135 | struct dma_fence *last_flush; |
137 | atomic64_t owner; | 136 | atomic64_t owner; |