[PATCH 58/58] tiebreak
Chris Wilson
chris at chris-wilson.co.uk
Sun Jan 31 23:53:52 UTC 2021
---
drivers/gpu/drm/i915/i915_scheduler.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c
index c96f0b705bf3..9ae8a45e0bae 100644
--- a/drivers/gpu/drm/i915/i915_scheduler.c
+++ b/drivers/gpu/drm/i915/i915_scheduler.c
@@ -742,6 +742,9 @@ static u64 signal_deadline(const struct i915_request *rq)
if (deadline == I915_DEADLINE_NEVER) /* retired & reused */
continue;
+ if (s->context == rq->context) /* break ties in favour of hot */
+ deadline--;
+
deadline = i915_sched_to_ns(deadline);
if (p->flags & I915_DEPENDENCY_WEAK)
deadline -= prio_slice(prio);
--
2.20.1
More information about the Intel-gfx-trybot
mailing list