[PATCH] drm/i915: Disable pre-emption for gen8

Nitin Gote nitin.r.gote at intel.com
Mon Jul 1 14:22:34 UTC 2024


This patch aims to disable pre-emption for gen8 platforms

Signed-off-by: Nitin Gote <nitin.r.gote at intel.com>
---
 drivers/gpu/drm/i915/gt/intel_execlists_submission.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
index 21829439e686..e09351b289ee 100644
--- a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
+++ b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
@@ -299,6 +299,9 @@ static bool need_preempt(const struct intel_engine_cs *engine,
 {
 	int last_prio;
 
+	if (IS_CHERRYVIEW(engine->i915) || IS_BROADWELL(engine->i915))
+		return false;
+
 	if (!intel_engine_has_semaphores(engine))
 		return false;
 
@@ -3318,6 +3321,9 @@ static bool can_preempt(struct intel_engine_cs *engine)
 	if (GRAPHICS_VER(engine->i915) > 8)
 		return true;
 
+	if (IS_CHERRYVIEW(engine->i915) || IS_BROADWELL(engine->i915))
+		return false;
+
 	/* GPGPU on bdw requires extra w/a; not implemented */
 	return engine->class != RENDER_CLASS;
 }
-- 
2.25.1



More information about the Intel-gfx-trybot mailing list