[PATCH] drm/i915: Disable pre-emption for gen8
Nitin Gote
nitin.r.gote at intel.com
Tue Jul 2 14:19:17 UTC 2024
We're seeing an GPU HANG issue on a CHV platform, which was caused by
bac24f59 - drm/i915/execlists: Enable coarse preemption boundaries for gen8.
So, to resolve this GPU HANG issue, disable pre-emption for gen8 platforms
v2: Update to generic condition.
v3: Fixes implicit declaration of function ‘can_preempt’
Signed-off-by: Nitin Gote <nitin.r.gote at intel.com>
---
.../drm/i915/gt/intel_execlists_submission.c | 24 ++++++++++++-------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
index 21829439e686..29b90fbe998f 100644
--- a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
+++ b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
@@ -294,11 +294,26 @@ static int virtual_prio(const struct intel_engine_execlists *el)
return rb ? rb_entry(rb, struct ve_node, rb)->prio : INT_MIN;
}
+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;
+}
+
static bool need_preempt(const struct intel_engine_cs *engine,
const struct i915_request *rq)
{
int last_prio;
+ if ((GRAPHICS_VER(engine->i915) <= 8) && can_preempt(engine))
+ return false;
+
if (!intel_engine_has_semaphores(engine))
return false;
@@ -3313,15 +3328,6 @@ static void remove_from_engine(struct i915_request *rq)
i915_request_notify_execute_cb_imm(rq);
}
-static bool can_preempt(struct intel_engine_cs *engine)
-{
- if (GRAPHICS_VER(engine->i915) > 8)
- return true;
-
- /* GPGPU on bdw requires extra w/a; not implemented */
- return engine->class != RENDER_CLASS;
-}
-
static void kick_execlists(const struct i915_request *rq, int prio)
{
struct intel_engine_cs *engine = rq->engine;
--
2.25.1
More information about the Intel-gfx-trybot
mailing list