@@ -2362,7 +2362,7 @@ gen8_de_misc_irq_handler(struct drm_i915_private *dev_priv, u32 iir)
intel_psr_irq_handler(intel_dp, psr_iir);
- /* prior GEN12 only have one EDP PSR */
+ /* prior Display 12 only have one EDP PSR */
if (DISPLAY_VER(dev_priv) < 12)
break;
}
@@ -3444,10 +3444,10 @@ i915_perf_open_ioctl_locked(struct i915_perf *perf,
* MI_REPORT_PERF_COUNT commands and so consider it a privileged op to
* enable the OA unit by default.
*
- * For Gen12+ we gain a new OAR unit that only monitors the RCS on a
- * per context basis. So we can relax requirements there if the user
- * doesn't request global stream access (i.e. query based sampling
- * using MI_RECORD_PERF_COUNT.
+ * For Graphics 12 and newer platforms, we gain a new OAR unit that only
+ * monitors the RCS on a per context basis. So we can relax requirements
+ * there if the user doesn't request global stream access (i.e. query
+ * based sampling using MI_RECORD_PERF_COUNT.
*/
if (IS_HASWELL(perf->i915) && specific_ctx)
privileged_op = false;
@@ -8264,8 +8264,8 @@ enum {
#define DISP_IPC_ENABLE (1 << 3)
/*
- * The below are numbered starting from "S1" on gen11/gen12, but starting
- * with gen13 display, the bspec switches to a 0-based numbering scheme
+ * The below are numbered starting from "S1" on display versions 11 and 12, but
+ * starting with display 13, the bspec switches to a 0-based numbering scheme
* (although the addresses stay the same so new S0 = old S1, new S1 = old S2).
* We'll just use the 0-based numbering here for all platforms since it's the
* way things will be named by the hardware team going forward, plus it's more
We should prefer Graphics and Display version over the old global "gen" thing. Of course we are not changing functions and variables and the legacy there, but at least let's start to document things properly and set some good examples. Cc: Jani Nikula <jani.nikula@intel.com> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> --- drivers/gpu/drm/i915/i915_irq.c | 2 +- drivers/gpu/drm/i915/i915_perf.c | 8 ++++---- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-)