]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfc2fcbf208f49e42a4caf0776bdd371c2b4c696
treeaab16c1f7ea649ffe573b68def5ca972fce12a6f
parentae3893d3e3573ebb0ece2a9a9fbc5e44f48e3776
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