All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: kernel@pengutronix.de, Russell King <linux@arm.linux.org.uk>,
	Dan MacDonald <allcoms@gmail.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 3/4] drm/imx: call drm_atomic_helper_commit_hw_done after drm_atomic_helper_wait_for_vblanks
Date: Mon, 27 Feb 2017 12:38:42 +0100	[thread overview]
Message-ID: <1488195522.2889.15.camel@pengutronix.de> (raw)
In-Reply-To: <20170227112824.24501-4-p.zabel@pengutronix.de>

Am Montag, den 27.02.2017, 12:28 +0100 schrieb Philipp Zabel:
> Disabling planes will consist of two steps as of the following patch.
> First, the DP is asked to stop at the next vblank, and then, after the
> vblank the associated IDMAC channel is idle and can be disabled.
> To avoid further commits being awoken out of their wait for dependencies
> too early, we should report commit_hw_done only after wait_for_vblanks.
> 
> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

Reviewed-by: Lucas Stach <l.stach@pengutronix.de>

> ---
>  drivers/gpu/drm/imx/imx-drm-core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
> index f562cb7964b08..1ed120c181724 100644
> --- a/drivers/gpu/drm/imx/imx-drm-core.c
> +++ b/drivers/gpu/drm/imx/imx-drm-core.c
> @@ -169,10 +169,10 @@ static void imx_drm_atomic_commit_tail(struct drm_atomic_state *state)
>  
>  	drm_atomic_helper_commit_modeset_enables(dev, state);
>  
> -	drm_atomic_helper_commit_hw_done(state);
> -
>  	drm_atomic_helper_wait_for_vblanks(dev, state);
>  
> +	drm_atomic_helper_commit_hw_done(state);
> +
>  	drm_atomic_helper_cleanup_planes(dev, state);
>  }
>  


_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2017-02-27 11:38 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-27 11:28 [PATCH 0/4] Fix DP busy wait and defer disabling overlay plane Philipp Zabel
2017-02-27 11:28 ` [PATCH 1/4] gpu: ipu-v3: remove IRQ dance on DC channel disable Philipp Zabel
2017-02-27 11:28 ` [PATCH 2/4] gpu: ipu-v3: add unsynchronised DP channel disabling Philipp Zabel
2017-02-27 11:33   ` Lucas Stach
2017-02-27 11:44     ` Philipp Zabel
2017-02-27 11:28 ` [PATCH 3/4] drm/imx: call drm_atomic_helper_commit_hw_done after drm_atomic_helper_wait_for_vblanks Philipp Zabel
2017-02-27 11:38   ` Lucas Stach [this message]
2017-02-27 11:28 ` [PATCH 4/4] drm/imx: add deferred plane disabling Philipp Zabel
2017-02-27 11:39   ` Lucas Stach
2017-02-27 11:40   ` Lucas Stach
2017-02-27 11:43 ` [PATCH 0/4] Fix DP busy wait and defer disabling overlay plane Dan MacDonald
2017-02-27 13:13   ` Philipp Zabel
2017-02-27 14:17     ` Dan MacDonald
2017-03-04 14:36     ` Dan MacDonald
2017-03-06  8:39       ` Philipp Zabel
2017-03-06  9:55         ` Dan MacDonald
2017-03-06 13:50           ` Philipp Zabel
2017-03-06 14:28             ` Dan MacDonald
2017-03-06 15:32               ` Philipp Zabel
2017-03-06 16:29             ` Russell King - ARM Linux
2017-03-09 10:00               ` Dan MacDonald
2017-03-10 11:11                 ` Dan MacDonald
2017-03-13 11:11                   ` Philipp Zabel
2017-03-22 22:28                     ` Dan MacDonald
2017-03-31 13:36                       ` Dan MacDonald
2017-03-31 14:15                         ` Russell King - ARM Linux
2017-04-01  0:26                           ` Dan MacDonald
2017-04-01 10:50                             ` Dan MacDonald
2017-04-03 11:46                               ` Philipp Zabel
2017-04-03 11:54                                 ` Dan MacDonald
2017-04-03 12:06                                   ` Philipp Zabel
2017-04-04 18:25                                     ` Dan MacDonald
2017-04-04 18:44                                       ` Dan MacDonald
2017-04-05 13:51                                       ` Philipp Zabel
2017-04-05 14:18                                         ` Dan MacDonald
2017-04-10 17:54                                           ` Dan MacDonald
2017-04-24  9:18                                             ` Dan MacDonald
2017-04-24  9:28                                               ` Dan MacDonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488195522.2889.15.camel@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=allcoms@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kernel@pengutronix.de \
    --cc=linux@arm.linux.org.uk \
    --cc=p.zabel@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.