diff options
author | Christian König <christian.koenig@amd.com> | 2016-07-08 04:48:24 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-14 16:46:08 -0400 |
commit | 0c0fdf143926d830e3cf1fc43c59f462a0cf725e (patch) | |
tree | 4ce7c11f6707a63f64c6632bcc5dd98767d564e6 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 2ef004d984226fb6845481bc928ae37fb1dacc5e (diff) |
drm/amdgpu: trace need_flush in grab_vm as well
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index a041168ad521..8e642fc48df4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -297,7 +297,7 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, | |||
297 | 297 | ||
298 | job->vm_id = id - adev->vm_manager.ids; | 298 | job->vm_id = id - adev->vm_manager.ids; |
299 | job->vm_needs_flush = false; | 299 | job->vm_needs_flush = false; |
300 | trace_amdgpu_vm_grab_id(vm, ring->idx, job->vm_id, job->vm_pd_addr); | 300 | trace_amdgpu_vm_grab_id(vm, ring->idx, job); |
301 | 301 | ||
302 | mutex_unlock(&adev->vm_manager.lock); | 302 | mutex_unlock(&adev->vm_manager.lock); |
303 | return 0; | 303 | return 0; |
@@ -328,7 +328,7 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring, | |||
328 | vm->ids[ring->idx] = id; | 328 | vm->ids[ring->idx] = id; |
329 | 329 | ||
330 | job->vm_id = id - adev->vm_manager.ids; | 330 | job->vm_id = id - adev->vm_manager.ids; |
331 | trace_amdgpu_vm_grab_id(vm, ring->idx, job->vm_id, job->vm_pd_addr); | 331 | trace_amdgpu_vm_grab_id(vm, ring->idx, job); |
332 | 332 | ||
333 | error: | 333 | error: |
334 | mutex_unlock(&adev->vm_manager.lock); | 334 | mutex_unlock(&adev->vm_manager.lock); |