drm/i915/selftest: test aligned offsets for 64K
authorMatthew Auld <matthew.auld@intel.com>
Mon, 29 Oct 2018 20:37:34 +0000 (20:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 31 Oct 2018 08:48:46 +0000 (08:48 +0000)
commit79c03caac2ff362304935aafc1be0111d36d1ce5
treeaab16c1f7ea649ffe573b68def5ca972fce12a6f
parente5ee4956f2fdda8ac2d3eab309df389d43b80fc0
drm/i915/selftest: test aligned offsets for 64K

When using softpin it's not enough to just pad the vma size, we also
need to ensure the vma offset is at the start of the pt boundary, if we
plan to utilize 64K pages. Therefore to improve test coverage we should
use both aligned and unaligned gtt offsets in igt_write_huge.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181029203734.21936-1-matthew.auld@intel.com
drivers/gpu/drm/i915/selftests/huge_pages.c