OSDN Git Service

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)
commitfcae496153a3ce719082746a01c81dd581e7a239
treecc324b13ef70a65467b1cf2e4b3fa6166f2a0263
parent3136deb7ba223f7ce3117cdfcd918a6f48e2d221
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