]> 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)
commita5d26ef6872cbf353b5a3fd3d6d0e5a3c7ca1edb
treeaab16c1f7ea649ffe573b68def5ca972fce12a6f
parentfe2582c7934154e5fc482ab9cac0c94188f50f1a
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