]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Assert breadcrumbs are correctly ordered in the signal handler
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 May 2019 15:22:14 +0000 (16:22 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 May 2019 10:59:27 +0000 (11:59 +0100)
commit106b5fe13490ab02d75c23526986345d74e7c5bd
treec236e1e6728ed0a2b182eb4407df3087d7d47bf8
parent79b73727f24721b889ae197158fc7b5f795b2e5e
drm/i915: Assert breadcrumbs are correctly ordered in the signal handler

Inside the signal handler, we expect the requests to be ordered by their
breadcrumb such that no later request may be complete if we find an
earlier incomplete. Add an assert to check that the next breadcrumb
should not be logically before the current.

v2: Move the overhanging line into its own function and reuse it after
doing the insertion.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190503152214.26517-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_breadcrumbs.c