aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.h
diff options
context:
space:
mode:
authorMichel Thierry <michel.thierry@intel.com>2015-04-08 12:13:29 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-10 08:56:10 +0200
commit7cb6d7ac635ab0c80607e6ffaf8682d48752523f (patch)
tree9ee8a0409e0ab6808ac83cb7d8bf8c304709bd9b /drivers/gpu/drm/i915/i915_gem_gtt.h
parentdrm/i915/gen8: pagetable allocation rework (diff)
downloadlinux-dev-7cb6d7ac635ab0c80607e6ffaf8682d48752523f.tar.xz
linux-dev-7cb6d7ac635ab0c80607e6ffaf8682d48752523f.zip
drm/i915/gen8: Update pdp switch and point unused PDPs to scratch page
One important part of this patch is we now write a scratch page directory into any unused PDP descriptors. This matters for 2 reasons, first, we're not allowed to just use 0, or an invalid pointer, and second, we must wipe out any previous contents from the last context. The latter point only matters with full PPGTT. The former point only effect platforms with less than 4GB memory. v2: Updated commit message to point that we must set unused PDPs to the scratch page. v3: Unmap scratch_pd in gen8_ppgtt_free. v4: Initialize scratch_pd. (Mika) Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Michel Thierry <michel.thierry@intel.com> (v2+) Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.h')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.h b/drivers/gpu/drm/i915/i915_gem_gtt.h
index 63fda82452ec..acf8ed7f86ef 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.h
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.h
@@ -322,6 +322,7 @@ struct i915_hw_ppgtt {
};
struct i915_page_table *scratch_pt;
+ struct i915_page_directory *scratch_pd;
struct drm_i915_file_private *file_priv;