Skip to content

Commit 571c608

Browse files
committed
drm/i915: kill set_need_resched
This is just a remnant from the old days when our reset handling was horribly racy, suffered from terribly locking issues and often happily live-locked. Those days are now gone so we can drop the hacks and just rip the reschedule-point out. Reported-by: Peter Zijlstra <peterz@infradead.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 0d97174 commit 571c608

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

drivers/gpu/drm/i915/i915_gem.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,14 +1390,11 @@ int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
13901390
if (i915_terminally_wedged(&dev_priv->gpu_error))
13911391
return VM_FAULT_SIGBUS;
13921392
case -EAGAIN:
1393-
/* Give the error handler a chance to run and move the
1394-
* objects off the GPU active list. Next time we service the
1395-
* fault, we should be able to transition the page into the
1396-
* GTT without touching the GPU (and so avoid further
1397-
* EIO/EGAIN). If the GPU is wedged, then there is no issue
1398-
* with coherency, just lost writes.
1393+
/*
1394+
* EAGAIN means the gpu is hung and we'll wait for the error
1395+
* handler to reset everything when re-faulting in
1396+
* i915_mutex_lock_interruptible.
13991397
*/
1400-
set_need_resched();
14011398
case 0:
14021399
case -ERESTARTSYS:
14031400
case -EINTR:

0 commit comments

Comments
 (0)