]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't clflush before release phys object
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Dec 2016 14:57:57 +0000 (14:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Dec 2016 16:07:20 +0000 (16:07 +0000)
commit37385ef95912fe6ee5fadf38281e93b7aed19be8
treee00824a8d7514fad477cdf1eef3b5b901ef2a49f
parente859497e58327253c6228b7f3118f630a0b8d89a
drm/i915: Don't clflush before release phys object

When we teardown the backing storage for the phys object, we copy from
the coherent contiguous block back to the shmemfs object, clflushing as
we go. Trying to clflush the invalid sg beforehand just oops and would
be redundant (due to it already being coherent, and clflushed
afterwards).

Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: <drm-intel-fixes@lists.freedesktop.org>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161223145804.6605-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c