[PATCH 3/5] hmm

Chris Wilson chris at chris-wilson.co.uk
Sat Feb 6 20:25:33 UTC 2021


---
 drivers/gpu/drm/i915/i915_request.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_request.h b/drivers/gpu/drm/i915/i915_request.h
index e5ac9ad9683c..7e722ccc9c4b 100644
--- a/drivers/gpu/drm/i915/i915_request.h
+++ b/drivers/gpu/drm/i915/i915_request.h
@@ -631,16 +631,10 @@ static inline bool i915_request_use_scheduler(const struct i915_request *rq)
 
 static inline bool i915_request_is_executing(const struct i915_request *rq)
 {
-	struct i915_sched *se;
-
 	/* Is the request presently on the HW execution queue? */
 	if (i915_request_is_active(rq))
 		return true;
 
-	se = i915_request_get_scheduler(rq);
-	if (!se->is_executing)
-		return false;
-
 	/*
 	 * However, if it is not presently on the HW execution queue, it
 	 * may have been recently removed from the queue, but is in fact
@@ -648,7 +642,7 @@ static inline bool i915_request_is_executing(const struct i915_request *rq)
 	 * need to double check with the backend for it to query the HW
 	 * to see if the request is still executing.
 	 */
-	return se->is_executing(se, rq);
+	return intel_context_inflight(rq->context);
 }
 
 #endif /* I915_REQUEST_H */
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list