]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit39f94a89a90b3fa70e191716527c719e712e5076
treec236e1e6728ed0a2b182eb4407df3087d7d47bf8
parentc8a0e2aef61f1dade1ef5b3833e00e7ec6ad1c4c
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