drm/i915: clear the gpu reloc batch
authorMatthew Auld <matthew.auld@intel.com>
Thu, 24 Dec 2020 15:13:58 +0000 (15:13 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Dec 2020 15:25:41 +0000 (15:25 +0000)
commit26ebc511e799f621357982ccc37a7987a56a00f4
treebc6f6edcee3d6840c6f810aec9a346e6b34e7957
parenteeb52ee6c4a429ec301faf1dc48988744960786e
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
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c