[PATCH 4/7] drm/amdgpu: trace setting VM page tables with the CPU as well

Felix Kuehling felix.kuehling at amd.com
Wed Jul 12 20:27:13 UTC 2017


Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>


On 17-07-12 04:31 AM, Christian König wrote:
> From: Christian König <christian.koenig at amd.com>
>
> Handy for debugging.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index db2dede..f52a358 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -981,6 +981,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) :



More information about the amd-gfx mailing list