drm/i915/selftests: Reorder request allocation vs vma pinning
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Dec 2018 14:15:18 +0000 (14:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 4 Dec 2018 17:53:19 +0000 (17:53 +0000)
commit8f98d4baf0ddd4b4efdd9db69467bad482ff59ab
tree8c02c6454b49c92f182b5e2d37cd0e90762cffc5
parent4377d4e0d3d511986033ba7b4182d5a80b7f9ea2
drm/i915/selftests: Reorder request allocation vs vma pinning

Impose a restraint that we have all vma pinned for a request prior to
its allocation. This is to simplify request construction, and should
facilitate unravelling the lock interdependencies later.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181204141522.13640-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/huge_pages.c
drivers/gpu/drm/i915/selftests/igt_spinner.c
drivers/gpu/drm/i915/selftests/intel_hangcheck.c