mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 02:15:23 +07:00
8d2f6e2f27
Pull out spinner code to a standalone file to enable it to be shortly used by other and new test cases. Plain code movement - no functional changes. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20181130080254.15383-1-tvrtko.ursulin@linux.intel.com
38 lines
914 B
C
38 lines
914 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2018 Intel Corporation
|
|
*/
|
|
|
|
#ifndef __I915_SELFTESTS_IGT_SPINNER_H__
|
|
#define __I915_SELFTESTS_IGT_SPINNER_H__
|
|
|
|
#include "../i915_selftest.h"
|
|
|
|
#include "../i915_drv.h"
|
|
#include "../i915_request.h"
|
|
#include "../intel_ringbuffer.h"
|
|
#include "../i915_gem_context.h"
|
|
|
|
struct igt_spinner {
|
|
struct drm_i915_private *i915;
|
|
struct drm_i915_gem_object *hws;
|
|
struct drm_i915_gem_object *obj;
|
|
u32 *batch;
|
|
void *seqno;
|
|
};
|
|
|
|
int igt_spinner_init(struct igt_spinner *spin, struct drm_i915_private *i915);
|
|
void igt_spinner_fini(struct igt_spinner *spin);
|
|
|
|
struct i915_request *
|
|
igt_spinner_create_request(struct igt_spinner *spin,
|
|
struct i915_gem_context *ctx,
|
|
struct intel_engine_cs *engine,
|
|
u32 arbitration_command);
|
|
void igt_spinner_end(struct igt_spinner *spin);
|
|
|
|
bool igt_wait_for_spinner(struct igt_spinner *spin, struct i915_request *rq);
|
|
|
|
#endif
|