drm/i915: pass the vma to insert_entries
authorMatthew Auld <matthew.auld@intel.com>
Thu, 22 Jun 2017 09:58:36 +0000 (10:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Jun 2017 15:48:50 +0000 (16:48 +0100)
commit4a234c5fae1686c8327edeaabc0f2d6fb86db470
tree8ae6b7f57219f2ca1caa55585d9c83d9bb3c9759
parent51d05e1b29676a0425749a1533b87e3ad3c6f176
drm/i915: pass the vma to insert_entries

The vma already contains most of the information we need for insertion.
But also in preparation for supporting huge gtt pages, it would be
useful to know the details of the vma, such that we can we can easily
determine the page sizes we are allowed to use when inserting into the
48b PPGTT.  This is especially true for 64K where we can't just
arbitrarily use it, since we require aligning/padding the vm space to
2M, which sometimes we can't enforce in the upper levels.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170622095836.6800-1-matthew.auld@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
drivers/gpu/drm/i915/selftests/mock_gtt.c