#include <drm/drm_cache.h>
#include "gem/i915_gem_internal.h"
#include "i915_active.h"
#include "i915_drv.h"
#include "i915_syncmap.h"
#include "intel_gt.h"
#include "intel_ring.h"
#include "intel_timeline.h"
#define TIMELINE_SEQNO_BYTES …
static struct i915_vma *hwsp_alloc(struct intel_gt *gt)
{ … }
static void __timeline_retire(struct i915_active *active)
{ … }
static int __timeline_active(struct i915_active *active)
{ … }
I915_SELFTEST_EXPORT int
intel_timeline_pin_map(struct intel_timeline *timeline)
{ … }
static int intel_timeline_init(struct intel_timeline *timeline,
struct intel_gt *gt,
struct i915_vma *hwsp,
unsigned int offset)
{ … }
void intel_gt_init_timelines(struct intel_gt *gt)
{ … }
static void intel_timeline_fini(struct rcu_head *rcu)
{ … }
struct intel_timeline *
__intel_timeline_create(struct intel_gt *gt,
struct i915_vma *global_hwsp,
unsigned int offset)
{ … }
struct intel_timeline *
intel_timeline_create_from_engine(struct intel_engine_cs *engine,
unsigned int offset)
{ … }
void __intel_timeline_pin(struct intel_timeline *tl)
{ … }
int intel_timeline_pin(struct intel_timeline *tl, struct i915_gem_ww_ctx *ww)
{ … }
void intel_timeline_reset_seqno(const struct intel_timeline *tl)
{ … }
void intel_timeline_enter(struct intel_timeline *tl)
{ … }
void intel_timeline_exit(struct intel_timeline *tl)
{ … }
static u32 timeline_advance(struct intel_timeline *tl)
{ … }
static noinline int
__intel_timeline_get_seqno(struct intel_timeline *tl,
u32 *seqno)
{ … }
int intel_timeline_get_seqno(struct intel_timeline *tl,
struct i915_request *rq,
u32 *seqno)
{ … }
int intel_timeline_read_hwsp(struct i915_request *from,
struct i915_request *to,
u32 *hwsp)
{ … }
void intel_timeline_unpin(struct intel_timeline *tl)
{ … }
void __intel_timeline_free(struct kref *kref)
{ … }
void intel_gt_fini_timelines(struct intel_gt *gt)
{ … }
void intel_gt_show_timelines(struct intel_gt *gt,
struct drm_printer *m,
void (*show_request)(struct drm_printer *m,
const struct i915_request *rq,
const char *prefix,
int indent))
{ … }
#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST)
#include "gt/selftests/mock_timeline.c"
#include "gt/selftest_timeline.c"
#endif