Reviewed-by: Rodrigo Vivi <rodrigo.vivi at gmail.com> On Tue, Jan 15, 2013 at 7:26 PM, Ben Widawsky <ben at bwidawsk.net> wrote: > It's duplicated in the more useful gtt_total. > > Signed-off-by: Ben Widawsky <ben at bwidawsk.net> > --- > drivers/gpu/drm/i915/i915_drv.h | 1 - > drivers/gpu/drm/i915/i915_gem_gtt.c | 3 +-- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index d2b93a4..f49b7be 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -797,7 +797,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 */ > diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c > index eac2cec..63da446 100644 > --- a/drivers/gpu/drm/i915/i915_gem_gtt.c > +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c > @@ -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; > > -- > 1.8.1 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Rodrigo Vivi Blog: http://blog.vivi.eng.br