drm/i915/xe2lpd: Register DE_RRMR has been removed
authorClint Taylor <clinton.a.taylor@intel.com>
Tue, 19 Sep 2023 19:21:15 +0000 (12:21 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 21 Sep 2023 14:39:52 +0000 (07:39 -0700)
Do not read DE_RRMR register after display version 20. This register
contains display state information during GFX state dumps.

Bspec: 69456
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230919192128.2045154-9-lucas.demarchi@intel.com
drivers/gpu/drm/i915/i915_gpu_error.c

index a60bab1..f4ebcfb 100644 (file)
@@ -1757,7 +1757,7 @@ static void gt_record_display_regs(struct intel_gt_coredump *gt)
        struct intel_uncore *uncore = gt->_gt->uncore;
        struct drm_i915_private *i915 = uncore->i915;
 
-       if (GRAPHICS_VER(i915) >= 6)
+       if (DISPLAY_VER(i915) >= 6 && DISPLAY_VER(i915) < 20)
                gt->derrmr = intel_uncore_read(uncore, DERRMR);
 
        if (GRAPHICS_VER(i915) >= 8)