From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
"Chris Wilson" <chris@chris-wilson.co.uk>,
intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2] drm/i915: Don't enable IPS when pixel rate exceeds 95% of cdclk
Date: Mon, 15 Sep 2014 10:22:13 +0300 [thread overview]
Message-ID: <8738btcpqy.fsf@intel.com> (raw)
In-Reply-To: <20140912154942.GD12416@intel.com>
On Fri, 12 Sep 2014, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Fri, Sep 12, 2014 at 04:42:33PM +0100, Chris Wilson wrote:
>> On Fri, Sep 12, 2014 at 05:01:57PM +0300, ville.syrjala@linux.intel.com wrote:
>> > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> >
>> > Bspec says we shouldn't enable IPS on BDW when the pipe pixel rate
>> > exceeds 95% of the core display clock. Apparently this can cause
>> > underruns.
>> >
>> > There's no similar restriction listed for HSW, so leave that one alone
>> > for now.
>> >
>> > v2: Add pipe_config_supports_ips() (Chris)
>> >
>> > Tested-by: Timo Aaltonen <tjaalton@ubuntu.com>
>> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83497
>> > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> > ---
>> > drivers/gpu/drm/i915/intel_display.c | 21 +++++++++++++++++++--
>> > drivers/gpu/drm/i915/intel_drv.h | 1 +
>> > drivers/gpu/drm/i915/intel_pm.c | 16 +++++++---------
>> > 3 files changed, 27 insertions(+), 11 deletions(-)
>> >
>> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
>> > index 965eb3c..7809177 100644
>> > --- a/drivers/gpu/drm/i915/intel_display.c
>> > +++ b/drivers/gpu/drm/i915/intel_display.c
>> > @@ -5241,12 +5241,29 @@ retry:
>> > return setup_ok ? 0 : -EINVAL;
>> > }
>> >
>> > +static bool pipe_config_supports_ips(struct drm_i915_private *dev_priv,
>> > + struct intel_crtc_config *pipe_config)
>> > +{
>> > + if (pipe_config->pipe_bpp > 24)
>> > + return false;
>> > +
>> > + /* HSW can handle pixel rate up to cdclk? */
>> > + if (IS_HASWELL(dev_priv->dev))
>>
>> This only needs IS_HASWELL(dev_priv)
>
> old habits...
Thanks to your old habits I didn't have to make any changes when pushing
this to drm-intel-fixes which is still old habit land. Thanks for the
patch and review.
BR,
Jani.
>
>>
>> > + return true;
>> > +
>> > + return ilk_pipe_pixel_rate(pipe_config) <=
>> > + intel_ddi_get_cdclk_freq(dev_priv) * 95 / 100;
>>
>> Otherwise
>> Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
>> -Chris
>>
>> --
>> Chris Wilson, Intel Open Source Technology Centre
>
> --
> Ville Syrjälä
> Intel OTC
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2014-09-15 7:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 10:54 [PATCH] drm/i915: Don't enable IPS when pixel rate exceeds 95% of cdclk ville.syrjala
2014-09-11 11:03 ` Chris Wilson
2014-09-12 14:01 ` [PATCH v2] " ville.syrjala
2014-09-12 15:42 ` Chris Wilson
2014-09-12 15:49 ` Ville Syrjälä
2014-09-15 7:22 ` Jani Nikula [this message]
2014-09-17 14:05 ` Paulo Zanoni
2014-09-17 14:10 ` Paulo Zanoni
2014-09-17 14:43 ` Ville Syrjälä
2014-09-18 11:56 ` Jani Nikula
2015-05-20 20:40 ` Rodrigo Vivi
2015-05-20 20:45 ` Paulo Zanoni
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=8738btcpqy.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--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 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.