Skip to content

Commit 25d434c

Browse files
Tvrtko Ursulinlucasdemarchi
authored andcommitted
drm/xe: Fix GT "for each engine" workarounds
Any rules using engine matching are currently broken due RTP processing happening too in early init, before the list of hardware engines has been initialised. Fix this by moving workaround processing to later in the driver probe sequence, to just before the processed list is used for the first time. Looking at the debugfs gt0/workarounds on ADL-P we notice 14011060649 should be present while we see, before: GT Workarounds 14011059788 14015795083 And with the patch: GT Workarounds 14011060649 14011059788 14015795083 Signed-off-by: Tvrtko Ursulin <[email protected]> Cc: Lucas De Marchi <[email protected]> Cc: Matt Roper <[email protected]> Cc: [email protected] # v6.11+ Reviewed-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 0410c61 commit 25d434c

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
@@ -362,9 +362,7 @@ int xe_gt_init_early(struct xe_gt *gt)
362362
if (err)
363363
return err;
364364

365-
xe_wa_process_gt(gt);
366365
xe_wa_process_oob(gt);
367-
xe_tuning_process_gt(gt);
368366

369367
xe_force_wake_init_gt(gt, gt_to_fw(gt));
370368
spin_lock_init(&gt->global_invl_lock);
@@ -451,6 +449,8 @@ static int all_fw_domain_init(struct xe_gt *gt)
451449
}
452450

453451
xe_gt_mcr_set_implicit_defaults(gt);
452+
xe_wa_process_gt(gt);
453+
xe_tuning_process_gt(gt);
454454
xe_reg_sr_apply_mmio(&gt->reg_sr, gt);
455455

456456
err = xe_gt_clock_init(gt);

0 commit comments

Comments
 (0)