Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6332ab90 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: remove VMID first tracking

parent eb60ef2b
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -514,9 +514,6 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
	if (r)
	if (r)
		goto error;
		goto error;


	dma_fence_put(id->first);
	id->first = dma_fence_get(fence);

	dma_fence_put(id->last_flush);
	dma_fence_put(id->last_flush);
	id->last_flush = NULL;
	id->last_flush = NULL;


@@ -2232,7 +2229,6 @@ void amdgpu_vm_manager_fini(struct amdgpu_device *adev)
	for (i = 0; i < AMDGPU_NUM_VM; ++i) {
	for (i = 0; i < AMDGPU_NUM_VM; ++i) {
		struct amdgpu_vm_id *id = &adev->vm_manager.ids[i];
		struct amdgpu_vm_id *id = &adev->vm_manager.ids[i];


		dma_fence_put(adev->vm_manager.ids[i].first);
		amdgpu_sync_free(&adev->vm_manager.ids[i].active);
		amdgpu_sync_free(&adev->vm_manager.ids[i].active);
		dma_fence_put(id->flushed_updates);
		dma_fence_put(id->flushed_updates);
		dma_fence_put(id->last_flush);
		dma_fence_put(id->last_flush);
+0 −1
Original line number Original line Diff line number Diff line
@@ -131,7 +131,6 @@ struct amdgpu_vm {


struct amdgpu_vm_id {
struct amdgpu_vm_id {
	struct list_head	list;
	struct list_head	list;
	struct dma_fence		*first;
	struct amdgpu_sync	active;
	struct amdgpu_sync	active;
	struct dma_fence		*last_flush;
	struct dma_fence		*last_flush;
	atomic64_t		owner;
	atomic64_t		owner;