[Intel-gfx] [PATCH 1/1] drm/i915/gt: Remove interruptible flag from wait_for_space

Jonathan Cavitt jonathan.cavitt at intel.com
Fri Aug 25 22:01:13 UTC 2023


When performing the i915_request_wait in wait_for_space, which itself is
called by intel_ring_begin, we do not need to apply the
I915_TASK_INTERRUPTIBLE flag.  So, remove it.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
---
 drivers/gpu/drm/i915/gt/intel_ring.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_ring.c b/drivers/gpu/drm/i915/gt/intel_ring.c
index 59da4b7bd262..73deac91a037 100644
--- a/drivers/gpu/drm/i915/gt/intel_ring.c
+++ b/drivers/gpu/drm/i915/gt/intel_ring.c
@@ -214,9 +214,7 @@ wait_for_space(struct intel_ring *ring,
 	if (GEM_WARN_ON(&target->link == &tl->requests))
 		return -ENOSPC;
 
-	timeout = i915_request_wait(target,
-				    I915_WAIT_INTERRUPTIBLE,
-				    MAX_SCHEDULE_TIMEOUT);
+	timeout = i915_request_wait(target, 0, MAX_SCHEDULE_TIMEOUT);
 	if (timeout < 0)
 		return timeout;
 
-- 
2.25.1



More information about the Intel-gfx mailing list