drm/xe: Skip applying copy engine fuses
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 13 Jun 2023 18:03:55 +0000 (11:03 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:34:53 +0000 (11:34 -0500)
Like commit 69a3738ba57f ("drm/i915: Skip applying copy engine fuses"),
do not apply copy engine fuses for platforms where MEML3_EN is not
relevant for determining the presence of the copy engines.

Acked-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230613180356.2906441-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_hw_engine.c

index 68cd793..b7b02c9 100644 (file)
@@ -492,6 +492,9 @@ static void read_copy_fuses(struct xe_gt *gt)
        struct xe_device *xe = gt_to_xe(gt);
        u32 bcs_mask;
 
+       if (GRAPHICS_VERx100(xe) < 1260 || GRAPHICS_VERx100(xe) >= 1270)
+               return;
+
        xe_force_wake_assert_held(gt_to_fw(gt), XE_FW_GT);
 
        bcs_mask = xe_mmio_read32(gt, MIRROR_FUSE3);