Patch "gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     gpu-drm-eliminate-drm_sched_priority_unset.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d9bcf22d72c63cd767cd6013a55225b58f971546
Author: Luben Tuikov <luben.tuikov@xxxxxxx>
Date:   Mon Oct 16 22:48:56 2023 -0400

    gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET
    
    [ Upstream commit fa8391ad68c16716e2c06ada397e99ceed2fb647 ]
    
    Eliminate DRM_SCHED_PRIORITY_UNSET, value of -2, whose only user was
    amdgpu. Furthermore, eliminate an index bug, in that when amdgpu boots, it
    calls drm_sched_entity_init() with DRM_SCHED_PRIORITY_UNSET, which uses it to
    index sched->sched_rq[].
    
    Cc: Alex Deucher <Alexander.Deucher@xxxxxxx>
    Cc: Christian König <christian.koenig@xxxxxxx>
    Signed-off-by: Luben Tuikov <luben.tuikov@xxxxxxx>
    Acked-by: Alex Deucher <Alexander.Deucher@xxxxxxx>
    Link: https://lore.kernel.org/r/20231017035656.8211-2-luben.tuikov@xxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index 092962b93064f..aac52d9754e6d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@ -64,7 +64,8 @@ amdgpu_ctx_to_drm_sched_prio(int32_t ctx_prio)
 {
 	switch (ctx_prio) {
 	case AMDGPU_CTX_PRIORITY_UNSET:
-		return DRM_SCHED_PRIORITY_UNSET;
+		pr_warn_once("AMD-->DRM context priority value UNSET-->NORMAL");
+		return DRM_SCHED_PRIORITY_NORMAL;
 
 	case AMDGPU_CTX_PRIORITY_VERY_LOW:
 		return DRM_SCHED_PRIORITY_MIN;
diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h
index f9544d9b670d3..ac65f0626cfc9 100644
--- a/include/drm/gpu_scheduler.h
+++ b/include/drm/gpu_scheduler.h
@@ -68,8 +68,7 @@ enum drm_sched_priority {
 	DRM_SCHED_PRIORITY_HIGH,
 	DRM_SCHED_PRIORITY_KERNEL,
 
-	DRM_SCHED_PRIORITY_COUNT,
-	DRM_SCHED_PRIORITY_UNSET = -2
+	DRM_SCHED_PRIORITY_COUNT
 };
 
 /* Used to chose between FIFO and RR jobs scheduling */



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux