Skip to content

Commit 241cc82

Browse files
baluvivekmattrope
authored andcommitted
drm/xe/mocs: Initialize MOCS index early
MOCS uc_index is used even before it is initialized in the following callstack guc_prepare_xfer() __xe_guc_upload() xe_guc_min_load_for_hwconfig() xe_uc_init_hwconfig() xe_gt_init_hwconfig() Do MOCS index initialization earlier in the device probe. Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> Reviewed-by: Ravi Kumar Vodapalli <ravi.kumar.vodapalli@intel.com> Link: https://lore.kernel.org/r/20250520142445.2792824-1-balasubramani.vivekanandan@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
1 parent fbeaad0 commit 241cc82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/xe/xe_gt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ int xe_gt_init_early(struct xe_gt *gt)
417417
if (err)
418418
return err;
419419

420+
xe_mocs_init_early(gt);
421+
420422
return 0;
421423
}
422424

@@ -634,8 +636,6 @@ int xe_gt_init(struct xe_gt *gt)
634636
if (err)
635637
return err;
636638

637-
xe_mocs_init_early(gt);
638-
639639
err = xe_gt_sysfs_init(gt);
640640
if (err)
641641
return err;

0 commit comments

Comments
 (0)