drm/i915/selftests: Improve error reporting for igt_mock_max_segment
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Dec 2020 13:03:46 +0000 (13:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Dec 2020 14:36:44 +0000 (14:36 +0000)
commit4f963d363af57fa4deaaea9b1f34f135b94884e1
treeee7276400df638162d092a4a29039a4d085479e4
parente70956a2498dc81d8f2522cba074f55ae910e13c
drm/i915/selftests: Improve error reporting for igt_mock_max_segment

When we fail to find a single block large enough to require splitting,
report the largest block we did find.

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