diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 05991c5c8ddb..75c9fd2c6c2a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -545,10 +545,11 @@ static int amdgpu_bo_move(struct ttm_buffer_object *bo, bool evict,  			return r;  	} +	trace_amdgpu_bo_move(abo, new_mem->mem_type, old_mem->mem_type);  out:  	/* update statistics */  	atomic64_add(bo->base.size, &adev->num_bytes_moved); -	amdgpu_bo_move_notify(bo, evict, new_mem); +	amdgpu_bo_move_notify(bo, evict);  	return 0;  } @@ -959,10 +960,8 @@ int amdgpu_ttm_alloc_gart(struct ttm_buffer_object *bo)  		return 0;  	addr = amdgpu_gmc_agp_addr(bo); -	if (addr != AMDGPU_BO_INVALID_OFFSET) { -		bo->resource->start = addr >> PAGE_SHIFT; +	if (addr != AMDGPU_BO_INVALID_OFFSET)  		return 0; -	}  	/* allocate GART space */  	placement.num_placement = 1; @@ -1555,7 +1554,7 @@ static int amdgpu_ttm_access_memory(struct ttm_buffer_object *bo,  static void  amdgpu_bo_delete_mem_notify(struct ttm_buffer_object *bo)  { -	amdgpu_bo_move_notify(bo, false, NULL); +	amdgpu_bo_move_notify(bo, false);  }  static struct ttm_device_funcs amdgpu_bo_driver = { | 
