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: Matthew Brost <matthew.brost@intel.com> Link: https://lore.kernel.org/r/20230602235210.1314028-2-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
066d095248
commit
17a6726c3d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user