Patch "drm/lima: fix sched context destroy" has been added to the 6.3-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

    drm/lima: fix sched context destroy

to the 6.3-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:
     drm-lima-fix-sched-context-destroy.patch
and it can be found in the queue-6.3 subdirectory.

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



commit 0f7a653d525e3aecb54a8c0a865fae0aef824292
Author: Erico Nunes <nunes.erico@xxxxxxxxx>
Date:   Tue Jun 6 16:32:47 2023 +0200

    drm/lima: fix sched context destroy
    
    [ Upstream commit 6eea63c7090b20ee41032d3e478e617b219d69aa ]
    
    The drm sched entity must be flushed before finishing, to account for
    jobs potentially still in flight at that time.
    Lima did not do this flush until now, so switch the destroy call to the
    drm_sched_entity_destroy() wrapper which will take care of that.
    
    This fixes a regression on lima which started since the rework in
    commit 2fdb8a8f07c2 ("drm/scheduler: rework entity flush, kill and fini")
    where some specific types of applications may hang indefinitely.
    
    Fixes: 2fdb8a8f07c2 ("drm/scheduler: rework entity flush, kill and fini")
    Reviewed-by: Vasily Khoruzhick <anarsoul@xxxxxxxxx>
    Signed-off-by: Erico Nunes <nunes.erico@xxxxxxxxx>
    Signed-off-by: Qiang Yu <yuq825@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230606143247.433018-1-nunes.erico@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/lima/lima_sched.c b/drivers/gpu/drm/lima/lima_sched.c
index ff003403fbbc7..ffd91a5ee2990 100644
--- a/drivers/gpu/drm/lima/lima_sched.c
+++ b/drivers/gpu/drm/lima/lima_sched.c
@@ -165,7 +165,7 @@ int lima_sched_context_init(struct lima_sched_pipe *pipe,
 void lima_sched_context_fini(struct lima_sched_pipe *pipe,
 			     struct lima_sched_context *context)
 {
-	drm_sched_entity_fini(&context->base);
+	drm_sched_entity_destroy(&context->base);
 }
 
 struct dma_fence *lima_sched_context_queue_task(struct lima_sched_task *task)



[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