]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/radeon: Use ttm_bo_move_null() in radeon_bo_move()
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 13 Nov 2024 12:51:58 +0000 (20:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 14:36:55 +0000 (09:36 -0500)
commit18ab7e88778fdbee3221d6ce8acefe55feaa09d1
treeb3cf41e3475ea65165c8837afff431026d2788b1
parent466a59abacc6590487faf21bd572d704f7283d47
drm/radeon: Use ttm_bo_move_null() in radeon_bo_move()

Since ttm_bo_move_null() is exactly the same as ttm_resource_free() +
ttm_bo_assign_mem(), we use ttm_bo_move_null() for the GTT --> SYSTEM
move case too. Then the code is more consistent as the SYSTEM --> GTT
move case.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ttm.c