drm/i915: Assert that the request->tail is always qword aligned
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Feb 2017 16:38:33 +0000 (16:38 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Feb 2017 14:32:25 +0000 (14:32 +0000)
commit944a36d472be642d0d082d2480fe2b40046602a9
tree57a2b7a932fb454c5d230bb75e7921c8da28ab32
parent8d8c386c38692c1183b2c0ecffb84de91b8b32b0
drm/i915: Assert that the request->tail is always qword aligned

The hardware requires that the tail pointer only advance in qword units,
so assert that the value we write is aligned to qwords, and similarly
enforce this restriction onto the request->tail.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170217163833.731-1-chris@chris-wilson.co.uk
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c