Skip to content

Commit 9deca79

Browse files
committed
drm/i915/uc: fetch uc firmwares for each GT
The FW binaries are independently loaded on each GT. On MTL, the memory is shared so we could potentially re-use a single allocation, but on discrete multi-gt platforms we are going to need independent copies, so it is easier to do the same on MTL as well, given that the amount of duplicated memory is relatively small (~500K). Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Cc: John Harrison <[email protected]> Cc: Alan Previn <[email protected]> Reviewed-by: John Harrison <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 472098c commit 9deca79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/i915_gem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,8 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
11401140
if (ret)
11411141
return ret;
11421142

1143-
intel_uc_fetch_firmwares(&to_gt(dev_priv)->uc);
1143+
for_each_gt(gt, dev_priv, i)
1144+
intel_uc_fetch_firmwares(&gt->uc);
11441145
intel_wopcm_init(&dev_priv->wopcm);
11451146

11461147
ret = i915_init_ggtt(dev_priv);

0 commit comments

Comments
 (0)