All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/mtl: Apply notify_guc to all GTs
@ 2023-10-25 10:28 Nirmoy Das
  2023-10-25 10:31 ` Andi Shyti
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Nirmoy Das @ 2023-10-25 10:28 UTC (permalink / raw)
  To: intel-gfx; +Cc: Andrzej Hajda, Rodrigo Vivi, Nirmoy Das

Handle platforms with multiple GTs by iterate over all GTs.
Add a Fixes commit so this gets propagated for MTL support.

Fixes: 213c43676beb ("drm/i915/mtl: Remove the 'force_probe' requirement for Meteor Lake")
Suggested-by: John Harrison <john.c.harrison@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
---
 drivers/gpu/drm/i915/i915_debugfs_params.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs_params.c b/drivers/gpu/drm/i915/i915_debugfs_params.c
index 614bde321589..8bca02025e09 100644
--- a/drivers/gpu/drm/i915/i915_debugfs_params.c
+++ b/drivers/gpu/drm/i915/i915_debugfs_params.c
@@ -38,10 +38,13 @@ static int i915_param_int_open(struct inode *inode, struct file *file)
 
 static int notify_guc(struct drm_i915_private *i915)
 {
-	int ret = 0;
+	struct intel_gt *gt;
+	int i, ret = 0;
 
-	if (intel_uc_uses_guc_submission(&to_gt(i915)->uc))
-		ret = intel_guc_global_policies_update(&to_gt(i915)->uc.guc);
+	for_each_gt(gt, i915, i) {
+		if (intel_uc_uses_guc_submission(&gt->uc))
+			ret = intel_guc_global_policies_update(&gt->uc.guc);
+	}
 
 	return ret;
 }
-- 
2.41.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-11-06 12:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 10:28 [Intel-gfx] [PATCH] drm/i915/mtl: Apply notify_guc to all GTs Nirmoy Das
2023-10-25 10:31 ` Andi Shyti
2023-10-25 13:12 ` Andrzej Hajda
2023-10-31 10:57   ` Nirmoy Das
2023-10-31 10:59     ` Nirmoy Das
2023-10-25 19:16 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2023-10-26 19:53 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/mtl: Apply notify_guc to all GTs (rev2) Patchwork
2023-10-27 19:00 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/mtl: Apply notify_guc to all GTs (rev3) Patchwork
2023-10-30  3:43 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-11-06 12:45 ` [Intel-gfx] [PATCH] drm/i915/mtl: Apply notify_guc to all GTs Jani Nikula
2023-11-06 12:51   ` Nirmoy Das

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.