Skip to content

Commit 1684481

Browse files
committed
drm/xe: remove display stepping handling
The code is now unused. Remove. Reviewed-by: Matt Roper <[email protected]> Acked-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/19bc7a3197f2bc6f3c0d337487ab19f3b7f5612a.1724180287.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <[email protected]>
1 parent e0446e1 commit 1684481

File tree

4 files changed

+27
-37
lines changed

4 files changed

+27
-37
lines changed

drivers/gpu/drm/xe/xe_debugfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ static int info(struct seq_file *m, void *data)
4747

4848
drm_printf(&p, "graphics_verx100 %d\n", xe->info.graphics_verx100);
4949
drm_printf(&p, "media_verx100 %d\n", xe->info.media_verx100);
50-
drm_printf(&p, "stepping G:%s M:%s D:%s B:%s\n",
50+
drm_printf(&p, "stepping G:%s M:%s B:%s\n",
5151
xe_step_name(xe->info.step.graphics),
5252
xe_step_name(xe->info.step.media),
53-
xe_step_name(xe->info.step.display),
5453
xe_step_name(xe->info.step.basedie));
5554
drm_printf(&p, "is_dgfx %s\n", str_yes_no(xe->info.is_dgfx));
5655
drm_printf(&p, "platform %d\n", xe->info.platform);

drivers/gpu/drm/xe/xe_pci.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,10 +830,9 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
830830
xe->info.dma_mask_size, xe->info.tile_count,
831831
xe->info.has_heci_gscfi);
832832

833-
drm_dbg(&xe->drm, "Stepping = (G:%s, M:%s, D:%s, B:%s)\n",
833+
drm_dbg(&xe->drm, "Stepping = (G:%s, M:%s, B:%s)\n",
834834
xe_step_name(xe->info.step.graphics),
835835
xe_step_name(xe->info.step.media),
836-
xe_step_name(xe->info.step.display),
837836
xe_step_name(xe->info.step.basedie));
838837

839838
drm_dbg(&xe->drm, "SR-IOV support: %s (mode: %s)\n",

drivers/gpu/drm/xe/xe_step.c

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,17 @@
2828
* use a macro to define these to make it easier to identify the platforms
2929
* where the two steppings can deviate.
3030
*/
31-
#define COMMON_GT_MEDIA_STEP(x_) \
32-
.graphics = STEP_##x_, \
33-
.media = STEP_##x_
34-
3531
#define COMMON_STEP(x_) \
36-
COMMON_GT_MEDIA_STEP(x_), \
3732
.graphics = STEP_##x_, \
38-
.media = STEP_##x_, \
39-
.display = STEP_##x_
33+
.media = STEP_##x_
4034

4135
__diag_push();
4236
__diag_ignore_all("-Woverride-init", "Allow field overrides in table");
4337

4438
/* Same GT stepping between tgl_uy_revids and tgl_revids don't mean the same HW */
4539
static const struct xe_step_info tgl_revids[] = {
46-
[0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_B0 },
47-
[1] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_D0 },
40+
[0] = { COMMON_STEP(A0) },
41+
[1] = { COMMON_STEP(B0) },
4842
};
4943

5044
static const struct xe_step_info dg1_revids[] = {
@@ -53,49 +47,49 @@ static const struct xe_step_info dg1_revids[] = {
5347
};
5448

5549
static const struct xe_step_info adls_revids[] = {
56-
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A0 },
57-
[0x1] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A2 },
58-
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_B0 },
59-
[0x8] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_B0 },
60-
[0xC] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_C0 },
50+
[0x0] = { COMMON_STEP(A0) },
51+
[0x1] = { COMMON_STEP(A0) },
52+
[0x4] = { COMMON_STEP(B0) },
53+
[0x8] = { COMMON_STEP(C0) },
54+
[0xC] = { COMMON_STEP(D0) },
6155
};
6256

6357
static const struct xe_step_info adls_rpls_revids[] = {
64-
[0x4] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_D0 },
65-
[0xC] = { COMMON_GT_MEDIA_STEP(D0), .display = STEP_C0 },
58+
[0x4] = { COMMON_STEP(D0) },
59+
[0xC] = { COMMON_STEP(D0) },
6660
};
6761

6862
static const struct xe_step_info adlp_revids[] = {
69-
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A0 },
70-
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_B0 },
71-
[0x8] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_C0 },
72-
[0xC] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_D0 },
63+
[0x0] = { COMMON_STEP(A0) },
64+
[0x4] = { COMMON_STEP(B0) },
65+
[0x8] = { COMMON_STEP(C0) },
66+
[0xC] = { COMMON_STEP(C0) },
7367
};
7468

7569
static const struct xe_step_info adlp_rpl_revids[] = {
76-
[0x4] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_E0 },
70+
[0x4] = { COMMON_STEP(C0) },
7771
};
7872

7973
static const struct xe_step_info adln_revids[] = {
80-
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_D0 },
74+
[0x0] = { COMMON_STEP(A0) },
8175
};
8276

8377
static const struct xe_step_info dg2_g10_revid_step_tbl[] = {
84-
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_A0 },
85-
[0x1] = { COMMON_GT_MEDIA_STEP(A1), .display = STEP_A0 },
86-
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_B0 },
87-
[0x8] = { COMMON_GT_MEDIA_STEP(C0), .display = STEP_C0 },
78+
[0x0] = { COMMON_STEP(A0) },
79+
[0x1] = { COMMON_STEP(A1) },
80+
[0x4] = { COMMON_STEP(B0) },
81+
[0x8] = { COMMON_STEP(C0) },
8882
};
8983

9084
static const struct xe_step_info dg2_g11_revid_step_tbl[] = {
91-
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_B0 },
92-
[0x4] = { COMMON_GT_MEDIA_STEP(B0), .display = STEP_C0 },
93-
[0x5] = { COMMON_GT_MEDIA_STEP(B1), .display = STEP_C0 },
85+
[0x0] = { COMMON_STEP(A0) },
86+
[0x4] = { COMMON_STEP(B0) },
87+
[0x5] = { COMMON_STEP(B1) },
9488
};
9589

9690
static const struct xe_step_info dg2_g12_revid_step_tbl[] = {
97-
[0x0] = { COMMON_GT_MEDIA_STEP(A0), .display = STEP_C0 },
98-
[0x1] = { COMMON_GT_MEDIA_STEP(A1), .display = STEP_C0 },
91+
[0x0] = { COMMON_STEP(A0) },
92+
[0x1] = { COMMON_STEP(A1) },
9993
};
10094

10195
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)
195189
} else {
196190
drm_dbg(&xe->drm, "Using future steppings\n");
197191
step.graphics = STEP_FUTURE;
198-
step.display = STEP_FUTURE;
199192
}
200193
}
201194

drivers/gpu/drm/xe/xe_step_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
struct xe_step_info {
1212
u8 graphics;
1313
u8 media;
14-
u8 display;
1514
u8 basedie;
1615
};
1716

0 commit comments

Comments
 (0)