Commit 26475ca9 authored by Jani Nikula's avatar Jani Nikula

drm/i915: rename disp_stepping->display_step and gt_stepping->gt_step

Matter of taste. Step matches the enums.
Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1724c8bde0e0f596240437d72ace60b9c34ae9db.1616764798.git.jani.nikula@intel.com
parent cd0fcf5a
...@@ -1269,8 +1269,8 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev) ...@@ -1269,8 +1269,8 @@ static inline struct drm_i915_private *pdev_to_i915(struct pci_dev *pdev)
#define IS_REVID(p, since, until) \ #define IS_REVID(p, since, until) \
(INTEL_REVID(p) >= (since) && INTEL_REVID(p) <= (until)) (INTEL_REVID(p) >= (since) && INTEL_REVID(p) <= (until))
#define INTEL_DISPLAY_STEP(__i915) (RUNTIME_INFO(__i915)->step.disp_stepping) #define INTEL_DISPLAY_STEP(__i915) (RUNTIME_INFO(__i915)->step.display_step)
#define INTEL_GT_STEP(__i915) (RUNTIME_INFO(__i915)->step.gt_stepping) #define INTEL_GT_STEP(__i915) (RUNTIME_INFO(__i915)->step.gt_step)
#define IS_DISPLAY_STEP(__i915, since, until) \ #define IS_DISPLAY_STEP(__i915, since, until) \
(drm_WARN_ON(&(__i915)->drm, INTEL_DISPLAY_STEP(__i915) == STEP_NONE), \ (drm_WARN_ON(&(__i915)->drm, INTEL_DISPLAY_STEP(__i915) == STEP_NONE), \
......
...@@ -16,35 +16,35 @@ ...@@ -16,35 +16,35 @@
/* FIXME: what about REVID_E0 */ /* FIXME: what about REVID_E0 */
static const struct i915_rev_steppings kbl_revids[] = { static const struct i915_rev_steppings kbl_revids[] = {
[0] = { .gt_stepping = STEP_A0, .disp_stepping = STEP_A0 }, [0] = { .gt_step = STEP_A0, .display_step = STEP_A0 },
[1] = { .gt_stepping = STEP_B0, .disp_stepping = STEP_B0 }, [1] = { .gt_step = STEP_B0, .display_step = STEP_B0 },
[2] = { .gt_stepping = STEP_C0, .disp_stepping = STEP_B0 }, [2] = { .gt_step = STEP_C0, .display_step = STEP_B0 },
[3] = { .gt_stepping = STEP_D0, .disp_stepping = STEP_B0 }, [3] = { .gt_step = STEP_D0, .display_step = STEP_B0 },
[4] = { .gt_stepping = STEP_F0, .disp_stepping = STEP_C0 }, [4] = { .gt_step = STEP_F0, .display_step = STEP_C0 },
[5] = { .gt_stepping = STEP_C0, .disp_stepping = STEP_B1 }, [5] = { .gt_step = STEP_C0, .display_step = STEP_B1 },
[6] = { .gt_stepping = STEP_D1, .disp_stepping = STEP_B1 }, [6] = { .gt_step = STEP_D1, .display_step = STEP_B1 },
[7] = { .gt_stepping = STEP_G0, .disp_stepping = STEP_C0 }, [7] = { .gt_step = STEP_G0, .display_step = STEP_C0 },
}; };
static const struct i915_rev_steppings tgl_uy_revid_step_tbl[] = { static const struct i915_rev_steppings tgl_uy_revid_step_tbl[] = {
[0] = { .gt_stepping = STEP_A0, .disp_stepping = STEP_A0 }, [0] = { .gt_step = STEP_A0, .display_step = STEP_A0 },
[1] = { .gt_stepping = STEP_B0, .disp_stepping = STEP_C0 }, [1] = { .gt_step = STEP_B0, .display_step = STEP_C0 },
[2] = { .gt_stepping = STEP_B1, .disp_stepping = STEP_C0 }, [2] = { .gt_step = STEP_B1, .display_step = STEP_C0 },
[3] = { .gt_stepping = STEP_C0, .disp_stepping = STEP_D0 }, [3] = { .gt_step = STEP_C0, .display_step = STEP_D0 },
}; };
/* Same GT stepping between tgl_uy_revids and tgl_revids don't mean the same HW */ /* Same GT stepping between tgl_uy_revids and tgl_revids don't mean the same HW */
static const struct i915_rev_steppings tgl_revid_step_tbl[] = { static const struct i915_rev_steppings tgl_revid_step_tbl[] = {
[0] = { .gt_stepping = STEP_A0, .disp_stepping = STEP_B0 }, [0] = { .gt_step = STEP_A0, .display_step = STEP_B0 },
[1] = { .gt_stepping = STEP_B0, .disp_stepping = STEP_D0 }, [1] = { .gt_step = STEP_B0, .display_step = STEP_D0 },
}; };
static const struct i915_rev_steppings adls_revid_step_tbl[] = { static const struct i915_rev_steppings adls_revid_step_tbl[] = {
[0x0] = { .gt_stepping = STEP_A0, .disp_stepping = STEP_A0 }, [0x0] = { .gt_step = STEP_A0, .display_step = STEP_A0 },
[0x1] = { .gt_stepping = STEP_A0, .disp_stepping = STEP_A2 }, [0x1] = { .gt_step = STEP_A0, .display_step = STEP_A2 },
[0x4] = { .gt_stepping = STEP_B0, .disp_stepping = STEP_B0 }, [0x4] = { .gt_step = STEP_B0, .display_step = STEP_B0 },
[0x8] = { .gt_stepping = STEP_C0, .disp_stepping = STEP_B0 }, [0x8] = { .gt_step = STEP_C0, .display_step = STEP_B0 },
[0xC] = { .gt_stepping = STEP_D0, .disp_stepping = STEP_C0 }, [0xC] = { .gt_step = STEP_D0, .display_step = STEP_C0 },
}; };
void intel_step_init(struct drm_i915_private *i915) void intel_step_init(struct drm_i915_private *i915)
...@@ -72,7 +72,7 @@ void intel_step_init(struct drm_i915_private *i915) ...@@ -72,7 +72,7 @@ void intel_step_init(struct drm_i915_private *i915)
if (!revids) if (!revids)
return; return;
if (revid < size && revids[revid].gt_stepping != STEP_NONE) { if (revid < size && revids[revid].gt_step != STEP_NONE) {
step = revids[revid]; step = revids[revid];
} else { } else {
drm_warn(&i915->drm, "Unknown revid 0x%02x\n", revid); drm_warn(&i915->drm, "Unknown revid 0x%02x\n", revid);
...@@ -85,7 +85,7 @@ void intel_step_init(struct drm_i915_private *i915) ...@@ -85,7 +85,7 @@ void intel_step_init(struct drm_i915_private *i915)
* steppings in the array are not monotonically increasing, but * steppings in the array are not monotonically increasing, but
* it's better than defaulting to 0. * it's better than defaulting to 0.
*/ */
while (revid < size && revids[revid].gt_stepping == STEP_NONE) while (revid < size && revids[revid].gt_step == STEP_NONE)
revid++; revid++;
if (revid < size) { if (revid < size) {
...@@ -94,12 +94,12 @@ void intel_step_init(struct drm_i915_private *i915) ...@@ -94,12 +94,12 @@ void intel_step_init(struct drm_i915_private *i915)
step = revids[revid]; step = revids[revid];
} else { } else {
drm_dbg(&i915->drm, "Using future steppings\n"); drm_dbg(&i915->drm, "Using future steppings\n");
step.gt_stepping = STEP_FUTURE; step.gt_step = STEP_FUTURE;
step.disp_stepping = STEP_FUTURE; step.display_step = STEP_FUTURE;
} }
} }
if (drm_WARN_ON(&i915->drm, step.gt_stepping == STEP_NONE)) if (drm_WARN_ON(&i915->drm, step.gt_step == STEP_NONE))
return; return;
RUNTIME_INFO(i915)->step = step; RUNTIME_INFO(i915)->step = step;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
struct drm_i915_private; struct drm_i915_private;
struct i915_rev_steppings { struct i915_rev_steppings {
u8 gt_stepping; u8 gt_step;
u8 disp_stepping; u8 display_step;
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment