]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use vma->size for appgtt allocate_va_range
authorMatthew Auld <matthew.auld@intel.com>
Tue, 16 May 2017 08:55:14 +0000 (09:55 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 16 May 2017 10:26:36 +0000 (11:26 +0100)
commita32b422d63fe32a4ccc7ba4eaec34b3ed82b47b3
treea8cd861e288267c59581c5c81c3099a285574a29
parent4fb07e60b9644a751615a43955543ce101642099
drm/i915: use vma->size for appgtt allocate_va_range

For the aliasing ppgtt we clear the va range up to vma->size, but seem
to allocate up to vma->node.size, which is a little inconsistent given
that vma->node.size >= vma->size. Not that is really matters all that
much since we preallocate anyway, but for consistency just use
vma->size.

Fixes: d34778320b03 ("drm/i915: Move allocate_va_range to GTT")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170516085514.5853-1-matthew.auld@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.c