All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Widawsky <benjamin.widawsky@intel.com>
To: Zhi Wang <zhi.a.wang@intel.com>
Cc: intel-gfx@lists.freedesktop.org,
	Rodrigo Vivi <rodrigo.vivi@intel.com>,
	intel-gvt-dev@lists.freedesktop.org
Subject: Re: [PATCH v9 1/5] drm/i915: Factor out setup_private_pat()
Date: Fri, 8 Sep 2017 16:01:57 -0700	[thread overview]
Message-ID: <20170908230157.GA5803@intel.com> (raw)
In-Reply-To: <1504893999-15403-1-git-send-email-zhi.a.wang@intel.com>

On 17-09-09 02:06:35, Zhi Wang wrote:
>Factor out setup_private_pat() for introducing the following patches.
>
>Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
>Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>Cc: Chris Wilson <chris@chris-wilson.co.uk>
>Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
>Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>

Reviewed-by: Ben Widawsky <benjamin.widawsky@intel.com>

>---
> drivers/gpu/drm/i915/i915_gem_gtt.c | 20 ++++++++++++--------
> 1 file changed, 12 insertions(+), 8 deletions(-)
>
>diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
>index c33c2f9..2fc0656 100644
>--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
>+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
>@@ -2915,6 +2915,16 @@ static void gen6_gmch_remove(struct i915_address_space *vm)
> 	cleanup_scratch_page(vm);
> }
>
>+static void setup_private_pat(struct drm_i915_private *dev_priv)
>+{
>+	if (INTEL_GEN(dev_priv) >= 10)
>+		cnl_setup_private_ppat(dev_priv);
>+	else if (IS_CHERRYVIEW(dev_priv) || IS_GEN9_LP(dev_priv))
>+		chv_setup_private_ppat(dev_priv);
>+	else
>+		bdw_setup_private_ppat(dev_priv);
>+}
>+
> static int gen8_gmch_probe(struct i915_ggtt *ggtt)
> {
> 	struct drm_i915_private *dev_priv = ggtt->base.i915;
>@@ -2947,14 +2957,6 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)
> 	}
>
> 	ggtt->base.total = (size / sizeof(gen8_pte_t)) << PAGE_SHIFT;
>-
>-	if (INTEL_GEN(dev_priv) >= 10)
>-		cnl_setup_private_ppat(dev_priv);
>-	else if (IS_CHERRYVIEW(dev_priv) || IS_GEN9_LP(dev_priv))
>-		chv_setup_private_ppat(dev_priv);
>-	else
>-		bdw_setup_private_ppat(dev_priv);
>-
> 	ggtt->base.cleanup = gen6_gmch_remove;
> 	ggtt->base.bind_vma = ggtt_bind_vma;
> 	ggtt->base.unbind_vma = ggtt_unbind_vma;
>@@ -2975,6 +2977,8 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)
>
> 	ggtt->invalidate = gen6_ggtt_invalidate;
>
>+	setup_private_pat(dev_priv);
>+
> 	return ggtt_probe_common(ggtt, size);
> }
>
>-- 
>2.7.4
>

-- 
Ben Widawsky, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      parent reply	other threads:[~2017-09-08 23:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08 18:06 [PATCH v9 1/5] drm/i915: Factor out setup_private_pat() Zhi Wang
2017-09-08 18:06 ` [PATCH v9 2/5] drm/i915: Introduce private PAT management Zhi Wang
2017-09-08 18:06 ` [PATCH v9 3/5] drm/i915: Remove the "INDEX" suffix from PPAT marcos Zhi Wang
2017-09-08 18:06 ` [PATCH v9 4/5] drm/i915: Do not allocate unused PPAT entries Zhi Wang
2017-09-08 18:06 ` [PATCH v9 5/5] drm/i915/selftests: Introduce live tests of private PAT management Zhi Wang
2017-09-08 21:32   ` Chris Wilson
2017-09-08 19:50 ` ✗ Fi.CI.BAT: warning for series starting with [v9,1/5] drm/i915: Factor out setup_private_pat() Patchwork
2017-09-08 23:01 ` Ben Widawsky [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=20170908230157.GA5803@intel.com \
    --to=benjamin.widawsky@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-gvt-dev@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.com \
    --cc=zhi.a.wang@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.