]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Kill gtt_end
authorBen Widawsky <ben@bwidawsk.net>
Thu, 17 Jan 2013 20:45:12 +0000 (12:45 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 17 Jan 2013 21:27:31 +0000 (22:27 +0100)
It's duplicated in the more useful gtt_total.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c

index 8f5b2816fc038722cc6f7d732781ed5f9cf44ddc..d58189e60844c34830ec0e5598df66ee90625b6e 100644 (file)
@@ -801,7 +801,6 @@ typedef struct drm_i915_private {
                /** Usable portion of the GTT for GEM */
                unsigned long gtt_start;
                unsigned long gtt_mappable_end;
-               unsigned long gtt_end;
                unsigned long stolen_base; /* limited to low memory (32-bit) */
 
                /** "Graphics Stolen Memory" holds the global PTEs */
index a4af0f79e9724dedd11625042104accf4dd42e53..3ffcf528f166ebe1467404a06077454eef1d3921 100644 (file)
@@ -394,7 +394,7 @@ void i915_gem_restore_gtt_mappings(struct drm_device *dev)
 
        /* First fill our portion of the GTT with scratch pages */
        i915_ggtt_clear_range(dev, dev_priv->mm.gtt_start / PAGE_SIZE,
-                             (dev_priv->mm.gtt_end - dev_priv->mm.gtt_start) / PAGE_SIZE);
+                             dev_priv->mm.gtt_total / PAGE_SIZE);
 
        list_for_each_entry(obj, &dev_priv->mm.bound_list, gtt_list) {
                i915_gem_clflush_object(obj);
@@ -556,7 +556,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_end = end;
        dev_priv->mm.gtt_total = end - start;
        dev_priv->mm.mappable_gtt_total = min(end, mappable_end) - start;