intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <ville.syrjala@intel.com>
To: "Konduru, Chandra" <chandra.konduru@intel.com>
Cc: "Vetter, Daniel" <daniel.vetter@intel.com>,
	"intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 14/15] drm/i915: skl nv12 workarounds
Date: Wed, 9 Sep 2015 14:46:13 +0300	[thread overview]
Message-ID: <20150909114613.GK29811@intel.com> (raw)
In-Reply-To: <76A9B330A4D78C4D99CB292C4CC06C0E370D18F0@fmsmsx101.amr.corp.intel.com>

On Wed, Sep 09, 2015 at 02:51:58AM +0300, Konduru, Chandra wrote:
> > > > > +static void skl_wa_clkgate(struct drm_i915_private *dev_priv,
> > > > > +	int pipe, int enable)
> > > > > +{
> > > > > +	if (pipe == PIPE_A || pipe == PIPE_B) {
> > > > > +		if (enable)
> > > > > +			I915_WRITE(CLKGATE_DIS_PSL(pipe),
> > > > > +				DUPS1_GATING_DIS | DUPS2_GATING_DIS);
> > > > > +		else
> > > > > +			I915_WRITE(CLKGATE_DIS_PSL(pipe),
> > > > > +				I915_READ(CLKGATE_DIS_PSL(pipe) &
> > > > > +				~(DUPS1_GATING_DIS|DUPS2_GATING_DIS)));
> > > > > +	}
> > > > > +}
> > > > > +
> > > > >  static void haswell_crtc_enable(struct drm_crtc *crtc)
> > > > >  {
> > > > >  	struct drm_device *dev = crtc->dev;
> > > > > @@ -5094,6 +5119,9 @@ static void haswell_crtc_enable(struct drm_crtc
> > > > *crtc)
> > > > >  		intel_wait_for_vblank(dev, hsw_workaround_pipe);
> > > > >  		intel_wait_for_vblank(dev, hsw_workaround_pipe);
> > > > >  	}
> > > > > +
> > > > > +	/* workaround for NV12 */
> > > > > +	skl_wa_clkgate(dev_priv, pipe, 1);
> > > >
> > > > I wonder what's the cost of having this
> > > > a) always enabled
> > > > b) enabled when the pipe is enabled
> > > > c) enabled only when NV12 is used
> > > > ?
> > >
> > > Initially optimized to enable only when nv12 is used,
> > > but there are some corner cases when planes switch to and
> > > from nv12 to non-nv12 and SV recommendation is to enable
> > > always; and SV evaluated cost, and it isn't a big concern.
> > 
> > So, based on that we could just stuff it into init_clock_gating and
> > forget about it.
> 
> Couldn't include into init_clock_gating because this requires
> a pipe based check.

init_clock_gating()
{
	...
	enable for pipe A
	enable for pipe B
	...
}

or

for_each_pipe(pipe)
	if (pipe != C)
		enable w/a


> 
> By the way, so far 4 patches got RB tags.
> In the respun series (http://lists.freedesktop.org/archives/intel-gfx/2015-September/075235.html
> addressed your feedback), those 4 tags goes to 1, 3, 5 and 8 of 15.
> Can you check updated patches and issue R-B tags for remaining ones?

I think your trigger finger is a bit overly sensitive :) We still had
open issues in this series so posting another one makes things somewhat
messy.

-- 
Ville Syrjälä
Intel OTC
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

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

  reply	other threads:[~2015-09-09 11:47 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20  1:02 [PATCH 00/15] drm/i915: Adding NV12 for skylake display Chandra Konduru
2015-08-20  1:02 ` [PATCH 01/15] drm/i915: Allocate min dbuf blocks per bspec Chandra Konduru
2015-09-04  8:17   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 02/15] drm/i915: In DBUF/WM calcs for 90/270, swap w & h Chandra Konduru
2015-09-04  8:31   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 03/15] drm/i915: Add register definitions for NV12 support Chandra Konduru
2015-09-04  8:40   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 04/15] drm/i915: Set scaler mode for NV12 Chandra Konduru
2015-09-04  8:53   ` Ville Syrjälä
2015-09-04 15:03     ` Daniel Vetter
2015-08-20  1:02 ` [PATCH 05/15] drm/i915: Stage scaler request for NV12 as src format Chandra Konduru
2015-09-04 10:17   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 06/15] drm/i915: Update format_is_yuv() to include NV12 Chandra Konduru
2015-09-04 10:17   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 07/15] drm/i915: Upscale scaler max scale for NV12 Chandra Konduru
2015-09-04 10:22   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 08/15] drm/i915: Add NV12 as supported format for primary plane Chandra Konduru
2015-08-26  8:40   ` Daniel Vetter
2015-08-27  1:40     ` Konduru, Chandra
2015-08-20  1:02 ` [PATCH 09/15] drm/i915: Add NV12 as supported format for sprite plane Chandra Konduru
2015-09-04 10:28   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 10/15] drm/i915: Add NV12 support to intel_framebuffer_init Chandra Konduru
2015-09-04 10:40   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 11/15] drm/i915: Add NV12 to primary plane programming Chandra Konduru
2015-09-04 11:09   ` Ville Syrjälä
2015-09-04 15:06     ` Daniel Vetter
2015-09-05  1:10     ` Konduru, Chandra
2015-09-05 14:59       ` Ville Syrjälä
2015-09-08 23:30         ` Konduru, Chandra
2015-09-09 11:41           ` Ville Syrjälä
2015-09-09 17:12             ` Konduru, Chandra
2015-09-09 18:05               ` Ville Syrjälä
2015-09-09 20:10                 ` Konduru, Chandra
2015-09-09 20:40                   ` Ville Syrjälä
2015-09-09 21:09                     ` Konduru, Chandra
2015-09-09 22:27                       ` Ville Syrjälä
2015-09-09 23:31                         ` Konduru, Chandra
2015-08-20  1:02 ` [PATCH 12/15] drm/i915: Add NV12 to sprite " Chandra Konduru
2015-08-20  1:02 ` [PATCH 13/15] drm/i915: Set initial phase & trip for NV12 scaler Chandra Konduru
2015-09-04 11:15   ` Ville Syrjälä
2015-08-20  1:02 ` [PATCH 14/15] drm/i915: skl nv12 workarounds Chandra Konduru
2015-08-26  8:42   ` Daniel Vetter
2015-08-27  1:44     ` Konduru, Chandra
2015-09-02  8:02       ` Daniel Vetter
2015-09-03 18:33         ` Konduru, Chandra
2015-09-04  7:40           ` Daniel Vetter
2015-09-05  2:09             ` Konduru, Chandra
2015-09-04 11:26   ` Ville Syrjälä
2015-09-05  1:28     ` Konduru, Chandra
2015-09-05 14:52       ` Ville Syrjälä
2015-09-08 23:51         ` Konduru, Chandra
2015-09-09 11:46           ` Ville Syrjälä [this message]
2015-09-09 17:20             ` Konduru, Chandra
2015-08-20  1:02 ` [PATCH 15/15] drm/i915: Add 90/270 rotation for NV12 format Chandra Konduru
2015-09-04 11:30   ` Ville Syrjälä
2015-09-05  1:38     ` Konduru, Chandra
2015-09-05 14:48       ` Ville Syrjälä

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=20150909114613.GK29811@intel.com \
    --to=ville.syrjala@intel.com \
    --cc=chandra.konduru@intel.com \
    --cc=daniel.vetter@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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).