diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-26 07:55:21 +0100 |
---|---|---|
committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2019-11-27 09:12:19 +0100 |
commit | 3cc44feb9861d2f5267af9b962ae92c5ea1b48fd (patch) | |
tree | c99cc8acadf48994107b7c90034eecb2c3ae39c8 /drivers/gpu/drm/i915/selftests | |
parent | drm/i915: Default to a more lenient forced preemption timeout (diff) | |
download | linux-3cc44feb9861d2f5267af9b962ae92c5ea1b48fd.tar.xz linux-3cc44feb9861d2f5267af9b962ae92c5ea1b48fd.zip |
drm/i915: Reduce nested prepare_remote_context() to a trylock
On context retiring, we may invoke the kernel_context to unpin this
context. Elsewhere, we may use the kernel_context to modify this
context. This currently leads to an AB-BA lock inversion, so we need to
back-off from the contended lock, and repeat.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111732
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: a9877da2d629 ("drm/i915/oa: Reconfigure contexts on the fly")
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191126065521.2331017-1-chris@chris-wilson.co.uk
(cherry picked from commit 58b4c1a07ada7fb91ea757bdb9bd47df02207357)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/selftests')
0 files changed, 0 insertions, 0 deletions