Skip to content

Commit 0ad755f

Browse files
nirmoyjnikula
authored andcommitted
drm/i915/mtl: Apply notify_guc to all GTs
Handle platforms with multiple GTs by iterate over all GTs. Add a Fixes commit so this gets propagated for MTL support. Fixes: 213c436 ("drm/i915/mtl: Remove the 'force_probe' requirement for Meteor Lake") Suggested-by: John Harrison <[email protected]> Cc: Jani Nikula <[email protected]> Cc: Rodrigo Vivi <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Andi Shyti <[email protected]> Cc: Andrzej Hajda <[email protected]> Signed-off-by: Nirmoy Das <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Reviewed-by: Andrzej Hajda <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 949113d) Signed-off-by: Jani Nikula <[email protected]>
1 parent 471aa95 commit 0ad755f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

drivers/gpu/drm/i915/i915_debugfs_params.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ static int i915_param_int_open(struct inode *inode, struct file *file)
3838

3939
static int notify_guc(struct drm_i915_private *i915)
4040
{
41-
int ret = 0;
41+
struct intel_gt *gt;
42+
int i, ret = 0;
4243

43-
if (intel_uc_uses_guc_submission(&to_gt(i915)->uc))
44-
ret = intel_guc_global_policies_update(&to_gt(i915)->uc.guc);
44+
for_each_gt(gt, i915, i) {
45+
if (intel_uc_uses_guc_submission(&gt->uc))
46+
ret = intel_guc_global_policies_update(&gt->uc.guc);
47+
}
4548

4649
return ret;
4750
}

0 commit comments

Comments
 (0)