mbox series

[0/2] drm/i915/selftests: Align igt_spinner_create_request with hangcheck

Message ID 20230815165345.964068-1-jonathan.cavitt@intel.com (mailing list archive)
Headers show
Series drm/i915/selftests: Align igt_spinner_create_request with hangcheck | expand

Message

Cavitt, Jonathan Aug. 15, 2023, 4:53 p.m. UTC
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@intel.com>
CC: Chris Wilson <chris.p.wilson@linux.intel.com>
CC: Saurabhg Gupta <saurabhg.gupta@intel.com>
CC: Andi Shyti <andi.shyti@intel.com>
CC: Stuart Summers <stuart.summers@intel.com>
CC: Nirmoy Das <nirmoy.das@intel.com>
CC: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
CC: Michal Winiarski <michal.winiarski@intel.com>
CC: Matt Roper <matthew.d.roper@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(-)