All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paulo Zanoni <przanoni@gmail.com>
To: ville.syrjala@linux.intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2] drm/i915: Re-enable FBC WM if the watermark is good on gen6+
Date: Thu, 9 May 2013 17:51:13 -0300	[thread overview]
Message-ID: <CA+gsUGQiLPG-EiE=V-vZzY+1ZhttgrgmMFfSfC0NaGPHjDpcAg@mail.gmail.com> (raw)
In-Reply-To: <1366826950-11962-1-git-send-email-ville.syrjala@linux.intel.com>

2013/4/24  <ville.syrjala@linux.intel.com>:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> If the calculated FBC watermark is no good, we simply disable FBC
> watermarks. But we fail to re-enable them later if the calculated
> watermark becomes good again. Fix that, but remember to leave FBC
> watermarks disabled on ILK since that's required by some workarounds.
>
> v2: Fix checkpatch complaint
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Looks correct...
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 3534a71..da8f307 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -1633,6 +1633,10 @@ static bool ironlake_check_srwm(struct drm_device *dev, int level,
>                 I915_WRITE(DISP_ARB_CTL,
>                            I915_READ(DISP_ARB_CTL) | DISP_FBC_WM_DIS);
>                 return false;
> +       } else if (INTEL_INFO(dev)->gen >= 6) {
> +               /* enable FBC WM (except on ILK, where it must remain off) */
> +               I915_WRITE(DISP_ARB_CTL,
> +                          I915_READ(DISP_ARB_CTL) & ~DISP_FBC_WM_DIS);
>         }
>
>         if (display_wm > display->max_wm) {
> --
> 1.8.1.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Paulo Zanoni

  reply	other threads:[~2013-05-09 20:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-24 17:54 [PATCH] drm/i915: Re-enable FBC WM if the watermark is good on gen6+ ville.syrjala
2013-04-24 18:09 ` [PATCH v2] " ville.syrjala
2013-05-09 20:51   ` Paulo Zanoni [this message]
2013-05-10  7:15     ` Daniel Vetter

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='CA+gsUGQiLPG-EiE=V-vZzY+1ZhttgrgmMFfSfC0NaGPHjDpcAg@mail.gmail.com' \
    --to=przanoni@gmail.com \
    --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.