drm/i915: Correct PPGTT total size
authorBen Widawsky <benjamin.widawsky@intel.com>
Sat, 8 Mar 2014 19:58:17 +0000 (11:58 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Mar 2014 20:06:08 +0000 (21:06 +0100)
commit5a6c93fe802bd241c4287f116d0116aff0a4341a
tree023b44ad60cdb39d232f341a57d590087282f9d9
parent8407bb9129da95fc4099b84cdbbc23e6d4f66aee
drm/i915: Correct PPGTT total size

Our code allows have a PPGTT that is smaller than the maximum size for
GEN6-GEN7. Though I don't think this actually ever occurs, the code may
as well work properly and more importantly look correct by using the
variable size instead of the HW max.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c