drm/i915/selftest: Cope with not having an RCS engine
authorJohn Harrison <John.C.Harrison@Intel.com>
Thu, 28 Jul 2022 02:42:23 +0000 (19:42 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 Jul 2022 17:35:57 +0000 (10:35 -0700)
commita96d8f052205d92c2fa934f72dd39229c8b75d79
treeba1986409480ff41b7c0636685687b425028ce7b
parent69142c0a5f9a0afa6ec31d5f9a4ebf293d3b5029
drm/i915/selftest: Cope with not having an RCS engine

It is no longer guaranteed that there will always be an RCS engine.
So, use the helper function for finding the first available engine that
can be used for general purpose selftets.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220728024225.2363663-5-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/selftest_hangcheck.c