From: Christian König Date: Tue, 11 Jul 2017 15:15:37 +0000 (+0200) Subject: drm/amdgpu: trace setting VM page tables with the CPU as well X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=03918b36f6602df298b5ce7925ef77f7ecf0756a;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu: trace setting VM page tables with the CPU as well Handy for debugging. Signed-off-by: Christian König Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 74cbe10a0115..5638c16887d8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -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) :