2 * SPDX-License-Identifier: MIT
4 * Copyright © 2018 Intel Corporation
7 #ifndef __I915_SELFTESTS_IGT_SPINNER_H__
8 #define __I915_SELFTESTS_IGT_SPINNER_H__
10 #include "gem/i915_gem_context.h"
11 #include "gt/intel_engine.h"
14 #include "i915_request.h"
15 #include "i915_selftest.h"
21 struct drm_i915_gem_object
*hws
;
22 struct drm_i915_gem_object
*obj
;
27 int igt_spinner_init(struct igt_spinner
*spin
, struct intel_gt
*gt
);
28 void igt_spinner_fini(struct igt_spinner
*spin
);
31 igt_spinner_create_request(struct igt_spinner
*spin
,
32 struct intel_context
*ce
,
33 u32 arbitration_command
);
34 void igt_spinner_end(struct igt_spinner
*spin
);
36 bool igt_wait_for_spinner(struct igt_spinner
*spin
, struct i915_request
*rq
);