]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Prevent using semaphores to chain up to external fences
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 May 2020 09:29:27 +0000 (10:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 May 2020 20:02:33 +0000 (21:02 +0100)
commitee493ff88a88c2e976280c12183a80ea7bc4324d
treecc324b13ef70a65467b1cf2e4b3fa6166f2a0263
parentbd71a390b14c5257e96f6e84162a171dbf5ef565
drm/i915: Prevent using semaphores to chain up to external fences

The downside of using semaphores is that we lose metadata passing
along the signaling chain. This is particularly nasty when we
need to pass along a fatal error such as EFAULT or EDEADLK. For
fatal errors we want to scrub the request before it is executed,
which means that we cannot preload the request onto HW and have
it wait upon a semaphore.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200508092933.738-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_scheduler_types.h