mbox series

[0/3] Consider multi-gt instead of to_gt()

Message ID 20230419060036.3422635-1-tejas.upadhyay@intel.com (mailing list archive)
Headers show
Series Consider multi-gt instead of to_gt() | expand

Message

Upadhyay, Tejas April 19, 2023, 6 a.m. UTC
drm/i915/gt: drm/i915/gem: drm/i915/selftests:
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>

Tejas Upadhyay (3):
  drm/i915/gt: Consider multi-gt instead of to_gt()
  drm/i915/gem: Consider multi-gt instead of to_gt()
  drm/i915/selftests: Consider multi-gt instead of to_gt()

 .../drm/i915/gem/selftests/i915_gem_context.c |  4 +-
 drivers/gpu/drm/i915/gt/intel_engine_user.c   |  2 +-
 .../gpu/drm/i915/selftests/igt_live_test.c    | 46 +++++++++++--------
 3 files changed, 30 insertions(+), 22 deletions(-)

Comments

Andi Shyti April 19, 2023, 2:18 p.m. UTC | #1
Hi Tejas,

On Wed, Apr 19, 2023 at 11:30:33AM +0530, Tejas Upadhyay wrote:
> drm/i915/gt: drm/i915/gem: drm/i915/selftests:
> 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>

pushed to drm-intel-gt-next.

Thank you!
Andi