From: Pierre-Eric Pelloux-Prayer Date: Wed, 8 Apr 2026 08:42:27 +0000 (+0200) Subject: drm/amdgpu: use DRM_SCHED_PRIORITY_KERNEL for all ttm entities X-Git-Tag: v7.2-rc1~141^2~24^2~185 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d0b1a8ed90dce5359e636dffee12a2b7fb429c77;p=thirdparty%2Flinux.git drm/amdgpu: use DRM_SCHED_PRIORITY_KERNEL for all ttm entities ttm jobs must have higher priority than any userspace jobs. Signed-off-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 82d479621375f..f1634072e335e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c @@ -2327,7 +2327,7 @@ void amdgpu_ttm_enable_buffer_funcs(struct amdgpu_device *adev) r = amdgpu_ttm_buffer_entity_init( &adev->mman.gtt_mgr, &adev->mman.clear_entities[i], - DRM_SCHED_PRIORITY_NORMAL, + DRM_SCHED_PRIORITY_KERNEL, adev->mman.buffer_funcs_scheds, adev->mman.num_buffer_funcs_scheds, 1); @@ -2347,7 +2347,7 @@ void amdgpu_ttm_enable_buffer_funcs(struct amdgpu_device *adev) r = amdgpu_ttm_buffer_entity_init( &adev->mman.gtt_mgr, &adev->mman.move_entities[i], - DRM_SCHED_PRIORITY_NORMAL, + DRM_SCHED_PRIORITY_KERNEL, adev->mman.buffer_funcs_scheds, adev->mman.num_buffer_funcs_scheds, 2);