]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use indirect ctx bb to mend CMD_BUF_CCTL
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 24 Apr 2020 23:06:32 +0000 (02:06 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 25 Apr 2020 18:08:56 +0000 (19:08 +0100)
commit0f0105b98fe2e05862c62ea02fe7643b0e902982
treeb689867b51df7b6ee1ad33156de180eb433fa99b
parent98c9767946aa4215e9a5036b76379efb79b38953
drm/i915: Use indirect ctx bb to mend CMD_BUF_CCTL

Use indirect ctx bb to load cmd buffer control value
from context image to avoid corruption.

v2: add to lrc layout (Chris)
v3: end to a cacheline (Chris)
v4: add to lrc fixed (Chris)
v5: value in offset+1

Testcase: igt/i915_selftest/gt_lrc
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Acked-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/20200424230632.30333-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/selftest_lrc.c
drivers/gpu/drm/i915/i915_reg.h