drm/i915/perf: also include Gen11 in OATAILPTR workaround
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 26 Nov 2020 10:51:55 +0000 (12:51 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 1 Dec 2020 08:39:52 +0000 (10:39 +0200)
CI shows this workaround is also needed on Gen11.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 059a0beb486344 ("drm/i915/perf: workaround register corruption in OATAILPTR")
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201126105155.540350-1-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_perf.c

index 3640d0e229d22595b6f5d9e44d98f663e401520d..acdfbe5344a4f923058461048e07e4e349401148 100644 (file)
@@ -913,7 +913,7 @@ static int gen8_oa_read(struct i915_perf_stream *stream,
                intel_uncore_rmw(uncore, oastatus_reg,
                                 GEN8_OASTATUS_COUNTER_OVERFLOW |
                                 GEN8_OASTATUS_REPORT_LOST,
-                                IS_GEN_RANGE(uncore->i915, 8, 10) ?
+                                IS_GEN_RANGE(uncore->i915, 8, 11) ?
                                 (GEN8_OASTATUS_HEAD_POINTER_WRAP |
                                  GEN8_OASTATUS_TAIL_POINTER_WRAP) : 0);
        }