aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 7ecea83ce453..6f0873c75a25 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
@@ -589,6 +589,7 @@ void amdgpu_bo_move_notify(struct ttm_buffer_object *bo,
589 struct ttm_mem_reg *new_mem) 589 struct ttm_mem_reg *new_mem)
590{ 590{
591 struct amdgpu_bo *rbo; 591 struct amdgpu_bo *rbo;
592 struct ttm_mem_reg *old_mem = &bo->mem;
592 593
593 if (!amdgpu_ttm_bo_is_amdgpu_bo(bo)) 594 if (!amdgpu_ttm_bo_is_amdgpu_bo(bo))
594 return; 595 return;
@@ -602,6 +603,8 @@ void amdgpu_bo_move_notify(struct ttm_buffer_object *bo,
602 603
603 /* move_notify is called before move happens */ 604 /* move_notify is called before move happens */
604 amdgpu_update_memory_usage(rbo->adev, &bo->mem, new_mem); 605 amdgpu_update_memory_usage(rbo->adev, &bo->mem, new_mem);
606
607 trace_amdgpu_ttm_bo_move(rbo, new_mem->mem_type, old_mem->mem_type);
605} 608}
606 609
607int amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo) 610int amdgpu_bo_fault_reserve_notify(struct ttm_buffer_object *bo)