]> git.baikalelectronics.ru Git - kernel.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)
commit893480af929eb534473b9eeeffcf6c6ff04fff1d
treec980db3575bcd0f28e7c31587f8f610f7a410e02
parente423ebb239b661670bcd4098d66a29e4f7065eb8
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