drm/i915/adl-n: Add stepping info
authorTejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Thu, 3 Mar 2022 11:32:52 +0000 (17:02 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 4 Mar 2022 04:40:03 +0000 (20:40 -0800)
Add ADL-N stepping-substepping info in
accordance to BSpec.

Bspec: 68397

Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303113252.212873-1-tejaskumarx.surendrakumar.upadhyay@intel.com
drivers/gpu/drm/i915/intel_step.c

index ac1a796..b6561f9 100644 (file)
@@ -131,6 +131,10 @@ static const struct intel_step_info adls_rpls_revids[] = {
        [0xC] = { COMMON_GT_MEDIA_STEP(D0), .display_step = STEP_C0 },
 };
 
+static const struct intel_step_info adlp_n_revids[] = {
+       [0x0] = { COMMON_GT_MEDIA_STEP(A0), .display_step = STEP_D0 },
+};
+
 void intel_step_init(struct drm_i915_private *i915)
 {
        const struct intel_step_info *revids = NULL;
@@ -150,6 +154,9 @@ void intel_step_init(struct drm_i915_private *i915)
        } else if (IS_XEHPSDV(i915)) {
                revids = xehpsdv_revids;
                size = ARRAY_SIZE(xehpsdv_revids);
+       } else if (IS_ADLP_N(i915)) {
+               revids = adlp_n_revids;
+               size = ARRAY_SIZE(adlp_n_revids);
        } else if (IS_ALDERLAKE_P(i915)) {
                revids = adlp_revids;
                size = ARRAY_SIZE(adlp_revids);