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.cav...@intel.com> CC: Chris Wilson <chris.p.wil...@linux.intel.com> CC: Saurabhg Gupta <saurabhg.gu...@intel.com> CC: Andi Shyti <andi.sh...@intel.com> CC: Stuart Summers <stuart.summ...@intel.com> CC: Nirmoy Das <nirmoy....@intel.com> CC: Vinay Belgaumkar <vinay.belgaum...@intel.com> CC: Michal Winiarski <michal.winiar...@intel.com> CC: Matt Roper <matthew.d.ro...@intel.com> 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