Skip to content

Commit a37cd98

Browse files
committed
Merge tag 'drm-intel-next-fixes-2024-07-25' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-next
- Do not consider preemption during execlists_dequeue for gen8 [gt] (Nitin Gote) - Allow NULL memory region (Jonathan Cavitt) Signed-off-by: Dave Airlie <[email protected]> From: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/ZqICQzyzm/6hDWy4@linux
2 parents 627a24f + 26720dd commit a37cd98

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

drivers/gpu/drm/i915/gt/intel_execlists_submission.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,11 +3315,7 @@ static void remove_from_engine(struct i915_request *rq)
33153315

33163316
static bool can_preempt(struct intel_engine_cs *engine)
33173317
{
3318-
if (GRAPHICS_VER(engine->i915) > 8)
3319-
return true;
3320-
3321-
/* GPGPU on bdw requires extra w/a; not implemented */
3322-
return engine->class != RENDER_CLASS;
3318+
return GRAPHICS_VER(engine->i915) > 8;
33233319
}
33243320

33253321
static void kick_execlists(const struct i915_request *rq, int prio)

drivers/gpu/drm/i915/intel_memory_region.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,10 @@ int intel_memory_regions_hw_probe(struct drm_i915_private *i915)
368368
goto out_cleanup;
369369
}
370370

371-
mem->id = i;
372-
i915->mm.regions[i] = mem;
371+
if (mem) { /* Skip on non-fatal errors */
372+
mem->id = i;
373+
i915->mm.regions[i] = mem;
374+
}
373375
}
374376

375377
for (i = 0; i < ARRAY_SIZE(i915->mm.regions); i++) {

0 commit comments

Comments
 (0)