drm/i915/gt: Clear LRC image inline
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Jan 2020 13:17:04 +0000 (13:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Jan 2020 11:26:01 +0000 (11:26 +0000)
commitd1813ca2bbf1e68ad0280a6b76abeb2115c4740f
tree655bd606a2a17b27e5d318581d778b02d739c433
parent6a505e644c44d3f817cd3ceaafdc501181a5e70b
drm/i915/gt: Clear LRC image inline

When creating the initial LRC image, we also want to clear the MI_NOOPs
and register values. Rather than use a blanket memset beforehand, apply
the clears inline, close the context image and force inhibition of the
uninitialised reminder.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200102131707.1463945-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/selftest_lrc.c