]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Prefer memset64() when filling the iomap
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Mar 2018 12:35:28 +0000 (12:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Mar 2018 14:42:40 +0000 (14:42 +0000)
commit46b863325c2f58b564463c4d6e66ee0d4f2f3244
treec980db3575bcd0f28e7c31587f8f610f7a410e02
parentfeb06c151fade9ecaa3dd410d792cce26e8b10de
drm/i915: Prefer memset64() when filling the iomap

As the ringbuffer may exist inside stolen memory, our access to it may
be via the GTT iomap. This implies we may only have WC access for which
the conventional memset() substitution of rep stos performs very badly,
so switch to the rep mov[dq] variants when available.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180319123528.28249-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c