@@ -259,7 +259,8 @@ static int i915_gem_object_info(struct seq_file *m, void* data)
count, size);
seq_printf(m, "%zu [%zu] gtt total\n",
- dev_priv->mm.gtt_total, dev_priv->mm.mappable_gtt_total);
+ dev_priv->mm.gtt_total,
+ dev_priv->mm.gtt_mappable_end - dev_priv->mm.gtt_start);
mutex_unlock(&dev->struct_mutex);
@@ -889,7 +889,6 @@ typedef struct drm_i915_private {
/* accounting, useful for userland debugging */
size_t gtt_total;
- size_t mappable_gtt_total;
size_t object_memory;
u32 object_count;
} mm;
@@ -559,7 +559,6 @@ void i915_gem_setup_global_gtt(struct drm_device *dev,
dev_priv->mm.gtt_start = start;
dev_priv->mm.gtt_mappable_end = mappable_end;
dev_priv->mm.gtt_total = end - start;
- dev_priv->mm.mappable_gtt_total = mappable_end - start;
/* Clear any non-preallocated blocks */
drm_mm_for_each_hole(entry, &dev_priv->mm.gtt_space,