All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable()
@ 2014-11-27 13:32 Ander Conselvan de Oliveira
  2014-11-27 20:49 ` [PATCH] drm/i915: Remove unnecessary goto in shuang.he
  2014-11-28 18:16 ` [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable() Daniel Vetter
  0 siblings, 2 replies; 3+ messages in thread
From: Ander Conselvan de Oliveira @ 2014-11-27 13:32 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ander Conselvan de Oliveira

The same logic can be implemented without it, and it even saves a line
of code.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 42bcbea..c424c36 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -11803,13 +11803,11 @@ intel_primary_plane_disable(struct drm_plane *plane)
 	 * In either case, we need to unpin the FB and let the fb pointer get
 	 * updated, but otherwise we don't need to touch the hardware.
 	 */
-	if (!intel_crtc->primary_enabled)
-		goto disable_unpin;
-
-	intel_crtc_wait_for_pending_flips(plane->crtc);
-	intel_disable_primary_hw_plane(plane, plane->crtc);
+	if (intel_crtc->primary_enabled) {
+		intel_crtc_wait_for_pending_flips(plane->crtc);
+		intel_disable_primary_hw_plane(plane, plane->crtc);
+	}
 
-disable_unpin:
 	mutex_lock(&dev->struct_mutex);
 	i915_gem_track_fb(intel_fb_obj(plane->fb), NULL,
 			  INTEL_FRONTBUFFER_PRIMARY(intel_crtc->pipe));
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915: Remove unnecessary goto in
  2014-11-27 13:32 [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable() Ander Conselvan de Oliveira
@ 2014-11-27 20:49 ` shuang.he
  2014-11-28 18:16 ` [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable() Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: shuang.he @ 2014-11-27 20:49 UTC (permalink / raw)
  To: shuang.he, intel-gfx, ander.conselvan.de.oliveira

Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
-------------------------------------Summary-------------------------------------
Platform          Delta          drm-intel-nightly          Series Applied
PNV                                  364/364              364/364
ILK              +1                 365/366              366/366
SNB                                  450/450              450/450
IVB                                  498/498              498/498
BYT                                  289/289              289/289
HSW                                  564/564              564/564
BDW                                  417/417              417/417
-------------------------------------Detailed-------------------------------------
Platform  Test                                drm-intel-nightly          Series Applied
 ILK  igt_kms_flip_wf_vblank-ts-check      DMESG_WARN(1, M26)PASS(2, M26M37)      PASS(1, M37)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable()
  2014-11-27 13:32 [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable() Ander Conselvan de Oliveira
  2014-11-27 20:49 ` [PATCH] drm/i915: Remove unnecessary goto in shuang.he
@ 2014-11-28 18:16 ` Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2014-11-28 18:16 UTC (permalink / raw)
  To: Ander Conselvan de Oliveira; +Cc: intel-gfx

On Thu, Nov 27, 2014 at 03:32:34PM +0200, Ander Conselvan de Oliveira wrote:
> The same logic can be implemented without it, and it even saves a line
> of code.
> 
> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>

Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-28 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27 13:32 [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable() Ander Conselvan de Oliveira
2014-11-27 20:49 ` [PATCH] drm/i915: Remove unnecessary goto in shuang.he
2014-11-28 18:16 ` [PATCH] drm/i915: Remove unnecessary goto in intel_primary_plane_disable() Daniel Vetter

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.