]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Return early for await_start on same timeline
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Mar 2020 13:48:22 +0000 (13:48 +0000)
committerJani Nikula <jani.nikula@intel.com>
Wed, 11 Mar 2020 21:12:38 +0000 (23:12 +0200)
commitbc5238bf9e9c063d194adfe12813e718fb027acd
treef56cfd6886a1a23a3bc9715aae2a14ebb3d3b537
parent73b33ce850eb3eb8f88910ff486e617f80bb1fb3
drm/i915: Return early for await_start on same timeline

Requests within a timeline are ordered by that timeline, so awaiting for
the start of a request within the timeline is a no-op. This used to work
by falling out of the mutex_trylock() as the signaler and waiter had the
same timeline and not returning an error.

Fixes: 73beb8b8b551 ("drm/i915: Lock signaler timeline while navigating")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: <stable@vger.kernel.org> # v5.5+
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200305134822.2750496-1-chris@chris-wilson.co.uk
(cherry picked from commit ab7a69020fb5d5c7ba19fba60f62fd6f9ca9f779)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_request.c