aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_scheduler_types.h
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2021-06-17 18:06:36 -0700
committerMatt Roper <matthew.d.roper@intel.com>2021-06-18 15:14:09 -0700
commit71ed60112d5d3bc90df704c1db2b655a9f4a7b66 (patch)
treea731d2be22fb920918ae2812d089b46baa0956bf /drivers/gpu/drm/i915/i915_scheduler_types.h
parentdrm/i915: Move engine->schedule to i915_sched_engine (diff)
downloadlinux-dev-71ed60112d5d3bc90df704c1db2b655a9f4a7b66.tar.xz
linux-dev-71ed60112d5d3bc90df704c1db2b655a9f4a7b66.zip
drm/i915: Add kick_backend function to i915_sched_engine
Not all back-ends require a kick after a scheduling update, so make the kick a call-back function that the back-end can opt-in to. Also move the current kick function from the scheduler to the execlists file as it is specific to that back-end. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210618010638.98941-7-matthew.brost@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_scheduler_types.h')
-rw-r--r--drivers/gpu/drm/i915/i915_scheduler_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_scheduler_types.h b/drivers/gpu/drm/i915/i915_scheduler_types.h
index 0c1e417b0164..8bd07d0c27e1 100644
--- a/drivers/gpu/drm/i915/i915_scheduler_types.h
+++ b/drivers/gpu/drm/i915/i915_scheduler_types.h
@@ -154,6 +154,12 @@ struct i915_sched_engine {
bool no_priolist;
/**
+ * @kick_backend: kick backend after a request's priority has changed
+ */
+ void (*kick_backend)(const struct i915_request *rq,
+ int prio);
+
+ /**
* @schedule: adjust priority of request
*
* Call when the priority on a request has changed and it and its