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 <[email protected]> CC: Chris Wilson <[email protected]> CC: Saurabhg Gupta <[email protected]> CC: Andi Shyti <[email protected]> CC: Stuart Summers <[email protected]> CC: Nirmoy Das <[email protected]> CC: Vinay Belgaumkar <[email protected]> CC: Michal Winiarski <[email protected]> CC: Matt Roper <[email protected]> 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
