summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-05 17:38:01 +0100
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:20:18 -0500
commitb3cd285fa68d162a53c2eb4e23bc4fc1ab7d97f6 (patch)
treebe73fc7af2f87e9ebea9e74dd654d5e6295adb77 /drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
parentc633c00bf06779ec6d5e2c01748d4753ede98f8a (diff)
downloadop-kernel-dev-b3cd285fa68d162a53c2eb4e23bc4fc1ab7d97f6.zip
op-kernel-dev-b3cd285fa68d162a53c2eb4e23bc4fc1ab7d97f6.tar.gz
drm/amdgpu: update the PASID mapping only on demand
Updating the PASID is rather heavyweight and shouldn't be done all the time. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
index 563e747..a1c78f9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
@@ -607,6 +607,7 @@ void amdgpu_vmid_mgr_fini(struct amdgpu_device *adev)
amdgpu_sync_free(&id->active);
dma_fence_put(id->flushed_updates);
dma_fence_put(id->last_flush);
+ dma_fence_put(id->pasid_mapping);
}
}
}
OpenPOWER on IntegriCloud