drm/i915/selftest: assert we get 2M GTT pages
authorMatthew Auld <matthew.auld@intel.com>
Mon, 30 Nov 2020 14:18:09 +0000 (14:18 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Nov 2020 18:17:51 +0000 (18:17 +0000)
commite96434e1137e9a110014e2d5717348623f68ea77
tree20ae38302a06f34a8bb1366fb739c77cc1952134
parent77acab40a61ad079e31892d15d0b0ab9714ed099
drm/i915/selftest: assert we get 2M GTT pages

For the LMEM case if we have suitable alignment and 2M physical pages we
should always get 2M GTT pages within the constraints of the hugepages
selftest. If we don't then something might be wrong in our construction
of the backing pages.

References: 330b7d33056b ("drm/i915/region: fix order when adding blocks")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
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/20201130141809.65330-2-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/selftests/huge_pages.c