drm/xe: remove display stepping handling

The code is now unused. Remove.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/19bc7a3197f2bc6f3c0d337487ab19f3b7f5612a.1724180287.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
Jani Nikula 2024-08-20 22:00:43 +03:00
parent e0446e122e
commit 1684481112
4 changed files with 27 additions and 37 deletions

View File

@ -47,10 +47,9 @@ static int info(struct seq_file *m, void *data)
drm_printf(&p, "graphics_verx100 %d\n", xe->info.graphics_verx100);
drm_printf(&p, "media_verx100 %d\n", xe->info.media_verx100);
drm_printf(&p, "stepping G:%s M:%s D:%s B:%s\n",
drm_printf(&p, "stepping G:%s M:%s B:%s\n",
xe_step_name(xe->info.step.graphics),
xe_step_name(xe->info.step.media),
xe_step_name(xe->info.step.display),
xe_step_name(xe->info.step.basedie));
drm_printf(&p, "is_dgfx %s\n", str_yes_no(xe->info.is_dgfx));
drm_printf(&p, "platform %d\n", xe->info.platform);

View File

@ -830,10 +830,9 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
xe->info.dma_mask_size, xe->info.tile_count,
xe->info.has_heci_gscfi);
drm_dbg(&xe->drm, "Stepping = (G:%s, M:%s, D:%s, B:%s)\n",
drm_dbg(&xe->drm, "Stepping = (G:%s, M:%s, B:%s)\n",
xe_step_name(xe->info.step.graphics),
xe_step_name(xe->info.step.media),
xe_step_name(xe->info.step.display),
xe_step_name(xe->info.step.basedie));
drm_dbg(&xe->drm, "SR-IOV support: %s (mode: %s)\n",

View File

@ -28,23 +28,17 @@
* use a macro to define these to make it easier to identify the platforms
* where the two steppings can deviate.
*/
#define COMMON_GT_MEDIA_STEP(x_) \
#define COMMON_STEP(x_) \
.graphics = STEP_##x_, \
.media = STEP_##x_
#define COMMON_STEP(x_) \
COMMON_GT_MEDIA_STEP(x_), \
.graphics = STEP_##x_, \
.media = STEP_##x_, \
.display = STEP_##x_
__diag_push();
__diag_ignore_all("-Woverride-init", "Allow field overrides in table");
/* Same GT stepping between tgl_uy_revids and tgl_revids don't mean the same HW */
static const struct xe_step_info tgl_revids[] = {
[0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_B0 },
[1] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_D0 },
[0] = { COMMON_STEP(A0) },
[1] = { COMMON_STEP(B0) },
};
static const struct xe_step_info dg1_revids[] = {
@ -53,49 +47,49 @@ static const struct xe_step_info dg1_revids[] = {
};
static const struct xe_step_info adls_revids[] = {
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A0 },
[0x1] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A2 },
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_B0 },
[0x8] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_B0 },
[0xC] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_C0 },
[0x0] = { COMMON_STEP(A0) },
[0x1] = { COMMON_STEP(A0) },
[0x4] = { COMMON_STEP(B0) },
[0x8] = { COMMON_STEP(C0) },
[0xC] = { COMMON_STEP(D0) },
};
static const struct xe_step_info adls_rpls_revids[] = {
[0x4] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_D0 },
[0xC] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_C0 },
[0x4] = { COMMON_STEP(D0) },
[0xC] = { COMMON_STEP(D0) },
};
static const struct xe_step_info adlp_revids[] = {
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A0 },
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_B0 },
[0x8] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_C0 },
[0xC] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_D0 },
[0x0] = { COMMON_STEP(A0) },
[0x4] = { COMMON_STEP(B0) },
[0x8] = { COMMON_STEP(C0) },
[0xC] = { COMMON_STEP(C0) },
};
static const struct xe_step_info adlp_rpl_revids[] = {
[0x4] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_E0 },
[0x4] = { COMMON_STEP(C0) },
};
static const struct xe_step_info adln_revids[] = {
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_D0 },
[0x0] = { COMMON_STEP(A0) },
};
static const struct xe_step_info dg2_g10_revid_step_tbl[] = {
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A0 },
[0x1] = { COMMON_GT_MEDIA_STEP(A1), .display = STEP_A0 },
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_B0 },
[0x8] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_C0 },
[0x0] = { COMMON_STEP(A0) },
[0x1] = { COMMON_STEP(A1) },
[0x4] = { COMMON_STEP(B0) },
[0x8] = { COMMON_STEP(C0) },
};
static const struct xe_step_info dg2_g11_revid_step_tbl[] = {
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_B0 },
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_C0 },
[0x5] = { COMMON_GT_MEDIA_STEP(B1), .display = STEP_C0 },
[0x0] = { COMMON_STEP(A0) },
[0x4] = { COMMON_STEP(B0) },
[0x5] = { COMMON_STEP(B1) },
};
static const struct xe_step_info dg2_g12_revid_step_tbl[] = {
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_C0 },
[0x1] = { COMMON_GT_MEDIA_STEP(A1), .display = STEP_C0 },
[0x0] = { COMMON_STEP(A0) },
[0x1] = { COMMON_STEP(A1) },
};
static const struct xe_step_info pvc_revid_step_tbl[] = {
@ -195,7 +189,6 @@ struct xe_step_info xe_step_pre_gmdid_get(struct xe_device *xe)
} else {
drm_dbg(&xe->drm, "Using future steppings\n");
step.graphics = STEP_FUTURE;
step.display = STEP_FUTURE;
}
}

View File

@ -11,7 +11,6 @@
struct xe_step_info {
u8 graphics;
u8 media;
u8 display;
u8 basedie;
};