All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chad Versace <chad.versace@linux.intel.com>
To: Ben Widawsky <ben@bwidawsk.net>
Cc: Intel GFX <intel-gfx@lists.freedesktop.org>
Subject: Re: [PATCH] drm/i915/hsw: Change default LLC age to 3
Date: Thu, 01 Aug 2013 10:21:47 -0700	[thread overview]
Message-ID: <51FA992B.7000409@linux.intel.com> (raw)
In-Reply-To: <1375312028-4000-1-git-send-email-ben@bwidawsk.net>

On 07/31/2013 04:07 PM, Ben Widawsky wrote:
> The default LLC age was changed:
> commit 0d8ff15e9a15f2b393e53337a107b7a1e5919b6d
> Author: Ben Widawsky <benjamin.widawsky@intel.com>
> Date:   Thu Jul 4 11:02:03 2013 -0700
>
> drm/i915/hsw: Set correct Haswell PTE encodings.
>
> This caused a regression in performance on certain benchmarks. While I
> think a discussion still needs to happen about how the kernel should
> default for both eLLC, and LLC - just revert this behavior for now.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67062
> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
> ---
>   drivers/gpu/drm/i915/i915_gem_gtt.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
> index e7b4204..4b1e6e3 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> @@ -52,8 +52,10 @@
>    */
>   #define HSW_CACHEABILITY_CONTROL(bits)	((((bits) & 0x7) << 1) | \
>   					 (((bits) & 0x8) << (11 - 3)))
> +#define HSW_WB_LLC_AGE3			HSW_CACHEABILITY_CONTROL(0x2)
>   #define HSW_WB_LLC_AGE0			HSW_CACHEABILITY_CONTROL(0x3)
>   #define HSW_WB_ELLC_LLC_AGE0		HSW_CACHEABILITY_CONTROL(0xb)
> +#define HSW_LLC				HSW_WB_LLC_AGE3
>
>   static gen6_gtt_pte_t gen6_pte_encode(dma_addr_t addr,
>   				      enum i915_cache_level level)
> @@ -105,7 +107,7 @@ static gen6_gtt_pte_t hsw_pte_encode(dma_addr_t addr,
>   	pte |= HSW_PTE_ADDR_ENCODE(addr);
>
>   	if (level != I915_CACHE_NONE)
> -		pte |= HSW_WB_LLC_AGE0;
> +		pte |= HSW_LLC;
>
>   	return pte;
>   }
>

I think the patch is clearer without the wrapper define HSW_LLC. But,
anyways, with or without the wrapper,
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>

  reply	other threads:[~2013-08-01 17:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-31 23:07 [PATCH] drm/i915/hsw: Change default LLC age to 3 Ben Widawsky
2013-08-01 17:21 ` Chad Versace [this message]
2013-08-01 22:44   ` [PATCH] [v2] " Ben Widawsky
2013-08-01 22:56     ` [PATCH] [v3] " Ben Widawsky
2013-08-04 19:10       ` Daniel Vetter
2013-08-04 20:55         ` Ben Widawsky
2013-08-04 23:03           ` Daniel Vetter
2013-08-04 23:22             ` Ben Widawsky
2013-08-05  5:07               ` 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=51FA992B.7000409@linux.intel.com \
    --to=chad.versace@linux.intel.com \
    --cc=ben@bwidawsk.net \
    --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 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.