]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Skip poisoning SET_PREDICATE_RESULT on dg2
authorChris Wilson <chris.p.wilson@intel.com>
Mon, 25 Apr 2022 15:23:16 +0000 (20:53 +0530)
committerRamalingam C <ramalingam.c@intel.com>
Mon, 2 May 2022 09:48:08 +0000 (15:18 +0530)
commit6d754171d7893683b1f63f2bb6c814cf1f43421b
tree8a3bc599ee250de52c4d632f0d4d625201f82264
parent736377a201cd00832c247d80f23950d3457909cf
drm/i915/selftests: Skip poisoning SET_PREDICATE_RESULT on dg2

When predication is enabled all commands baring a few (such as MI_BB_END)
are nop'ed. If we accidentally enable predication while poisoning the
context, not only is the rest of the poisoning skipped (thus disabling
the test), but the closing instructions of the poison request are
nop'ed. Not only do we then not signal the waiting context, but we even
prevent re-enabling arbitration and the GPU will not perform a context
switch at the end of the request.

Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Suggested-by: CQ Tang <cq.tang@intel.com>
Signed-off-by: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220425152317.4275-3-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/intel_engine_regs.h
drivers/gpu/drm/i915/gt/selftest_lrc.c