drm/i915: Use memset64() to align the ring with MI_NOOP
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Apr 2018 12:37:18 +0000 (13:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Apr 2018 14:27:38 +0000 (15:27 +0100)
commit1f177a131b2c106dd15ab51dda5c50f80b70cc72
tree1ab57c0eb8497508b0b36c3c829ee0ef749d7511
parent14d4e522f0cbef2a10c3e5c243786a84d91cfb7b
drm/i915: Use memset64() to align the ring with MI_NOOP

When filling the ring to align the emit pointer to the next cacheline,
use memset64() rather than open-coding it. As we know that we always
have an even number of dwords, we can replace the dword loop with the
qword equivalent.

v2: s/0/MI_NOOP<<32 | MI_NOOP/

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180425123718.16366-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c