drm/i915: Detect potential i915_reset_trylock() lockups
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Feb 2019 13:08:31 +0000 (13:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Feb 2019 16:41:35 +0000 (16:41 +0000)
commitb3b0391af2afa783841fb70eaa715b8a79a17d99
tree896b24392038da67e1e0529d2f9e4d67471b13fa
parentaeaaa55c7368ea0e7c195baa35dea37b806efb11
drm/i915: Detect potential i915_reset_trylock() lockups

Use lockdep to warn before we wait indefinitely in case we may be
waiting indefinitely.

Suggested-by: Mika Kuoppala <mika.kuoppala@intel.com>
References: 2caffbf11762 ("drm/i915: Revoke mmaps and prevent access to fence registers across reset")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190212130831.14425-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_reset.c