drm/i915/selftests: allow misaligned_pin test work with unmappable memory
authorAndrzej Hajda <andrzej.hajda@intel.com>
Thu, 25 Aug 2022 15:42:39 +0000 (17:42 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 30 Aug 2022 12:45:21 +0000 (13:45 +0100)
commit13cc5123e9530c5895799b4185fb7a1a2e1b7f88
tree6f041b98f62dbc545266fcf2fafd13d57f25dbcf
parentf54e515c91806288126f64b37da0c78baa2d8c1f
drm/i915/selftests: allow misaligned_pin test work with unmappable memory

In case of Small BAR configurations stolen local memory can be unmappable.
Since the test does not touch the memory, passing I915_BO_ALLOC_GPU_ONLY
flag to i915_gem_object_create_region, will prevent -ENOSPC error from
_i915_gem_object_stolen_init.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6565
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220825154239.52343-1-andrzej.hajda@intel.com
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c