drm/i915/gt: Do not consider preemption during execlists_dequeue for gen8
authorjsg <jsg@openbsd.org>
Mon, 5 Aug 2024 02:40:00 +0000 (02:40 +0000)
committerjsg <jsg@openbsd.org>
Mon, 5 Aug 2024 02:40:00 +0000 (02:40 +0000)
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

index 8bb1609..6cee469 100644 (file)
@@ -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)