]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: clear the gpu reloc batch
authorMatthew Auld <matthew.auld@intel.com>
Thu, 24 Dec 2020 15:13:58 +0000 (15:13 +0000)
committerJani Nikula <jani.nikula@intel.com>
Tue, 5 Jan 2021 08:25:02 +0000 (10:25 +0200)
commit83fa86232a088afdb4fb38e6cab7cdcdc3bae707
tree89ec4a5d0dbb722916f706b913029efc672ef973
parent7b61664c97b422d1d7f8b6bb79bdf0471ff4911e
drm/i915: clear the gpu reloc batch

The reloc batch is short lived but can exist in the user visible ppGTT,
and since it's backed by an internal object, which lacks page clearing,
we should take care to clear it upfront.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201224151358.401345-2-matthew.auld@intel.com
Cc: stable@vger.kernel.org
(cherry picked from commit 26ebc511e799f621357982ccc37a7987a56a00f4)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c