drm/i915/guc: don't hardcode BCS0 in guc_hang selftest
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 2 Nov 2022 21:43:10 +0000 (14:43 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 7 Nov 2022 19:28:29 +0000 (11:28 -0800)
commit8b693ea26c209757a4c96cf4463cc597a3625e19
treed2d5fbbfd8aa9a744e2b001d3cc7f384ae23708f
parent194babe26bdcf6b9dec98907dc13f319baf01e43
drm/i915/guc: don't hardcode BCS0 in guc_hang selftest

On MTL there are no BCS engines on the media GT, so we can't always use
BCS0 in the test. There is no actual reason to use a BCS engine over an
engine of a different class, so switch to using any available engine.

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>
Acked-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221102214310.2829310-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/selftest_guc_hangcheck.c