Skip to content

Commit 2a58b21

Browse files
baluviveklucasdemarchi
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 <[email protected]> Reviewed-by: Ravi Kumar Vodapalli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matt Roper <[email protected]> (cherry picked from commit 241cc82) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 1381c23 commit 2a58b21

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)