Lines Matching full:engine

19 	struct intel_engine_cs *engine;  in intel_selftest_find_any_engine()  local
22 for_each_engine(engine, gt, id) in intel_selftest_find_any_engine()
23 return engine; in intel_selftest_find_any_engine()
25 pr_err("No valid engine found!\n"); in intel_selftest_find_any_engine()
29 int intel_selftest_modify_policy(struct intel_engine_cs *engine, in intel_selftest_modify_policy() argument
35 saved->reset = engine->i915->params.reset; in intel_selftest_modify_policy()
36 saved->flags = engine->flags; in intel_selftest_modify_policy()
37 saved->timeslice = engine->props.timeslice_duration_ms; in intel_selftest_modify_policy()
38 saved->preempt_timeout = engine->props.preempt_timeout_ms; in intel_selftest_modify_policy()
44 * together with engine reset on pre-emption timeout. in intel_selftest_modify_policy()
50 engine->i915->params.reset = 2; in intel_selftest_modify_policy()
51 engine->flags |= I915_ENGINE_WANT_FORCED_PREEMPTION; in intel_selftest_modify_policy()
52 engine->props.timeslice_duration_ms = REDUCED_TIMESLICE; in intel_selftest_modify_policy()
53 engine->props.preempt_timeout_ms = REDUCED_PREEMPT; in intel_selftest_modify_policy()
57 engine->props.preempt_timeout_ms = 0; in intel_selftest_modify_policy()
65 if (!intel_engine_uses_guc(engine)) in intel_selftest_modify_policy()
68 err = intel_guc_global_policies_update(&engine->gt->uc.guc); in intel_selftest_modify_policy()
70 intel_selftest_restore_policy(engine, saved); in intel_selftest_modify_policy()
75 int intel_selftest_restore_policy(struct intel_engine_cs *engine, in intel_selftest_restore_policy() argument
79 engine->i915->params.reset = saved->reset; in intel_selftest_restore_policy()
80 engine->flags = saved->flags; in intel_selftest_restore_policy()
81 engine->props.timeslice_duration_ms = saved->timeslice; in intel_selftest_restore_policy()
82 engine->props.preempt_timeout_ms = saved->preempt_timeout; in intel_selftest_restore_policy()
84 if (!intel_engine_uses_guc(engine)) in intel_selftest_restore_policy()
87 return intel_guc_global_policies_update(&engine->gt->uc.guc); in intel_selftest_restore_policy()