drm/i915: Refactor tests for validity of RING_TAIL
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Mar 2017 13:14:12 +0000 (14:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Mar 2017 14:03:53 +0000 (15:03 +0100)
commited1501d45136da125a89b1a5728a783564e6491f
tree4d74e719a8f9103c73c27fafcc197dd7ceb6f0f1
parenta91fdf1293044535a13fb9a434101f363dbe7e3c
drm/i915: Refactor tests for validity of RING_TAIL

Whilst I like having the assertions clearly visible in the code, they
are quite repetitious! As we find new limits we want to incorporate into
the set of assertions, it make sense to refactor them to a common
routine.

v2: Add a guc holdout.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170327131412.20293-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h