aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2016-01-07 17:15:22 +0000
committerAlex Deucher <[email protected]>2016-02-10 19:16:56 +0000
commit165e4e07c2cb91658c444ac4dab49473bfb3847b (patch)
tree5cfffcbbdd9efcc2724429651eeab24e04fcade1 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/amdgpu: drop hard_reset module parameter (diff)
downloadkernel-165e4e07c2cb91658c444ac4dab49473bfb3847b.tar.gz
kernel-165e4e07c2cb91658c444ac4dab49473bfb3847b.zip
drm/amdgpu: add VM pointer to id trace
Because of the scheduler all traces come from the same thread now and can't be distincted otherwise. Signed-off-by: Christian König <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index cc28bdc02078..edbb3ff4e731 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -174,7 +174,7 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
owner = atomic_long_read(&adev->vm_manager.ids[id].owner);
if (owner == (long)vm) {
- trace_amdgpu_vm_grab_id(vm_id->id, ring->idx);
+ trace_amdgpu_vm_grab_id(vm, vm_id->id, ring->idx);
return 0;
}
}
@@ -190,7 +190,7 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
if (fence == NULL) {
/* found a free one */
vm_id->id = i;
- trace_amdgpu_vm_grab_id(i, ring->idx);
+ trace_amdgpu_vm_grab_id(vm, i, ring->idx);
return 0;
}
@@ -209,7 +209,7 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
fence = adev->vm_manager.ids[choices[i]].active;
vm_id->id = choices[i];
- trace_amdgpu_vm_grab_id(choices[i], ring->idx);
+ trace_amdgpu_vm_grab_id(vm, choices[i], ring->idx);
return amdgpu_sync_fence(ring->adev, sync, fence);
}
}