28
28
* use a macro to define these to make it easier to identify the platforms
29
29
* where the two steppings can deviate.
30
30
*/
31
- #define COMMON_GT_MEDIA_STEP (x_ ) \
32
- .graphics = STEP_##x_, \
33
- .media = STEP_##x_
34
-
35
31
#define COMMON_STEP (x_ ) \
36
- COMMON_GT_MEDIA_STEP(x_), \
37
32
.graphics = STEP_##x_, \
38
- .media = STEP_##x_, \
39
- .display = STEP_##x_
33
+ .media = STEP_##x_
40
34
41
35
__diag_push ();
42
36
__diag_ignore_all ("-Woverride-init" , "Allow field overrides in table" );
43
37
44
38
/* Same GT stepping between tgl_uy_revids and tgl_revids don't mean the same HW */
45
39
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 ) },
48
42
};
49
43
50
44
static const struct xe_step_info dg1_revids [] = {
@@ -53,49 +47,49 @@ static const struct xe_step_info dg1_revids[] = {
53
47
};
54
48
55
49
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 ) },
61
55
};
62
56
63
57
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 ) },
66
60
};
67
61
68
62
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 ) },
73
67
};
74
68
75
69
static const struct xe_step_info adlp_rpl_revids [] = {
76
- [0x4 ] = { COMMON_GT_MEDIA_STEP (C0 ), . display = STEP_E0 },
70
+ [0x4 ] = { COMMON_STEP (C0 ) },
77
71
};
78
72
79
73
static const struct xe_step_info adln_revids [] = {
80
- [0x0 ] = { COMMON_GT_MEDIA_STEP (A0 ), . display = STEP_D0 },
74
+ [0x0 ] = { COMMON_STEP (A0 ) },
81
75
};
82
76
83
77
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 ) },
88
82
};
89
83
90
84
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 ) },
94
88
};
95
89
96
90
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 ) },
99
93
};
100
94
101
95
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)
195
189
} else {
196
190
drm_dbg (& xe -> drm , "Using future steppings\n" );
197
191
step .graphics = STEP_FUTURE ;
198
- step .display = STEP_FUTURE ;
199
192
}
200
193
}
201
194
0 commit comments