* [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
@ 2021-01-27 15:24 ` Iskren Chernev
0 siblings, 0 replies; 9+ messages in thread
From: Iskren Chernev @ 2021-01-27 15:24 UTC (permalink / raw)
To: Rob Clark
Cc: freedreno, Thomas Zimmermann, David Airlie, Lee Jones, dri-devel,
Brian Masney, Abhinav Kumar, linux-kernel, Iskren Chernev,
~postmarketos/upstreaming, linux-arm-msm, Christophe JAILLET,
Emil Velikov, Sean Paul, Maxime Ripard
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@gmail.com>
Suggested-by: Rob Clark <robdclark@gmail.com>
Fixes: 2d99ced787e3d ("drm/msm: async commit support")
---
drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
base-commit: 59fa6a163ffabc1bf25c5e0e33899e268a96d3cc
--
2.30.0
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
2021-01-27 15:24 ` Iskren Chernev
@ 2021-01-31 22:53 ` Brian Masney
-1 siblings, 0 replies; 9+ messages in thread
From: Brian Masney @ 2021-01-31 22:53 UTC (permalink / raw)
To: Iskren Chernev
Cc: Rob Clark, ~postmarketos/upstreaming, Sean Paul, David Airlie,
Daniel Vetter, Thomas Zimmermann, Maxime Ripard, Abhinav Kumar,
Emil Velikov, Christophe JAILLET, Lee Jones, linux-arm-msm,
dri-devel, freedreno, linux-kernel
On Wed, Jan 27, 2021 at 05:24:40PM +0200, Iskren Chernev wrote:
> 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@gmail.com>
> Suggested-by: Rob Clark <robdclark@gmail.com>
> Fixes: 2d99ced787e3d ("drm/msm: async commit support")
Nice job tracking down this fix!
Reviewed-by: Brian Masney <masneyb@onstation.org>
Tested-by: Brian Masney <masneyb@onstation.org>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
@ 2021-01-31 22:53 ` Brian Masney
0 siblings, 0 replies; 9+ messages in thread
From: Brian Masney @ 2021-01-31 22:53 UTC (permalink / raw)
To: Iskren Chernev
Cc: freedreno, David Airlie, Lee Jones, dri-devel, linux-kernel,
Abhinav Kumar, Christophe JAILLET, ~postmarketos/upstreaming,
Thomas Zimmermann, linux-arm-msm, Emil Velikov, Sean Paul,
Maxime Ripard
On Wed, Jan 27, 2021 at 05:24:40PM +0200, Iskren Chernev wrote:
> 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@gmail.com>
> Suggested-by: Rob Clark <robdclark@gmail.com>
> Fixes: 2d99ced787e3d ("drm/msm: async commit support")
Nice job tracking down this fix!
Reviewed-by: Brian Masney <masneyb@onstation.org>
Tested-by: Brian Masney <masneyb@onstation.org>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
2021-01-27 15:24 ` Iskren Chernev
@ 2021-01-31 23:06 ` Luca Weiss
-1 siblings, 0 replies; 9+ messages in thread
From: Luca Weiss @ 2021-01-31 23:06 UTC (permalink / raw)
To: Rob Clark, ~postmarketos/upstreaming
Cc: ~postmarketos/upstreaming, Iskren Chernev, Sean Paul,
David Airlie, Daniel Vetter, Thomas Zimmermann, Maxime Ripard,
Abhinav Kumar, Emil Velikov, Christophe JAILLET, Lee Jones,
Brian Masney, linux-arm-msm, dri-devel, freedreno, linux-kernel,
Iskren Chernev
Hi Iskren,
On Mittwoch, 27. Jänner 2021 16:24:40 CET Iskren Chernev wrote:
> 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@gmail.com>
> Suggested-by: Rob Clark <robdclark@gmail.com>
> Fixes: 2d99ced787e3d ("drm/msm: async commit support")
> ---
I've tested this now on fairphone-fp2 and lge-nexus5-hammerhead, works great!
Tested-by: Luca Weiss <luca@z3ntu.xyz>
Regards
Luca
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
@ 2021-01-31 23:06 ` Luca Weiss
0 siblings, 0 replies; 9+ messages in thread
From: Luca Weiss @ 2021-01-31 23:06 UTC (permalink / raw)
To: Rob Clark, ~postmarketos/upstreaming
Cc: freedreno, Thomas Zimmermann, David Airlie, Lee Jones, dri-devel,
Brian Masney, Abhinav Kumar, linux-kernel, Iskren Chernev,
~postmarketos/upstreaming, linux-arm-msm, Christophe JAILLET,
Emil Velikov, Sean Paul, Maxime Ripard
Hi Iskren,
On Mittwoch, 27. Jänner 2021 16:24:40 CET Iskren Chernev wrote:
> 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@gmail.com>
> Suggested-by: Rob Clark <robdclark@gmail.com>
> Fixes: 2d99ced787e3d ("drm/msm: async commit support")
> ---
I've tested this now on fairphone-fp2 and lge-nexus5-hammerhead, works great!
Tested-by: Luca Weiss <luca@z3ntu.xyz>
Regards
Luca
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
2021-01-27 15:24 ` Iskren Chernev
@ 2021-02-01 5:57 ` Alexey Minnekhanov
-1 siblings, 0 replies; 9+ messages in thread
From: Alexey Minnekhanov @ 2021-02-01 5:57 UTC (permalink / raw)
To: Iskren Chernev, Rob Clark
Cc: ~postmarketos/upstreaming, David Airlie, Daniel Vetter,
Abhinav Kumar, Lee Jones, Brian Masney, linux-arm-msm, dri-devel,
freedreno
On 1/27/21 6:24 PM, Iskren Chernev wrote:
> 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@gmail.com>
> Suggested-by: Rob Clark <robdclark@gmail.com>
> Fixes: 2d99ced787e3d ("drm/msm: async commit support")
>
Tested on msm8974pro samsung-klte, finally got 60 fps instead of 13
in kmscube.
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
@ 2021-02-01 5:57 ` Alexey Minnekhanov
0 siblings, 0 replies; 9+ messages in thread
From: Alexey Minnekhanov @ 2021-02-01 5:57 UTC (permalink / raw)
To: Iskren Chernev, Rob Clark
Cc: freedreno, David Airlie, linux-arm-msm, dri-devel, Abhinav Kumar,
~postmarketos/upstreaming, Lee Jones, Brian Masney
On 1/27/21 6:24 PM, Iskren Chernev wrote:
> 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@gmail.com>
> Suggested-by: Rob Clark <robdclark@gmail.com>
> Fixes: 2d99ced787e3d ("drm/msm: async commit support")
>
Tested on msm8974pro samsung-klte, finally got 60 fps instead of 13
in kmscube.
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels
2021-01-27 15:24 ` Iskren Chernev
` (3 preceding siblings ...)
(?)
@ 2021-03-01 19:59 ` patchwork-bot+linux-arm-msm
-1 siblings, 0 replies; 9+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2021-03-01 19:59 UTC (permalink / raw)
To: Iskren Chernev; +Cc: linux-arm-msm
Hello:
This patch was applied to qcom/linux.git (refs/heads/for-next):
On Wed, 27 Jan 2021 17:24:40 +0200 you wrote:
> 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.
>
> [...]
Here is the summary with links:
- drm/msm/mdp5: Fix wait-for-commit for cmd panels
https://git.kernel.org/qcom/c/68e4f01fddb4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 9+ messages in thread