drm/i915/xelpmp: Don't assume workarounds extend to future platforms
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 21 Aug 2023 18:06:22 +0000 (11:06 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 21 Aug 2023 23:45:59 +0000 (16:45 -0700)
The currently implemented Xe_LPM+ workarounds are specific to media
version 13.00.  When new IP versions show up in the future, they'll need
their own workaround lists.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230821180619.650007-13-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_workarounds.c

index afe6769101f913ea122ad2de4e0cc67c5e4e5939..b33615cd84d9544bdc7284dbdc1d3e5307151be1 100644 (file)
@@ -1711,10 +1711,10 @@ gt_init_workarounds(struct intel_gt *gt, struct i915_wa_list *wal)
        gt_tuning_settings(gt, wal);
 
        if (gt->type == GT_MEDIA) {
-               if (MEDIA_VER(i915) >= 13)
+               if (MEDIA_VER_FULL(i915) == IP_VER(13, 0))
                        xelpmp_gt_workarounds_init(gt, wal);
                else
-                       MISSING_CASE(MEDIA_VER(i915));
+                       MISSING_CASE(MEDIA_VER_FULL(i915));
 
                return;
        }