mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
058179e72e
Replace sampling the engine state every so often with a periodic heartbeat request to measure the health of an engine. This is coupled with the forced-preemption to allow long running requests to survive so long as they do not block other users. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Jon Bloomfield <jon.bloomfield@intel.com> Reviewed-by: Jon Bloomfield <jon.bloomfield@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191023133108.21401-5-chris@chris-wilson.co.uk
23 lines
632 B
C
23 lines
632 B
C
/*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* Copyright © 2019 Intel Corporation
|
|
*/
|
|
|
|
#ifndef INTEL_ENGINE_HEARTBEAT_H
|
|
#define INTEL_ENGINE_HEARTBEAT_H
|
|
|
|
struct intel_engine_cs;
|
|
|
|
void intel_engine_init_heartbeat(struct intel_engine_cs *engine);
|
|
|
|
int intel_engine_set_heartbeat(struct intel_engine_cs *engine,
|
|
unsigned long delay);
|
|
|
|
void intel_engine_park_heartbeat(struct intel_engine_cs *engine);
|
|
void intel_engine_unpark_heartbeat(struct intel_engine_cs *engine);
|
|
|
|
int intel_engine_pulse(struct intel_engine_cs *engine);
|
|
int intel_engine_flush_barriers(struct intel_engine_cs *engine);
|
|
|
|
#endif /* INTEL_ENGINE_HEARTBEAT_H */
|