Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/ttm: remove dummy bo_move implementations

It's pointless to only call the default implementation.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Christian König and committed by
Alex Deucher
18885778 4279cb14

+4 -46
+1 -12
drivers/gpu/drm/ast/ast_ttm.c
··· 186 186 { 187 187 } 188 188 189 - static int ast_bo_move(struct ttm_buffer_object *bo, 190 - bool evict, bool interruptible, 191 - bool no_wait_gpu, 192 - struct ttm_mem_reg *new_mem) 193 - { 194 - int r; 195 - r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); 196 - return r; 197 - } 198 - 199 - 200 189 static void ast_ttm_backend_destroy(struct ttm_tt *tt) 201 190 { 202 191 ttm_tt_fini(tt); ··· 230 241 .ttm_tt_unpopulate = ast_ttm_tt_unpopulate, 231 242 .init_mem_type = ast_bo_init_mem_type, 232 243 .evict_flags = ast_bo_evict_flags, 233 - .move = ast_bo_move, 244 + .move = NULL, 234 245 .verify_access = ast_bo_verify_access, 235 246 .io_mem_reserve = &ast_ttm_io_mem_reserve, 236 247 .io_mem_free = &ast_ttm_io_mem_free,
+1 -10
drivers/gpu/drm/bochs/bochs_mm.c
··· 165 165 { 166 166 } 167 167 168 - static int bochs_bo_move(struct ttm_buffer_object *bo, 169 - bool evict, bool interruptible, 170 - bool no_wait_gpu, 171 - struct ttm_mem_reg *new_mem) 172 - { 173 - return ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); 174 - } 175 - 176 - 177 168 static void bochs_ttm_backend_destroy(struct ttm_tt *tt) 178 169 { 179 170 ttm_tt_fini(tt); ··· 199 208 .ttm_tt_unpopulate = ttm_pool_unpopulate, 200 209 .init_mem_type = bochs_bo_init_mem_type, 201 210 .evict_flags = bochs_bo_evict_flags, 202 - .move = bochs_bo_move, 211 + .move = NULL, 203 212 .verify_access = bochs_bo_verify_access, 204 213 .io_mem_reserve = &bochs_ttm_io_mem_reserve, 205 214 .io_mem_free = &bochs_ttm_io_mem_free,
+1 -12
drivers/gpu/drm/cirrus/cirrus_ttm.c
··· 186 186 { 187 187 } 188 188 189 - static int cirrus_bo_move(struct ttm_buffer_object *bo, 190 - bool evict, bool interruptible, 191 - bool no_wait_gpu, 192 - struct ttm_mem_reg *new_mem) 193 - { 194 - int r; 195 - r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); 196 - return r; 197 - } 198 - 199 - 200 189 static void cirrus_ttm_backend_destroy(struct ttm_tt *tt) 201 190 { 202 191 ttm_tt_fini(tt); ··· 230 241 .ttm_tt_unpopulate = cirrus_ttm_tt_unpopulate, 231 242 .init_mem_type = cirrus_bo_init_mem_type, 232 243 .evict_flags = cirrus_bo_evict_flags, 233 - .move = cirrus_bo_move, 244 + .move = NULL, 234 245 .verify_access = cirrus_bo_verify_access, 235 246 .io_mem_reserve = &cirrus_ttm_io_mem_reserve, 236 247 .io_mem_free = &cirrus_ttm_io_mem_free,
+1 -12
drivers/gpu/drm/mgag200/mgag200_ttm.c
··· 186 186 { 187 187 } 188 188 189 - static int mgag200_bo_move(struct ttm_buffer_object *bo, 190 - bool evict, bool interruptible, 191 - bool no_wait_gpu, 192 - struct ttm_mem_reg *new_mem) 193 - { 194 - int r; 195 - r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem); 196 - return r; 197 - } 198 - 199 - 200 189 static void mgag200_ttm_backend_destroy(struct ttm_tt *tt) 201 190 { 202 191 ttm_tt_fini(tt); ··· 230 241 .ttm_tt_unpopulate = mgag200_ttm_tt_unpopulate, 231 242 .init_mem_type = mgag200_bo_init_mem_type, 232 243 .evict_flags = mgag200_bo_evict_flags, 233 - .move = mgag200_bo_move, 244 + .move = NULL, 234 245 .verify_access = mgag200_bo_verify_access, 235 246 .io_mem_reserve = &mgag200_ttm_io_mem_reserve, 236 247 .io_mem_free = &mgag200_ttm_io_mem_free,