mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/amdgpu: add VM CS mapping trace point
Output all VM mappings a command submission uses. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
b495bd3a54
commit
d6c10f6b81
@@ -852,6 +852,14 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev,
|
||||
return r;
|
||||
}
|
||||
|
||||
if (trace_amdgpu_vm_bo_mapping_enabled()) {
|
||||
list_for_each_entry(mapping, &bo_va->valids, list)
|
||||
trace_amdgpu_vm_bo_mapping(mapping);
|
||||
|
||||
list_for_each_entry(mapping, &bo_va->invalids, list)
|
||||
trace_amdgpu_vm_bo_mapping(mapping);
|
||||
}
|
||||
|
||||
spin_lock(&vm->status_lock);
|
||||
list_splice_init(&bo_va->invalids, &bo_va->valids);
|
||||
list_del_init(&bo_va->vm_status);
|
||||
|
||||
Reference in New Issue
Block a user