drm/amdgpu: trace setting VM page tables with the CPU as well
authorChristian König <christian.koenig@amd.com>
Tue, 11 Jul 2017 15:15:37 +0000 (17:15 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:44 +0000 (11:06 -0400)
Handy for debugging.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c

index 74cbe10a01158a9c65cd0476486b683c894ae228..5638c16887d87c8ec632fd7faf2836436d804b55 100644 (file)
@@ -982,6 +982,8 @@ static void amdgpu_vm_cpu_set_ptes(struct amdgpu_pte_update_params *params,
        unsigned int i;
        uint64_t value;
 
+       trace_amdgpu_vm_set_ptes(pe, addr, count, incr, flags);
+
        for (i = 0; i < count; i++) {
                value = params->pages_addr ?
                        amdgpu_vm_map_gart(params->pages_addr, addr) :