mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 14:55:48 +07:00
112ed2d31a
Start partitioning off the code that talks to the hardware (GT) from the uapi layers and move the device facing code under gt/ One casualty is s/intel_ringbuffer.h/intel_engine.h/ with the plan to subdivide that header and body further (and split out the submission code from the ringbuffer and logical context handling). This patch aims to be simple motion so git can fixup inflight patches with little mess. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190424174839.7141-1-chris@chris-wilson.co.uk
39 lines
911 B
C
39 lines
911 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 "gt/intel_engine.h"
|
|
|
|
#include "../i915_drv.h"
|
|
#include "../i915_request.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
|