]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69eb665208165b15a3021cd4b262431f91213462
tree655bd606a2a17b27e5d318581d778b02d739c433
parentf0a941737bafc2ab12ab98b56223678637ad6504
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