From 4d9ba5d1336683affec7528d9a2453e44ac10dd5 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 5 Aug 2024 02:40:00 +0000 Subject: [PATCH] drm/i915/gt: Do not consider preemption during execlists_dequeue for gen8 From Nitin Gote 05c0fb20ca3e000a7e966584845731ba4fc950da in linux-6.6.y/6.6.44 65564157ae64cec0f527583f96e32f484f730f92 in mainline linux --- sys/dev/pci/drm/i915/gt/intel_execlists_submission.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c b/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c index 8bb1609b1ff..6cee4690b6f 100644 --- a/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c +++ b/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c @@ -3320,11 +3320,7 @@ static void remove_from_engine(struct i915_request *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; + return GRAPHICS_VER(engine->i915) > 8; } static void kick_execlists(const struct i915_request *rq, int prio) -- 2.20.1