@@ -769,18 +769,13 @@ void radeon_bo_memory_usage(struct radeon_bo *rbo,
radeon_update_memory_usage(rbo, new_mem_type, 1);
}
-void radeon_bo_move_notify(struct ttm_buffer_object *bo,
- bool evict,
- struct ttm_resource *new_mem)
+void radeon_bo_invalidate_notify(struct ttm_buffer_object *bo)
{
struct radeon_bo *rbo;
if (!radeon_ttm_bo_is_radeon_bo(bo))
return;
- /* the new_mem path is handled via the move callback now */
- if (new_mem)
- return;
rbo = container_of(bo, struct radeon_bo, tbo);
radeon_bo_invalidate(rbo);
}
@@ -164,9 +164,7 @@ void radeon_bo_memory_usage(struct radeon_bo *rbo,
uint32_t old_mem_type,
uint32_t new_mem_type);
void radeon_bo_invalidate(struct radeon_bo *rbo);
-extern void radeon_bo_move_notify(struct ttm_buffer_object *bo,
- bool evict,
- struct ttm_resource *new_mem);
+void radeon_bo_invalidate_notify(struct ttm_buffer_object *bo);
extern int radeon_bo_fault_reserve_notify(struct ttm_buffer_object *bo);
extern int radeon_bo_get_surface_reg(struct radeon_bo *bo);
extern void radeon_bo_fence(struct radeon_bo *bo, struct radeon_fence *fence,
@@ -839,7 +839,7 @@ static struct ttm_bo_driver radeon_bo_driver = {
.evict_flags = &radeon_evict_flags,
.move = &radeon_bo_move,
.verify_access = &radeon_verify_access,
- .move_notify = &radeon_bo_move_notify,
+ .invalidate_notify = &radeon_bo_invalidate_notify,
.fault_reserve_notify = &radeon_bo_fault_reserve_notify,
.io_mem_reserve = &radeon_ttm_io_mem_reserve,
};