]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Pull seqno started checks together
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Aug 2018 11:26:05 +0000 (12:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Aug 2018 11:43:00 +0000 (12:43 +0100)
commit97f0615800041b145b36e00df65526e0fa6927bd
treed7b1df426355160e44b74588801b31661e1a8b6c
parentcf1f697acb04d2e06c117436cc55e52760f1ea7c
drm/i915: Pull seqno started checks together

We have a few instances of checking seqno-1 to see if the HW has started
the request. Pull those together under a helper.

v2: Pull the !seqno assertion higher, as given seqno==1 we may indeed
check to see if we have started using seqno==0.

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180806112605.20725-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c
drivers/gpu/drm/i915/i915_request.h
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_hangcheck.c
drivers/gpu/drm/i915/intel_ringbuffer.h