]> 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)
commit01efd35d36353e7b2271602568e075d6a611b525
treecc324b13ef70a65467b1cf2e4b3fa6166f2a0263
parentf877a60988671111ffb849cb8234ff7e13b27380
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