]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fe5914a494b223d24a5d5493dcf1e53d0b2c35b
treeb1bea71298c2cafada228aeefd912c9e44c2ad77
parentc703a15ae47c5a0e96982cc2841cf5e2dbe12666
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