]> git.proxmox.com Git - mirror_ubuntu-disco-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)
committerJani Nikula <jani.nikula@intel.com>
Tue, 3 Jan 2017 09:41:38 +0000 (11:41 +0200)
commitc3f923b5545306570eff00d11ca051bd67699a23
tree7d17ae1272bc6c8fee2577c7c5d598b4d6e33c09
parent9169757ae67bc927750ae907624e65cc15b4fe5a
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
(cherry picked from commit e5facdf9644f4490520e0489a0252e8feaba3744)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem.c