diff options
| author | Somalapuram Amaranath <[email protected]> | 2022-01-17 07:49:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-02-02 23:27:52 +0000 |
| commit | 4f860edecdafeb2e5fb29fecc6428090997936fe (patch) | |
| tree | cf2d31f33024c6fc53263dfb820227616e1f0dc3 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled (diff) | |
| download | kernel-4f860edecdafeb2e5fb29fecc6428090997936fe.tar.gz kernel-4f860edecdafeb2e5fb29fecc6428090997936fe.zip | |
drm/amdgpu: limit the number of dst address in trace
trace_amdgpu_vm_update_ptes trace unable to log when nptes too large
Signed-off-by: Somalapuram Amaranath <[email protected]>
Reviewed-by: Christian König <[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index b37fc7d7d2c7..4017bcf75e1f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1634,7 +1634,7 @@ static int amdgpu_vm_update_ptes(struct amdgpu_vm_update_params *params, nptes = max(nptes, 1u); trace_amdgpu_vm_update_ptes(params, frag_start, upd_end, - nptes, dst, incr, upd_flags, + min(nptes, 32u), dst, incr, upd_flags, vm->task_info.pid, vm->immediate.fence_context); amdgpu_vm_update_flags(params, to_amdgpu_bo_vm(pt), |
