[Intel-xe] [PATCH] drm/xe: Move wa processing to gt_init

Tejas Upadhyay tejas.upadhyay at intel.com
Tue Nov 21 11:25:55 UTC 2023


Currently WA processing for gt is happening in early init API.
It also includes processing of WAs which needs filter based on
hardware engine by looping over number of hardware engines in gt.

However at early init stage hardware engines are not associated
with gt in software which skips processing such WAs.

Example WAs which will be fixed to apply after this change,
"14011060649",
"16010515920",
"16021867713"

Fixes: 811a9b3d262d8 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Tejas Upadhyay <tejas.upadhyay at intel.com>
---
 drivers/gpu/drm/xe/xe_gt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
index 0dddb751c6a4..3d0f7b6f952c 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -311,7 +311,6 @@ int xe_gt_init_early(struct xe_gt *gt)
 	if (err)
 		return err;
 
-	xe_wa_process_gt(gt);
 	xe_wa_process_oob(gt);
 	xe_tuning_process_gt(gt);
 
@@ -495,6 +494,7 @@ int xe_gt_init(struct xe_gt *gt)
 	if (err)
 		return err;
 
+	xe_wa_process_gt(gt);
 	xe_force_wake_init_engines(gt, gt_to_fw(gt));
 
 	err = all_fw_domain_init(gt);
-- 
2.25.1



More information about the Intel-xe mailing list