Patch "drm/msm/mdp5: Fix wait-for-commit for cmd panels" has been added to the 5.11-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/msm/mdp5: Fix wait-for-commit for cmd panels

to the 5.11-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-msm-mdp5-fix-wait-for-commit-for-cmd-panels.patch
and it can be found in the queue-5.11 subdirectory.

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



commit c42ec55d419c986d7e6a7daa7dacd34faa873db6
Author: Iskren Chernev <iskren.chernev@xxxxxxxxx>
Date:   Wed Jan 27 17:24:40 2021 +0200

    drm/msm/mdp5: Fix wait-for-commit for cmd panels
    
    [ Upstream commit 68e4f01fddb4ead80e8c7084db489307f22c9cbb ]
    
    Before the offending commit in msm_atomic_commit_tail wait_flush was
    called once per frame, after the commit was submitted. After it
    wait_flush is also called at the beginning to ensure previous
    potentially async commits are done.
    
    For cmd panels the source of wait_flush is a ping-pong irq notifying
    a completion. The completion needs to be notified with complete_all so
    multiple waiting parties (new async committers) can proceed.
    
    Signed-off-by: Iskren Chernev <iskren.chernev@xxxxxxxxx>
    Suggested-by: Rob Clark <robdclark@xxxxxxxxx>
    Fixes: 2d99ced787e3d ("drm/msm: async commit support")
    Signed-off-by: Rob Clark <robdclark@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
index 0c8f9f88301fa..f5d71b2740793 100644
--- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
+++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c
@@ -1180,7 +1180,7 @@ static void mdp5_crtc_pp_done_irq(struct mdp_irq *irq, uint32_t irqstatus)
 	struct mdp5_crtc *mdp5_crtc = container_of(irq, struct mdp5_crtc,
 								pp_done);
 
-	complete(&mdp5_crtc->pp_completion);
+	complete_all(&mdp5_crtc->pp_completion);
 }
 
 static void mdp5_crtc_wait_for_pp_done(struct drm_crtc *crtc)



[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