intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Matt Roper <matthew.d.roper@intel.com>
To: ville.syrjala@linux.intel.com
Cc: intel-gfx@lists.freedesktop.org, drm-intel-fixes@lists.freedesktop.org
Subject: Re: [PATCH 2/5] drm/i915: Ignore bogus plane coordinates on SKL when the plane is not visible
Date: Tue, 17 Jan 2017 14:27:05 -0800	[thread overview]
Message-ID: <20170117222704.GK29740@intel.com> (raw)
In-Reply-To: <20170117220507.GJ29740@intel.com>

On Tue, Jan 17, 2017 at 02:05:07PM -0800, Matt Roper wrote:
> On Mon, Nov 07, 2016 at 10:20:54PM +0200, ville.syrjala@linux.intel.com wrote:
> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > 
> > When the plane is invisible we may have all sorts of bogus stuff
> > in the coordinates, which we must ignore or else we might fail the
> > plane update. This started to happen on SKL when I moved the plane
> > offset computation to happen in the check phase. Previously we
> > happily ignored it all since we never called the update_plane hook
> > with an invisible plane.
> > 
> > Cc: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
> > Cc: drm-intel-fixes@lists.freedesktop.org
> > Fixes: b63a16f6cd89 ("drm/i915: Compute display surface offset in the plane check hook for SKL+")
> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Months later, but
> 
> Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
> 
> and
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98258
> Testcase: igt/pm_rpm/legacy-planes
> Testcase: igt/pm_rpm/universal-planes

Your CI results were clean back when you submitted this, and the
functionally identical patch I posted last week also got clean results,
so pushed to dinq.  Thanks for the patch.


Matt

> 
> 
> > ---
> >  drivers/gpu/drm/i915/intel_display.c | 3 +++
> >  1 file changed, 3 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index 40f6f08e0732..e8c40a69bbc4 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -2979,6 +2979,9 @@ int skl_check_plane_surface(struct intel_plane_state *plane_state)
> >  	unsigned int rotation = plane_state->base.rotation;
> >  	int ret;
> >  
> > +	if (!plane_state->base.visible)
> > +		return 0;
> > +
> >  	/* Rotate src coordinates to match rotated GTT view */
> >  	if (drm_rotation_90_or_270(rotation))
> >  		drm_rect_rotate(&plane_state->base.src,
> > -- 
> > 2.7.4
> > 
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> -- 
> Matt Roper
> Graphics Software Engineer
> IoTG Platform Enabling & Development
> Intel Corporation
> (916) 356-2795
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Matt Roper
Graphics Software Engineer
IoTG Platform Enabling & Development
Intel Corporation
(916) 356-2795
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-01-17 22:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-07 20:20 [PATCH 0/5] drm/i915: Assortment of plane fixes ville.syrjala
2016-11-07 20:20 ` [PATCH 1/5] drm/i915: Fix scaling check for 90/270 degree plane rotation ville.syrjala
2016-11-07 21:28   ` Chris Wilson
2016-11-08 10:58     ` Ville Syrjälä
2016-11-07 20:20 ` [PATCH 2/5] drm/i915: Ignore bogus plane coordinates on SKL when the plane is not visible ville.syrjala
2017-01-17 22:05   ` Matt Roper
2017-01-17 22:27     ` Matt Roper [this message]
2016-11-07 20:20 ` [PATCH 3/5] drm/i915: Grab the rotation from the passed plane state for VLV sprites ville.syrjala
2016-11-07 21:20   ` Chris Wilson
2016-11-07 20:20 ` [PATCH 4/5] drm/i915: Fix error handling for cursor/sprite plane create failure ville.syrjala
2016-11-07 21:17   ` Chris Wilson
2016-11-07 20:20 ` [PATCH 5/5] drm/i915: Use intel_fb_gtt_offset() also for gen2/3 primary plane ville.syrjala
2016-11-07 21:20   ` Chris Wilson
2016-11-08 13:55     ` Ville Syrjälä
2016-11-07 20:45 ` ✓ Fi.CI.BAT: success for drm/i915: Assortment of plane fixes Patchwork

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=20170117222704.GK29740@intel.com \
    --to=matthew.d.roper@intel.com \
    --cc=drm-intel-fixes@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).