Skip to content

Commit ce75853

Browse files
baluvivekgregkh
authored andcommitted
drm/xe/mocs: Initialize MOCS index early
commit 2a58b21 upstream. 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]> Stable-dep-of: 3155ac8 ("drm/xe: Move page fault init after topology init") Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8fc25d3 commit ce75853

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
@@ -389,6 +389,8 @@ int xe_gt_init_early(struct xe_gt *gt)
389389
if (err)
390390
return err;
391391

392+
xe_mocs_init_early(gt);
393+
392394
return 0;
393395
}
394396

@@ -596,8 +598,6 @@ int xe_gt_init(struct xe_gt *gt)
596598
if (err)
597599
return err;
598600

599-
xe_mocs_init_early(gt);
600-
601601
err = xe_gt_sysfs_init(gt);
602602
if (err)
603603
return err;

0 commit comments

Comments
 (0)