Align igt_spinner_create_request with the hang_create_request implementation in selftest_hangcheck.c, since they perform the same actions. Additionally, refactor the hangcheck live selftest to use igt_spinner functions and structures instead of those internally declared for the same reason. v2: - Refactor hangcheck selftest to use igt_spinner. Signed-off-by: Jonathan Cavitt <jonathan.cavitt@xxxxxxxxx> CC: Chris Wilson <chris.p.wilson@xxxxxxxxxxxxxxx> CC: Saurabhg Gupta <saurabhg.gupta@xxxxxxxxx> CC: Andi Shyti <andi.shyti@xxxxxxxxx> CC: Stuart Summers <stuart.summers@xxxxxxxxx> CC: Nirmoy Das <nirmoy.das@xxxxxxxxx> CC: Vinay Belgaumkar <vinay.belgaumkar@xxxxxxxxx> CC: Michal Winiarski <michal.winiarski@xxxxxxxxx> CC: Matt Roper <matthew.d.roper@xxxxxxxxx> Jonathan Cavitt (2): drm/i915/selftests: Align igt_spinner_create_request with hangcheck drm/i915/gt: Refactor hangcheck selftest to use igt_spinner drivers/gpu/drm/i915/gt/selftest_hangcheck.c | 457 ++++++------------- drivers/gpu/drm/i915/selftests/igt_spinner.c | 18 +- drivers/gpu/drm/i915/selftests/igt_spinner.h | 9 + 3 files changed, 158 insertions(+), 326 deletions(-) -- 2.25.1