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

The shadow batch is an internal object, which doesn't have any page
clearing, and since the batch_len can be smaller than the object, we
should take care to clear it.

Testcase: igt/gen9_exec_parse/shadow-peek
Fixes: 4e4b99951391 ("drm/i915: Support ro ppgtt mapped cmdparser shadow buffers")
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-1-matthew.auld@intel.com
Cc: stable@vger.kernel.org
(cherry picked from commit eeb52ee6c4a429ec301faf1dc48988744960786e)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_cmd_parser.c