diff options
author | Christian König <christian.koenig@amd.com> | 2015-09-28 06:01:20 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-10-14 16:16:38 -0400 |
commit | 39ff8449c5680466f568be57fbf79845ff5529ab (patch) | |
tree | 0eb45e6b4f8aefeb46963f7b08f30a92e97c2ad0 /drivers/gpu | |
parent | 3d2ce0d2394c82ac2ab7be8746eaa75042f2c997 (diff) |
drm/amdgpu: also trace already allocated VMIDs
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 1e14531353e0..2e15f2db06bf 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -147,8 +147,10 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, | |||
147 | 147 | ||
148 | /* check if the id is still valid */ | 148 | /* check if the id is still valid */ |
149 | if (vm_id->id && vm_id->last_id_use && | 149 | if (vm_id->id && vm_id->last_id_use && |
150 | vm_id->last_id_use == adev->vm_manager.active[vm_id->id]) | 150 | vm_id->last_id_use == adev->vm_manager.active[vm_id->id]) { |
151 | trace_amdgpu_vm_grab_id(vm_id->id, ring->idx); | ||
151 | return 0; | 152 | return 0; |
153 | } | ||
152 | 154 | ||
153 | /* we definately need to flush */ | 155 | /* we definately need to flush */ |
154 | vm_id->pd_gpu_addr = ~0ll; | 156 | vm_id->pd_gpu_addr = ~0ll; |