]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: use DRM_SCHED_PRIORITY_KERNEL for all ttm entities
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 8 Apr 2026 08:42:27 +0000 (10:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:41:13 +0000 (15:41 -0400)
ttm jobs must have higher priority than any userspace jobs.

Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c

index 82d479621375f104f351d5a77c4b49fb8a879f9c..f1634072e335e7ae62a961e499d88fbf85f6ef37 100644 (file)
@@ -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);