[PATCH 1/2] drm/xe: Init MCR before any mcr register read
Tejas Upadhyay
tejas.upadhyay at intel.com
Thu Aug 8 09:28:25 UTC 2024
enable host l2 VRAM is example where MCR register is
getting read before fully MCR init is done. Lets move
enable host l2 VRAM after MCR init.
V1(Lucas):
- Reorder patch and reorder flow of L2 VRAM enable
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
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 58895ed22f6e..238c7d1053f0 100644
--- a/drivers/gpu/drm/xe/xe_gt.c
+++ b/drivers/gpu/drm/xe/xe_gt.c
@@ -557,7 +557,6 @@ int xe_gt_init_hwconfig(struct xe_gt *gt)
xe_gt_mcr_init_early(gt);
xe_pat_init(gt);
- xe_gt_enable_host_l2_vram(gt);
err = xe_uc_init(>->uc);
if (err)
@@ -569,6 +568,7 @@ int xe_gt_init_hwconfig(struct xe_gt *gt)
xe_gt_topology_init(gt);
xe_gt_mcr_init(gt);
+ xe_gt_enable_host_l2_vram(gt);
out_fw:
xe_force_wake_put(gt_to_fw(gt), XE_FW_GT);
--
2.25.1
More information about the Intel-xe
mailing list