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

In order to enable complete multi-GT, use the GT
reference obtained directly from the engine, 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.

Cc: Andi Shyti <andi.shyti@linux.intel.com>
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-2-tejas.upadhyay@intel.com
drivers/gpu/drm/i915/gt/intel_engine_user.c