drm/i915/selftests: Consider multi-gt instead of to_gt()
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Wed, 19 Apr 2023 06:00:36 +0000 (11:30 +0530)
committerAndi Shyti <andi.shyti@linux.intel.com>
Wed, 19 Apr 2023 14:04:53 +0000 (16:04 +0200)
commit0c29efa23f5c2f51b744856200af0cff3e287e9e
tree2bf39154ff6a19de6a5a519e80f4a52b6fbc8dca
parenta347279dec1eb68e995f864ae1fd41ab57cbcd21
drm/i915/selftests: Consider multi-gt instead of to_gt()

In order to enable complete multi-GT, loop through all
the GTs, rather than relying on the to_gt(), which only
provides a reference to the primary GT.

Problem appear when it runs on platform like MTL where
different set of engines are possible on different GTs.

Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230419060036.3422635-4-tejas.upadhyay@intel.com
drivers/gpu/drm/i915/selftests/igt_live_test.c