drm/i915: Assert that the request->tail fits within the ring
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Mar 2017 13:00:08 +0000 (14:00 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Mar 2017 14:03:21 +0000 (15:03 +0100)
commita91fdf1293044535a13fb9a434101f363dbe7e3c
treeb1bea71298c2cafada228aeefd912c9e44c2ad77
parent450362d3fe866b14304f309b5fffba0c33fbfbc3
drm/i915: Assert that the request->tail fits within the ring

In addition to being qword-aligned, the RING_TAIL offset must be within
the ring!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170327130009.4678-2-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c