drm/i915/selftests: Query the vm under test for hugepage support
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 17 Jan 2019 23:05:12 +0000 (23:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Jan 2019 09:07:06 +0000 (09:07 +0000)
commit8d714185951b04368f6695a8c01f5c9c332ac1d3
tree7157f8a642313ba5b039f40260be980ecee46402
parent1dfbea041ffd2293634b1a77650b195e58e7487a
drm/i915/selftests: Query the vm under test for hugepage support

Since we have the ppgtt we want to test, we can ask it directly if it is
suitable for the hugepage test we intend to undertake.

v2: Not everyone has full-ppgtt

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