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] drm/i915: Fix FB WM for HSW
Date: Fri, 9 Aug 2013 15:19:32 -0300	[thread overview]
Message-ID: <CA+gsUGTed8eGyhrGMDZpjuycQ63de5uq7V1SWVk2+KA+35+eNA@mail.gmail.com> (raw)
In-Reply-To: <1376060529-10141-1-git-send-email-ville.syrjala@linux.intel.com>

2013/8/9  <ville.syrjala@linux.intel.com>:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Due to a misplaced memset(), we never actually enabled the FBC WM on HSW.
> Move the memset() to happen a bit earlier, so that it won't clobber
> results->enable_fbc_wm.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Yay! Thanks!

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

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index b0e4a0b..862e350 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -2429,6 +2429,8 @@ static void hsw_compute_wm_results(struct drm_device *dev,
>                         break;
>         max_level = level - 1;
>
> +       memset(results, 0, sizeof(*results));
> +
>         /* The spec says it is preferred to disable FBC WMs instead of disabling
>          * a WM level. */
>         results->enable_fbc_wm = true;
> @@ -2439,7 +2441,6 @@ static void hsw_compute_wm_results(struct drm_device *dev,
>                 }
>         }
>
> -       memset(results, 0, sizeof(*results));
>         for (wm_lp = 1; wm_lp <= 3; wm_lp++) {
>                 const struct hsw_lp_wm_result *r;
>
> --
> 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-08-09 18:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-09 15:02 [PATCH] drm/i915: Fix FB WM for HSW ville.syrjala
2013-08-09 18:19 ` Paulo Zanoni [this message]

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+gsUGTed8eGyhrGMDZpjuycQ63de5uq7V1SWVk2+KA+35+eNA@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.