drm/i915/selftests: Align igt_spinner_create_request with hangcheck
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Tue, 15 Aug 2023 16:53:44 +0000 (09:53 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 16 Aug 2023 20:57:17 +0000 (13:57 -0700)
Align igt_spinner_create_request with the hang_create_request
implementation in selftest_hangcheck.c.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230815165345.964068-2-jonathan.cavitt@intel.com
drivers/gpu/drm/i915/selftests/igt_spinner.c

index 0f064930ef116428100b2faa6455f2d29ffa9d51..8c3e1f20e5a159b57be0d05bfd4f893c99123e92 100644 (file)
@@ -179,6 +179,9 @@ igt_spinner_create_request(struct igt_spinner *spin,
 
        *batch++ = arbitration_command;
 
+       memset32(batch, MI_NOOP, 128);
+       batch += 128;
+
        if (GRAPHICS_VER(rq->i915) >= 8)
                *batch++ = MI_BATCH_BUFFER_START | BIT(8) | 1;
        else if (IS_HASWELL(rq->i915))