Commit 17a6726c authored by Matt Roper's avatar Matt Roper Committed by Rodrigo Vivi

drm/xe: Initialize MOCS earlier

xe_mocs_init_early doesn't touch the hardware, it just sets up internal
software state.  There's no need to perform this step in the "forcewake
held" region.  Moving the init earlier will also make the uc_index
values available earlier which will be important for an upcoming GuC
init patch.
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20230602235210.1314028-2-matthew.d.roper@intel.comSigned-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 066d0952
......@@ -315,8 +315,6 @@ static int gt_fw_domain_init(struct xe_gt *gt)
/* Rerun MCR init as we now have hw engine list */
xe_gt_mcr_init(gt);
xe_mocs_init_early(gt);
err = xe_hw_engines_init_early(gt);
if (err)
goto err_force_wake;
......@@ -429,6 +427,8 @@ int xe_gt_init(struct xe_gt *gt)
if (err)
return err;
xe_mocs_init_early(gt);
xe_gt_sysfs_init(gt);
err = gt_fw_domain_init(gt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment