drm/i915: Move engine->schedule to i915_sched_engine
The schedule function should be in the schedule object. v3: (Jason Ekstrand) Add kernel doc 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-6-matthew.brost@intel.com
This commit is contained in:
committed by
Matt Roper
parent
349a2bc5aa
commit
3f623e06cd
@@ -1343,7 +1343,7 @@ __i915_request_await_execution(struct i915_request *to,
|
||||
}
|
||||
|
||||
/* Couple the dependency tree for PI on this exposed to->fence */
|
||||
if (to->engine->schedule) {
|
||||
if (to->engine->sched_engine->schedule) {
|
||||
err = i915_sched_node_add_dependency(&to->sched,
|
||||
&from->sched,
|
||||
I915_DEPENDENCY_WEAK);
|
||||
@@ -1484,7 +1484,7 @@ i915_request_await_request(struct i915_request *to, struct i915_request *from)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (to->engine->schedule) {
|
||||
if (to->engine->sched_engine->schedule) {
|
||||
ret = i915_sched_node_add_dependency(&to->sched,
|
||||
&from->sched,
|
||||
I915_DEPENDENCY_EXTERNAL);
|
||||
@@ -1671,7 +1671,7 @@ __i915_request_add_to_timeline(struct i915_request *rq)
|
||||
__i915_sw_fence_await_dma_fence(&rq->submit,
|
||||
&prev->fence,
|
||||
&rq->dmaq);
|
||||
if (rq->engine->schedule)
|
||||
if (rq->engine->sched_engine->schedule)
|
||||
__i915_sched_node_add_dependency(&rq->sched,
|
||||
&prev->sched,
|
||||
&rq->dep,
|
||||
@@ -1743,8 +1743,8 @@ void __i915_request_queue(struct i915_request *rq,
|
||||
* decide whether to preempt the entire chain so that it is ready to
|
||||
* run at the earliest possible convenience.
|
||||
*/
|
||||
if (attr && rq->engine->schedule)
|
||||
rq->engine->schedule(rq, attr);
|
||||
if (attr && rq->engine->sched_engine->schedule)
|
||||
rq->engine->sched_engine->schedule(rq, attr);
|
||||
|
||||
local_bh_disable();
|
||||
__i915_request_queue_bh(rq);
|
||||
|
||||
Reference in New Issue
Block a user