All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
	Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 6/8] drm: vmwgfx: Replace CRTC .commit() helper operation with .enable()
Date: Wed, 28 Jun 2017 11:25:43 +0300	[thread overview]
Message-ID: <5679474.a34nFmHgeT@avalon> (raw)
In-Reply-To: <20170628073928.4vo33d3x6hrpiaf7@phenom.ffwll.local>

Hi Daniel,

On Wednesday 28 Jun 2017 09:39:28 Daniel Vetter wrote:
> On Tue, Jun 27, 2017 at 11:38:41PM +0300, Laurent Pinchart wrote:
> > The CRTC helper .commit() operation is legacy code, the atomic helpers
> > prefer the .enable() operation. Replace the .commit() helper operation
> > with .enable() in the driver.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> 
> I think it'd be great to outright nuke the nop functions, they're all
> optional, and with newly-merged drivers I ask for them to get removed. But
> that's an aside, feel free to ignore.

I agree with you, but then we need to first merge "[PATCH] drm: atomic-helper: 
make CRTC .atomic_enable() operation truly optional"  :-)

> -Daniel
> 
> > ---
> > 
> >  drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c  | 6 +++---
> >  drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 6 +++---
> >  drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 4 ++--
> >  3 files changed, 8 insertions(+), 8 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
> > b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c index 639e16703b80..f8acd3a15523
> > 100644
> > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
> > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
> > @@ -203,7 +203,7 @@ static void vmw_ldu_crtc_mode_set_nofb(struct drm_crtc
> > *crtc)
> >  }
> >  
> >  /**
> > - * vmw_ldu_crtc_helper_commit - Noop
> > + * vmw_ldu_crtc_helper_enable - Noop
> >   *
> >   * @crtc: CRTC associated with the new screen
> >   *
> > @@ -212,7 +212,7 @@ static void vmw_ldu_crtc_mode_set_nofb(struct drm_crtc
> > *crtc)> 
> >   * but since for LDU the display plane is closely tied to the
> >   * CRTC, it makes more sense to do those at plane update time.
> >   */
> > -static void vmw_ldu_crtc_helper_commit(struct drm_crtc *crtc)
> > +static void vmw_ldu_crtc_helper_enable(struct drm_crtc *crtc)
> >  {
> >  }
> > 
> > @@ -376,7 +376,7 @@ drm_plane_helper_funcs
> > vmw_ldu_primary_plane_helper_funcs = {
> >  };
> >  
> >  static const struct drm_crtc_helper_funcs vmw_ldu_crtc_helper_funcs = {
> > -	.commit = vmw_ldu_crtc_helper_commit,
> > +	.enable = vmw_ldu_crtc_helper_enable,
> >  	.disable = vmw_ldu_crtc_helper_disable,
> >  	.mode_set_nofb = vmw_ldu_crtc_mode_set_nofb,
> >  	.atomic_check = vmw_du_crtc_atomic_check,
> > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
> > b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c index 3b917c9b0c21..1cb826c503bf
> > 100644
> > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
> > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c
> > @@ -270,13 +270,13 @@ static void vmw_sou_crtc_helper_prepare(struct
> > drm_crtc *crtc)
> >  }
> >  
> >  /**
> > - * vmw_sou_crtc_helper_commit - Noop
> > + * vmw_sou_crtc_helper_enable - Noop
> >   *
> >   * @crtc: CRTC associated with the new screen
> >   *
> >   * This is called after a mode set has been completed.
> >   */
> > -static void vmw_sou_crtc_helper_commit(struct drm_crtc *crtc)
> > +static void vmw_sou_crtc_helper_enable(struct drm_crtc *crtc)
> >  {
> >  }
> > 
> > @@ -573,7 +573,7 @@ drm_plane_helper_funcs
> > vmw_sou_primary_plane_helper_funcs = {
> >  static const struct drm_crtc_helper_funcs vmw_sou_crtc_helper_funcs = {
> >  	.prepare = vmw_sou_crtc_helper_prepare,
> > -	.commit = vmw_sou_crtc_helper_commit,
> > +	.enable = vmw_sou_crtc_helper_enable,
> >  	.disable = vmw_sou_crtc_helper_disable,
> >  	.mode_set_nofb = vmw_sou_crtc_mode_set_nofb,
> >  	.atomic_check = vmw_du_crtc_atomic_check,
> > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
> > b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c index 6aecba6cd5e2..4eb93b47d6db
> > 100644
> > --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
> > +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
> > @@ -412,7 +412,7 @@ static void vmw_stdu_crtc_helper_prepare(struct
> > drm_crtc *crtc)
> >  }
> > 
> > -static void vmw_stdu_crtc_helper_commit(struct drm_crtc *crtc)
> > +static void vmw_stdu_crtc_helper_enable(struct drm_crtc *crtc)
> >  {
> >  	struct vmw_private *dev_priv;
> >  	struct vmw_screen_target_display_unit *stdu;
> > @@ -1415,7 +1415,7 @@ drm_plane_helper_funcs
> > vmw_stdu_primary_plane_helper_funcs = {> 
> >  static const struct drm_crtc_helper_funcs vmw_stdu_crtc_helper_funcs = {
> >  	.prepare = vmw_stdu_crtc_helper_prepare,
> > -	.commit = vmw_stdu_crtc_helper_commit,
> > +	.enable = vmw_stdu_crtc_helper_enable,
> >  	.disable = vmw_stdu_crtc_helper_disable,
> >  	.mode_set_nofb = vmw_stdu_crtc_mode_set_nofb,
> >  	.atomic_check = vmw_du_crtc_atomic_check,

-- 
Regards,

Laurent Pinchart

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

  reply	other threads:[~2017-06-28  8:25 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-27 20:38 [PATCH 0/8] Cleanup CRTC .enable()/.disable() cargo-cult Laurent Pinchart
2017-06-27 20:38 ` [PATCH 1/8] drm: arcpgu: Remove CRTC .commit() helper operation Laurent Pinchart
2017-06-27 20:38 ` [PATCH 2/8] drm: arcpgu: Remove CRTC .prepare() " Laurent Pinchart
2017-06-27 20:38 ` [PATCH 3/8] drm: qxl: Remove unused CRTC .dpms() " Laurent Pinchart
2017-06-27 20:38 ` [PATCH 4/8] drm: qxl: Replace CRTC .commit() helper operation with .enable() Laurent Pinchart
2017-06-27 20:38 ` [PATCH 5/8] drm: vmwgfx: Remove unneeded CRTC .prepare() helper operation Laurent Pinchart
2017-06-27 20:38 ` [PATCH 6/8] drm: vmwgfx: Replace CRTC .commit() helper operation with .enable() Laurent Pinchart
2017-06-28  7:39   ` Daniel Vetter
2017-06-28  8:25     ` Laurent Pinchart [this message]
2017-06-27 20:38 ` [PATCH 7/8] drm: Add old state pointer to CRTC .enable() helper function Laurent Pinchart
2017-06-27 20:38 ` [PATCH 8/8] drm: Convert atomic drivers from CRTC .disable() to .atomic_disable() Laurent Pinchart
2017-06-27 21:16 ` [PATCH 1/8] drm: arcpgu: Remove CRTC .commit() helper operation Laurent Pinchart
2017-06-28  8:36   ` Alexey Brodkin
2017-06-27 21:16 ` [PATCH 2/8] drm: arcpgu: Remove CRTC .prepare() " Laurent Pinchart
2017-06-28  8:36   ` Alexey Brodkin
2017-06-27 21:16 ` [PATCH 3/8] drm: qxl: Remove unused CRTC .dpms() " Laurent Pinchart
2017-06-27 21:16 ` [PATCH 4/8] drm: qxl: Replace CRTC .commit() helper operation with .enable() Laurent Pinchart
2017-06-28  8:14   ` Daniel Vetter
2017-06-27 21:16 ` [PATCH 5/8] drm: vmwgfx: Remove unneeded CRTC .prepare() helper operation Laurent Pinchart
2017-06-29 12:56   ` Thomas Hellstrom
2017-06-27 21:16 ` [PATCH 6/8] drm: vmwgfx: Replace CRTC .commit() helper operation with .enable() Laurent Pinchart
2017-06-29 12:58   ` Thomas Hellstrom
2017-06-27 21:16 ` [PATCH 7/8] drm: Add old state pointer to CRTC .enable() helper function Laurent Pinchart
2017-06-28  6:46   ` Maxime Ripard
2017-06-28  7:42   ` Daniel Vetter
2017-06-28 11:55     ` Laurent Pinchart
2017-06-28  8:15   ` Philipp Zabel
2017-06-28  8:37   ` Alexey Brodkin
2017-06-28  8:43   ` Boris Brezillon
2017-06-28 13:41   ` Liviu Dudau
2017-06-28 13:44     ` Laurent Pinchart
2017-06-28 13:55   ` dri-devel-bounces
2017-06-29  7:48   ` Philippe CORNU
2017-06-29  8:00   ` Vincent ABRIOU
2017-06-29 12:59   ` Thomas Hellstrom
2017-07-03  8:57   ` Jyri Sarha
2017-06-27 21:16 ` [PATCH 8/8] drm: Convert atomic drivers from CRTC .disable() to .atomic_disable() Laurent Pinchart
2017-06-28  6:47   ` Maxime Ripard
2017-06-28  8:15   ` Philipp Zabel
2017-06-28  8:39   ` Alexey Brodkin
2017-06-28  8:45   ` Boris Brezillon
2017-06-29  7:49   ` Philippe CORNU
2017-06-29  8:00   ` Vincent ABRIOU
2017-06-29 13:00   ` Thomas Hellstrom
2017-07-03  8:53   ` Jyri Sarha
2017-06-28  8:16 ` [PATCH 0/8] Cleanup CRTC .enable()/.disable() cargo-cult Daniel Vetter
2017-06-28  8:20   ` Daniel Vetter
2017-06-28  8:23     ` Laurent Pinchart
2017-06-28 11:27 ` Emil Velikov
2017-06-28 13:10   ` Laurent Pinchart
2017-06-29 12:39     ` Emil Velikov

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=5679474.a34nFmHgeT@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=daniel.vetter@intel.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    /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.