aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2013-07-16 19:50:06 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-07-17 16:23:43 -0400
commit93bd8649dba3155d1a0ba2a902d9c49f1c75a1da (patch)
tree50d29aad6fd49dcbab1e3c0d4ff40d9bc6c4b9b2 /drivers/gpu/drm/i915/i915_drv.h
parent853ba5d2231619e1c7f7de1269e135174ec8e3cb (diff)
drm/i915: Put the mm in the parent address space
Every address space should support object allocation. It therefore makes sense to have the allocator be part of the "superclass" which GGTT and PPGTT will derive. Since our maximum address space size is only 2GB we're not yet able to avoid doing allocation/eviction; but we'd hope one day this becomes almost irrelvant. v2: Rebased Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index a2c909107a3e..7839b3a485aa 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -447,6 +447,7 @@ enum i915_cache_level {
447typedef uint32_t gen6_gtt_pte_t; 447typedef uint32_t gen6_gtt_pte_t;
448 448
449struct i915_address_space { 449struct i915_address_space {
450 struct drm_mm mm;
450 struct drm_device *dev; 451 struct drm_device *dev;
451 unsigned long start; /* Start offset always 0 for dri2 */ 452 unsigned long start; /* Start offset always 0 for dri2 */
452 size_t total; /* size addr space maps (ex. 2GB for ggtt) */ 453 size_t total; /* size addr space maps (ex. 2GB for ggtt) */
@@ -831,8 +832,6 @@ struct intel_l3_parity {
831struct i915_gem_mm { 832struct i915_gem_mm {
832 /** Memory allocator for GTT stolen memory */ 833 /** Memory allocator for GTT stolen memory */
833 struct drm_mm stolen; 834 struct drm_mm stolen;
834 /** Memory allocator for GTT */
835 struct drm_mm gtt_space;
836 /** List of all objects in gtt_space. Used to restore gtt 835 /** List of all objects in gtt_space. Used to restore gtt
837 * mappings on resume */ 836 * mappings on resume */
838 struct list_head bound_list; 837 struct list_head bound_list;