drm/i915/dg2: wait for HuC load completion before running selftests
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 10 Apr 2024 20:15:05 +0000 (13:15 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 19 Apr 2024 15:02:37 +0000 (08:02 -0700)
commitc3015eb6e25a735ab77591573236169eab8e2e3a
treef6b4a6765d6428f9e6cfc94a5fa28078204c4e1b
parent2af231e1b8f374895d5d6db2517804c4848d3161
drm/i915/dg2: wait for HuC load completion before running selftests

On DG2, submissions to VCS engines tied to a gem context are blocked
until the HuC is loaded. Since some selftests do use a gem context,
wait for the HuC load to complete before running the tests to avoid
contamination.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10564
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240410201505.894594-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/selftests/i915_selftest.c