drm/i915/selftests: Track evict objects explicitly
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Jan 2019 22:20:48 +0000 (22:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Jan 2019 11:58:35 +0000 (11:58 +0000)
commit480cd6dd9287ac8276c802475bacb3138afd8e04
treefeba15c54c387f3fe7442d619e50e773d3023758
parent24bf86ccf9f5563f7d288f8b7672b0facdefbc95
drm/i915/selftests: Track evict objects explicitly

During review of commit 71fc448c1aaf ("drm/i915/selftests: Make evict
tolerant of foreign objects"), Matthew mentioned it would be better if
we explicitly tracked the objects we created. We have an obj->st_link
hook for this purpose, so add the corresponding list of objects and
reduce our loops to only consider our own list.

References: 71fc448c1aaf ("drm/i915/selftests: Make evict tolerant of foreign objects")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190121222117.23305-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_evict.c