When GuC submission is enabled, the GuC controls engine resets. Rather than explicitly triggering a reset, the driver must submit a hanging context to GuC and wait for the reset to occur. Signed-off-by: Rahul Kumar Singh <rahul.kumar.singh@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210727002348.97202-28-matthew.brost@intel.com
28 lines
643 B
C
28 lines
643 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2021 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _INTEL_SELFTEST_SCHEDULER_HELPERS_H_
|
|
#define _INTEL_SELFTEST_SCHEDULER_HELPERS_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct i915_request;
|
|
struct intel_engine_cs;
|
|
|
|
struct intel_selftest_saved_policy {
|
|
u32 flags;
|
|
u32 reset;
|
|
u64 timeslice;
|
|
u64 preempt_timeout;
|
|
};
|
|
|
|
int intel_selftest_modify_policy(struct intel_engine_cs *engine,
|
|
struct intel_selftest_saved_policy *saved);
|
|
int intel_selftest_restore_policy(struct intel_engine_cs *engine,
|
|
struct intel_selftest_saved_policy *saved);
|
|
int intel_selftest_wait_for_rq(struct i915_request *rq);
|
|
|
|
#endif
|