[Intel-gfx] [PATCH 11/23] drm/i915/execlists: Reset queue_priority on cancellation
Chris Wilson
chris at chris-wilson.co.uk
Thu Aug 16 21:07:30 UTC 2018
If we have an available execlists port, the queue_priority should be
INT_MIN to allow immediate direct submission. As we clear the ports in
execlists_cancel_port_requests(), we should then reset queue_priority to
show the available space.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/intel_lrc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 3b5f7bc83a34..32eab1c97622 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -795,6 +795,7 @@ execlists_cancel_port_requests(struct intel_engine_execlists * const execlists)
}
execlists_clear_all_active(execlists);
+ execlists->queue_priority = INT_MIN;
}
static void reset_csb_pointers(struct intel_engine_execlists *execlists)
--
2.18.0
More information about the Intel-gfx
mailing list