Contributors: 15
Author Tokens Token Proportion Commits Commit Proportion
Michal Wajdeczko 67 26.38% 5 15.62%
Daniele Ceraolo Spurio 42 16.54% 4 12.50%
Matthew Brost 39 15.35% 4 12.50%
Sagar Arun Kamble 34 13.39% 2 6.25%
Chris Wilson 16 6.30% 4 12.50%
John Harrison 11 4.33% 2 6.25%
Umesh Nerlige Ramappa 9 3.54% 1 3.12%
Dave Gordon 8 3.15% 1 3.12%
Tvrtko A. Ursulin 6 2.36% 3 9.38%
Don Hiatt 5 1.97% 1 3.12%
Thomas Daniel 4 1.57% 1 3.12%
Alan Previn 4 1.57% 1 3.12%
Alex Dai 4 1.57% 1 3.12%
Michał Winiarski 3 1.18% 1 3.12%
Arkadiusz Hiler 2 0.79% 1 3.12%
Total 254 32


/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2014-2019 Intel Corporation
 */

#ifndef _INTEL_GUC_SUBMISSION_H_
#define _INTEL_GUC_SUBMISSION_H_

#include <linux/types.h>

#include "intel_guc.h"

struct drm_printer;
struct intel_engine_cs;

void intel_guc_submission_init_early(struct intel_guc *guc);
int intel_guc_submission_init(struct intel_guc *guc);
int intel_guc_submission_enable(struct intel_guc *guc);
void intel_guc_submission_disable(struct intel_guc *guc);
void intel_guc_submission_fini(struct intel_guc *guc);
int intel_guc_preempt_work_create(struct intel_guc *guc);
void intel_guc_preempt_work_destroy(struct intel_guc *guc);
int intel_guc_submission_setup(struct intel_engine_cs *engine);
void intel_guc_submission_print_info(struct intel_guc *guc,
				     struct drm_printer *p);
void intel_guc_submission_print_context_info(struct intel_guc *guc,
					     struct drm_printer *p);
void intel_guc_dump_active_requests(struct intel_engine_cs *engine,
				    struct i915_request *hung_rq,
				    struct drm_printer *m);
void intel_guc_busyness_park(struct intel_gt *gt);
void intel_guc_busyness_unpark(struct intel_gt *gt);

bool intel_guc_virtual_engine_has_heartbeat(const struct intel_engine_cs *ve);

int intel_guc_wait_for_pending_msg(struct intel_guc *guc,
				   atomic_t *wait_var,
				   bool interruptible,
				   long timeout);

void intel_guc_submission_flush_work(struct intel_guc *guc);

static inline bool intel_guc_submission_is_supported(struct intel_guc *guc)
{
	return guc->submission_supported;
}

static inline bool intel_guc_submission_is_wanted(struct intel_guc *guc)
{
	return guc->submission_selected;
}

static inline bool intel_guc_submission_is_used(struct intel_guc *guc)
{
	return intel_guc_is_used(guc) && intel_guc_submission_is_wanted(guc);
}

#endif