drm/i915/selftests/perf: watch out for stolen objects
authorMatthew Auld <matthew.auld@intel.com>
Mon, 23 Mar 2020 11:03:01 +0000 (11:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Mar 2020 11:52:34 +0000 (11:52 +0000)
commit45d4173994248a47d8689866676b014f5439c711
tree3a3a0d0ffe893b58435d5c0e08ccb9d6c2987f6d
parent41e4065a6b0bb4d785161eff16874f31ec9633ef
drm/i915/selftests/perf: watch out for stolen objects

Stolen memory is allocated at creation, returning -ENOSPC if we run out
space.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1424
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/20200323110301.38806-1-matthew.auld@intel.com
drivers/gpu/drm/i915/selftests/intel_memory_region.c