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

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: use ttm_resource_manager_cleanup

Rather than open-coding it.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20251121101315.3585-3-pierre-eric.pelloux-prayer@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>

authored by

Pierre-Eric Pelloux-Prayer and committed by
Christian König
c884ee70 ddf055b8

+4 -2
+4 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
··· 2193 2193 } else { 2194 2194 drm_sched_entity_destroy(&adev->mman.high_pr); 2195 2195 drm_sched_entity_destroy(&adev->mman.low_pr); 2196 - dma_fence_put(man->move); 2197 - man->move = NULL; 2196 + /* Drop all the old fences since re-creating the scheduler entities 2197 + * will allocate new contexts. 2198 + */ 2199 + ttm_resource_manager_cleanup(man); 2198 2200 } 2199 2201 2200 2202 /* this just adjusts TTM size idea, which sets lpfn to the correct value */