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
Showing
- drivers/gpu/drm/i915/i915_request.c 4 additions, 5 deletionsdrivers/gpu/drm/i915/i915_request.c
- drivers/gpu/drm/i915/i915_request.h 25 additions, 14 deletionsdrivers/gpu/drm/i915/i915_request.h
- drivers/gpu/drm/i915/intel_breadcrumbs.c 2 additions, 4 deletionsdrivers/gpu/drm/i915/intel_breadcrumbs.c
- drivers/gpu/drm/i915/intel_engine_cs.c 1 addition, 2 deletionsdrivers/gpu/drm/i915/intel_engine_cs.c
- drivers/gpu/drm/i915/intel_hangcheck.c 1 addition, 1 deletiondrivers/gpu/drm/i915/intel_hangcheck.c
- drivers/gpu/drm/i915/intel_ringbuffer.h 27 additions, 6 deletionsdrivers/gpu/drm/i915/intel_ringbuffer.h
Loading
Please register or sign in to comment