Skip to content

Commit 876d98e

Browse files
committed
Merge tag 'drm-intel-fixes-2021-07-15' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
Two regression fixes targeting stable: - Fix -EDEADLK handling regression (Ville) - Drop the page table optimisation (Matt) Signed-off-by: Dave Airlie <[email protected]> From: Rodrigo Vivi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents e1fc82a + 0abb33b commit 876d98e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,7 @@ static void __gen8_ppgtt_alloc(struct i915_address_space * const vm,
303303
__i915_gem_object_pin_pages(pt->base);
304304
i915_gem_object_make_unshrinkable(pt->base);
305305

306-
if (lvl ||
307-
gen8_pt_count(*start, end) < I915_PDES ||
308-
intel_vgpu_active(vm->i915))
309-
fill_px(pt, vm->scratch[lvl]->encode);
306+
fill_px(pt, vm->scratch[lvl]->encode);
310307

311308
spin_lock(&pd->lock);
312309
if (likely(!pd->entry[idx])) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static struct i915_fence_reg *fence_find(struct i915_ggtt *ggtt)
348348
if (intel_has_pending_fb_unpin(ggtt->vm.i915))
349349
return ERR_PTR(-EAGAIN);
350350

351-
return ERR_PTR(-EDEADLK);
351+
return ERR_PTR(-ENOBUFS);
352352
}
353353

354354
int __i915_vma_pin_fence(struct i915_vma *vma)

0 commit comments

Comments
 (0)